Gossamer Forum
Home : Products : Links 2.0 : Customization :

How to create an "if categories not blank" statement.

Quote Reply
How to create an "if categories not blank" statement.
I would like to add a horizontal line to separate the sub-categories, from the links that are in a category. I am using templates, and tried adding one in category.html in the appropriate place which worked, except I run into a problem when there is related categories. I only want to include it when there are categories or related categories, not when there are just links.

I presume I need an if statement, but not being familiar with perl or cgi, I don't know the actual code I should use. What I think I am looking for is something like

<%if category%>
<%if related%>
<hr noshade color="#008000">
<%endif%>
<%endif%>

Would this work? Any help would be appreciated.

[This message has been edited by lunaria (edited February 17, 1999).]
Subject Author Views Date
Thread How to create an "if categories not blank" statement. lunaria 6788 Feb 17, 1999, 2:04 PM
Post Re: How to create an "if categories not blank" statement.
Bobsie 6728 Feb 17, 1999, 5:17 PM
Post Re: How to create an "if categories not blank" statement.
darkjoe 6726 Feb 18, 1999, 6:12 PM
Post Re: How to create an "if categories not blank" statement.
lunaria 6708 Feb 19, 1999, 7:46 PM
Post Re: How to create an "if categories not blank" statement.
darkjoe 6719 Feb 19, 1999, 8:58 PM
Post Re: How to create an "if categories not blank" statement.
socrates 6704 Feb 28, 1999, 6:35 PM
Post Re: How to create an "if categories not blank" statement.
Cal 6707 Mar 12, 1999, 7:04 AM
Post Re: How to create an "if categories not blank" statement.
socrates 6744 Mar 13, 1999, 2:31 PM
Post Re: How to create an "if categories not blank" statement.
Cal 6707 Mar 13, 1999, 3:41 PM
Post Re: How to create an "if categories not blank" statement.
socrates 6750 Mar 13, 1999, 7:45 PM
Post Re: How to create an "if categories not blank" statement.
Bobsie 6719 Mar 13, 1999, 10:02 PM
Post Re: How to create an "if categories not blank" statement.
Alex 6717 Mar 14, 1999, 8:58 AM
Thread Re: How to create an "if categories not blank" statement.
socrates 6704 Mar 15, 1999, 1:56 PM
Post Re: [socrates] How to create an "if categories not blank" statement.
poscon 6606 Dec 16, 2003, 6:53 PM