I am using static templates for the site. How do I use dynamic detail pages from a template? If I set the admin to not use static detail pages it displays a blank page?
Jan 27, 2001, 4:17 PM
Veteran / Moderator (6956 posts)
Jan 27, 2001, 4:17 PM
Post #2 of 6
Views: 3059
Find where I posted detail_page.cgi. That will do it.
Also,
You might try to make page.cgi work, the way alex explained in:
http://gossamer-threads.com/...&vc=1#Post119427
I have a problem Alex never addressed about the use of the template globals.txt file, and persistence.
if you passed in something like:
.../page.cgi?p=detailed&ID=123
The globals would have to know to fetch the link record associated with that ID.
The only way to do that, that I can see, is create a sub that first tests to see if p=detailed and an ID was passed in. You don't want it to interfere with an ID passed in via some other means.
I don't have enough experience yet to understand all the conventions, and things are still being worked out. So, if you can't make it work, bring this to Alex's attention next week.
PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ
Also,
You might try to make page.cgi work, the way alex explained in:
http://gossamer-threads.com/...&vc=1#Post119427
I have a problem Alex never addressed about the use of the template globals.txt file, and persistence.
if you passed in something like:
.../page.cgi?p=detailed&ID=123
The globals would have to know to fetch the link record associated with that ID.
The only way to do that, that I can see, is create a sub that first tests to see if p=detailed and an ID was passed in. You don't want it to interfere with an ID passed in via some other means.
I don't have enough experience yet to understand all the conventions, and things are still being worked out. So, if you can't make it work, bring this to Alex's attention next week.
PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ
Jan 27, 2001, 7:24 PM
User (376 posts)
Jan 27, 2001, 7:24 PM
Post #3 of 6
Views: 3061
I found your detail_page.cgi in the Link SQL FAQ under add-ons. http:// http://pugdog.com/LinkSQL/pages/Add-Ons_by_PUGDOG_reg_/index.html
Does this work with the latest release? There are 2 cgi's in the zip, and I'm not sure which one is current. Also there is no doc. to explain how to use them.
I think this will be a reoccuring question, as many want to use "on the fly" detail pages on a ststic site to save disc space. Maybe a universal solution can be found and posted in the FAQ's?
Does this work with the latest release? There are 2 cgi's in the zip, and I'm not sure which one is current. Also there is no doc. to explain how to use them.
I think this will be a reoccuring question, as many want to use "on the fly" detail pages on a ststic site to save disc space. Maybe a universal solution can be found and posted in the FAQ's?
Jan 27, 2001, 9:22 PM
Veteran / Moderator (6956 posts)
Jan 27, 2001, 9:22 PM
Post #4 of 6
Views: 3053
Never needed docs before....
As the scripts say, one is for 1.13 and one is for 2.0. Check the header of the two files, you'll be able to tell which is which.
I think I posted the zip there as a clean-up effort. I originally posted them to the forum here.
I'm pretty sure the only parameter they look for, or respond to is an ID=nnn parameter. They look up the ID, and display it using detailed.html
here's the original thread http://gossamer-threads.com/p/110124
PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ
As the scripts say, one is for 1.13 and one is for 2.0. Check the header of the two files, you'll be able to tell which is which.
I think I posted the zip there as a clean-up effort. I originally posted them to the forum here.
I'm pretty sure the only parameter they look for, or respond to is an ID=nnn parameter. They look up the ID, and display it using detailed.html
here's the original thread http://gossamer-threads.com/p/110124
PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ