Gossamer Forum
Quote Reply
Cat (0)
Dear All,
If the category is empty, is it possible to make it "cat" rather than "cat (0)"?

Or, is it possible to let admin to set the display of some cat is "ON" and some cat is "off" in links number, of course default is "ON"?

Quote Reply
Re: Cat (0) In reply to
You can't have a "Category=0" because the AutoIncrement function starts at 1.

You can set the CategoryID of a "link" to '0' since that is just an Integer field.

BTW... trying to insert a record with an AutoIncrement field set to '0' is the same as setting the field to "Null" -- it will cause MySQL to set the field to the next available ID.

OOps... I may have read that wrong --

Just edit the subcategory.html file and use a test such as:

Code:
<%if Number_of_Links%>
(<%Number_of_Links%>: Links)
<%endif%>
The display is all template based.





Quote Reply
Re: Cat (0) In reply to
Think pugdog misunderstand your question; its a thing of the template. Try <%if Number_of_Links eq ''%> write ""
<%ifnot Number_of_Links eq''%> write <%Number_of_Links%>

Robert