Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

adding an extended (detailed) info page

Quote Reply
adding an extended (detailed) info page
In my LINKS SQL database (links table) I have about 20 other fields I wish to have brought up when the link is clicked as extended info... For e.g. you click on a company and the companies vitals are brought up from the sql database whether live OR generated (generated preferred). Can someone tell me how to do this?

Thank you all!

Robert.

Quote Reply
Re: adding an extended (detailed) info page In reply to
All you have to do is add the following link in your link.html file:

Code:

<a href="<Ūtail_url%>">Detailed Page</a>


That tag is detail_url, which is defined in the HTML_Templates.pm file in the sub site_html_link routine.

Then add the other tags for your fields in your Links table in the detailed.html template file.

Regards,


Eliot Lee
Quote Reply
Re: adding an extended (detailed) info page In reply to
First, you need to set build_detailed=1 in the Links.pm file.

Then, rather than linking to the jump.cgi link directly to the Detailed page as above. The variables you can use in your templates (and what they evaluate out to) are defined in the Links.pm file (and stuffed into the %GLOBALS hash which is available to all the routines).

$LINKS{build_detail_path} = "$LINKS{build_root_path}/Detailed";
$LINKS{build_detail_url} = "$LINKS{build_root_url}/Detailed";

The template tag is the part in between the {} ie: <%build_detail_path%> and <%build_detail_url%>

You _may_ or _may_not_ have re-defined these else where in the program (most likely in the %GLOBALS hash in HTML_Templates.pm, but as "globals" the above variables should work everywhere.

There were some bugs with building detail pages that were reported here (and I think posted in the FAQ (url below).



http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/