Gossamer Forum
Home : Products : Gossamer Links : Discussions :

category specific text

Quote Reply
category specific text
Can I use this text to place text only on specific category pages

<%if category eq 'Lifestyle'%>
Your text here
<%endif%

Lifestlye = a sample category name

Thanks for the help

CCUnet
my Christian web
Quote Reply
Re: [ccunet] category specific text In reply to
You can use <%GT::Template::dump%> to see what tags are available on the page.

I think it will be

<%if Name eq 'Lifestyle'%>
Your text here
<%endif%>

Laura.
The UK High Street
Quote Reply
Re: [afinlr] category specific text In reply to
How do I use <%GT::Template::dump%>? Do I just put it in may category page or what?

I'm a bit naive on this.

Thanks for the help

CCUnet
my Christian web
Quote Reply
Re: [ccunet] category specific text In reply to
The easiest way to use this is to put it in your footer file as

<%if Username eq 'admin'%><%GT::Template::dump%><%endif%>

Then if you want to see the tags, you just log in as admin and they appear at the bottom of the page. Note that I think this only works on dynamic pages, so to check the available tags on a category page you would need to use /page.cgi?g=categoryname to see the tags.

Laura.
The UK High Street