Gossamer Forum
Home : Products : Gossamer Links : Discussions :

detail pages in 2.00rc2

Quote Reply
detail pages in 2.00rc2
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?

Quote Reply
Re: detail pages in 2.00rc2 In reply to
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


Quote Reply
Re: detail pages in 2.00rc2 In reply to
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?

Quote Reply
Re: detail pages in 2.00rc2 In reply to
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


Quote Reply
Re: detail pages in 2.00rc2 In reply to
Thanks-
Your the best Wink

Quote Reply
Re: detail pages in 2.00rc2 In reply to
Took me 2 minutes to setup. Works great!