Gossamer Forum
Quote Reply
if parent eq 'X'
I have one category and it's subcats that I want <%Number_of_Links%> to show up on my category pages. I know I can edit them in the subcategory.html file and use a seperate template set, but so far, I have been able to get away with only 1 template set. I'm hoping to figure out how to use an if statement to get my desired results.

I am building static pages.

Here's what I am hoping to do:

<%if (parent category) eq 'classifieds'%>
<%Number_of_Links%>
<%endif%>

so that all the subcategories underneath the category "classifieds" will then show the results of <%Number_of_Links%>.

Is this possible? How would I word the if statement?
The idea is that I only want the category Classifieds and it's subcats to show the <%Number_of_Links%>.

Smile Thanks!

Last edited by:

Evoir: Aug 11, 2002, 11:11 PM
Subject Author Views Date
Thread if parent eq 'X' Evoir 3221 Aug 11, 2002, 11:11 PM
Thread Re: [Evoir] if parent eq 'X'
yogi 3168 Aug 12, 2002, 1:48 AM
Thread Re: [yogi] if parent eq 'X'
Evoir 3128 Aug 12, 2002, 9:43 AM
Post Re: [Evoir] if parent eq 'X'
Paul 3140 Aug 12, 2002, 9:45 AM
Thread Re: [Evoir] if parent eq 'X'
Ian 3125 Aug 12, 2002, 8:21 AM
Thread Re: [Ian] if parent eq 'X'
Evoir 3136 Aug 12, 2002, 9:48 AM
Post Re: [Evoir] if parent eq 'X'
Ian 3120 Aug 12, 2002, 10:32 AM