Okay, is there a way to set up the pages so if there aren't any links under that category the (0) doesn't show? The reason why is because one of my categories is merely a cross-reference category and has nothing but Related categories under it. Which means that the (0) shows 0 links and that might keep people from looking at it. Ideally, I'd like to set it up so that the (0) doesn't show if there is a 0 in it. If that isn't possible, can I set up the site so that no (0) show up on the home page but does show up on the other pages?
Nov 8, 2001, 11:23 AM
Veteran (1187 posts)
Nov 8, 2001, 11:23 AM
Post #2 of 11
Views: 2328
Hi
in subcategory.html
Replace your :
<%Number_of_Links%> global
With:
<%if Number_of_Links < 1%>
<%endif%>
<%if Number_of_Links > 0%>
<small><class="numlinks"> (<%Number_of_Links%>)</small>
<%endif%>
and that should do it.
Regards
KaTaBd
Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
in subcategory.html
Replace your :
<%Number_of_Links%> global
With:
<%if Number_of_Links < 1%>
<%endif%>
<%if Number_of_Links > 0%>
<small><class="numlinks"> (<%Number_of_Links%>)</small>
<%endif%>
and that should do it.
Regards
KaTaBd
Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Nov 8, 2001, 11:33 AM
Veteran (1187 posts)
Nov 8, 2001, 11:33 AM
Post #5 of 11
Views: 2336
Hi,
yes you are right
that should do the same.
Regards
KaTaBd
Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
yes you are right
that should do the same.
Regards
KaTaBd
Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Nov 8, 2001, 12:04 PM
User (155 posts)
Nov 8, 2001, 12:04 PM
Post #9 of 11
Views: 2303

Well, actually, it would probably be better written as:
<%if Number_of_Links%>
<small><class="numlinks">(<%Number_of_Links%>)</small>
<%endif%>
As then there won't be any "dangling" html tags (i.e. <small> and <class>)...
(Assuming rhayne is using those default tags.)

--
Matt G