Gossamer Forum
Quote Reply
Category Specific
Hello,

According to post: http://www.gossamer-threads.com/...orum.cgi?post=159079 I can use the following code to display category sensitive content:

<%if Name eq 'SomeCategory'%>
custom code here.
<%endif%>

Ok, it works great, thanks. But how can I make it so it will apply to ALL subcategories UNDER that?

Say I want to show a car pic in http://www.somedomain.com/cars & in http://www.somedomain.com/cars/nissan and all other subcategories under cars.
But want to show a boat on http://www.somedomain.com/boats & in http://www.somedomain.com/boats/wellcraft and all other subcategories under boats.

many thanks.

Juan Carlos

Quote Reply
Re: [Gorospe] Category Specific In reply to
Maybe %if Full_Name contains 'cars'%>
Quote Reply
Re: [garrynz] Category Specific In reply to
<%if Name eq 'Cars' or Full_Name starts 'Cars/'%> would work better.

Adrian