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

Related: Changing the look

Quote Reply
Related: Changing the look
Another little thing that I'd like to change is the look of the related link, currently its showing the / in the link, i.e.; Test/Sub/More/Related - I'd like it similar to the category linl, i.e.; Test : Sub : More : Related

Where should I look for this?

All the best
Shaun

Quote Reply
Re: Related: Changing the look In reply to
Follow the path of the calls from nph-build.cgi for where it goes to get the related categories (in the build-category routines).

The actual routine may be in the HTML_Templates.pm file.



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

Quote Reply
Re: Related: Changing the look In reply to
OK, I've found the relative section in nph-build.cgi; # Calculate the related entries and put in ...

It calls &build_clean_name from DB_Utils.pm, which creates a pathname to use in the link, and uses the pathname AS the link. I think the output I'm looking for would come from build_linked_title, but how would I get that to work with the related categories as well? Could I make a copy of build_linked_title and convert it to work with the related category name?

All the best
Shaun

Quote Reply
Re: Related: Changing the look In reply to
Without looking at the code (I don't have access at the moment) you could clone the procedure build_linked_title, change it to work the way you want, then call the new procedure instead of the old one.

If you add it to the nph-build.cgi file you don't have to worry too much, if you add it to any other file you need to make sure you've got the "exported" values set up right.




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