Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Can links in different categories use different templates?

Quote Reply
Can links in different categories use different templates?
I know I can choose template file for a category, however, the template doesn't controls how links are displayed. My intention is to build a Glossary under a category in which each term is stored as a link and doesn't have a url. When input, I can leave the URL field default which is "http://", for display I don't want hyperlink for all terms. So a different template is needed other than the default "links.html" template.

Anybody has a clue?

Thanks.

Long
Quote Reply
Re: [long327] Can links in different categories use different templates? In reply to
If you use loops then you can use <%include links2.html%> within the loop.

Alternatively you could just use if statements in link.html - something like

<%if glossary%> ... <%else%> ... <%endif%>

Last edited by:

afinlr: May 3, 2004, 2:25 PM
Quote Reply
Re: [afinlr] Can links in different categories use different templates? In reply to
thanks Laura,

yeah, I forgot about the loop function which should solve the problem.

Do you mean if I use <%include links2.html%> in cateogry template, links loop will use links2.html as it template?
Quote Reply
Re: [long327] Can links in different categories use different templates? In reply to
Yes, you can put whatever you like within a loop - you don't need to include a template. If you just wanted to print out titles you can just use a loop and put <%Title%><br> inside it.
Quote Reply
Re: [afinlr] Can links in different categories use different templates? In reply to
Linksql is so powerful, you can do whatever you want.

thanks.

Long