Gossamer Forum
Home : Products : Links 2.0 : Customization :

question on glennu's multicat2 mod

Quote Reply
question on glennu's multicat2 mod
i love this mod that glennu made, but is there a way to make the link template the same on the new, pop, top rated, and search pages?

thanx in advance :)




Vote Stinky
Quote Reply
Re: [security_man] question on glennu's multicat2 mod In reply to
Do you mean just the code from link.html? If so, just create a link2.html for how you want it to look, copy the link routine in site_html_templates.pl but rename it link2, then go into nph-build.cgi and change the routines (new, pop, etc) to use link2.html instead of link.html.


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] question on glennu's multicat2 mod In reply to
actually that one does a specific link template for each category template you use so if i have a link from clothing category which is using clothing.html template the links are done with the clothinglink.html template automatically... now if somone searches for red the results might come back with a candle store (cuz they sell red candles) and links from the clothing category too ... the search page with the mod the way it is shows the basic link.html template for both the candle link and the clothing link even though the clothing link should have a different template... if that makes sense LOL




Vote Stinky
Quote Reply
Re: [security_man] question on glennu's multicat2 mod In reply to
I see... You may need to do an "if" statement setup, so if the search result is from category A, use catAlink.html, etc. There have been similar discussions here, though not specific to this topic. Here are few to look at:

http://www.gossamer-threads.com/...i?post=127589#127589

http://www.gossamer-threads.com/...i?post=139219#139219

http://www.gossamer-threads.com/...cgi?post=44394#44394

http://www.gossamer-threads.com/...i?post=134324#134324

Another option would be to put a category select option on your search form.


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] question on glennu's multicat2 mod In reply to
hmmm, dont see anything in there that would work the exact way i would want it to, but i did an if else statement in the link.html template which is at least a work around although its very clunky... oh well, it works and thats whats important LOL

thanks PerlFlunkie :)




Vote Stinky