I have created a category type called "towns". I created a category called "Localities" and made it a "towns" type. I do not want it to show up in my main.tpl but it does.
I am trying to only have the regular categories show up here but the "Localities" category which is a "towns" type category shows up.
This is the code for my main.tpl, it is the default code:
<!-- BEGIN CATSBODY --> <table align="center" cellpadding="5" cellspacing="10"> <!-- BEGIN REGULAR --> <td {CATWIDTH} valign="top" class="category"> <img src="templates/default/images/folder.gif" alt="{CATNAME}"> <a href="{CATURL}" class="categoryname">{CATNAME}</a> ({CATNUMLINKS}) {CATHASNEW} {CATADMIN}<br> <IF {CATHASDESCRIPTION}>{CATDESCRIPTION} <br></IF> <IF {SWITCH_FORUMVIEWS}>{CATVIEWS} views<br></IF> <IF {SWITCH_ONLINEFORUM}>{CATNUMONLINE} viewing<br></IF> <div class="subcatsmainpage"> <!-- BEGIN SUBSUB --> <a href="index.php?action=displaycat&catid={CATID}">{CATNAME}</a>, <!-- END SUBSUB --> </div> </td> <!-- END REGULAR --> </table> <!-- END CATSBODY -->
I would expect the "towns" category only to show up if called for e.g.
I have tried to 'hide' this category using the option in edit category, this remove the category from the main.tpl but also from the category selector on the suggestlink.tpl, so if one tries to submit a link to this category, the category is not availabe.
I have also tried to regenerate the categories but it did not work.
If you don't specify a type in the template, it'll fall back on whatever is available in the template. If you want it to display a blank, write it out with blank content.
Comments on Custom Category Type
Member
Usergroup: Customer
Joined: Sep 25, 2003
Location: Canada
Total Topics: 22
Total Comments: 48
I have created a category type called "towns". I created a category called "Localities" and made it a "towns" type. I do not want it to show up in my main.tpl but it does.
I am trying to only have the regular categories show up here but the "Localities" category which is a "towns" type category shows up.
This is the code for my main.tpl, it is the default code:
I would expect the "towns" category only to show up if called for e.g.
I have tried to 'hide' this category using the option in edit category, this remove the category from the main.tpl but also from the category selector on the suggestlink.tpl, so if one tries to submit a link to this category, the category is not availabe.
I have also tried to regenerate the categories but it did not work.
How can I remove it from the the main.tpl?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
If you don't specify a type in the template, it'll fall back on whatever is available in the template. If you want it to display a blank, write it out with blank content.
Member
Usergroup: Customer
Joined: Sep 25, 2003
Location: Canada
Total Topics: 22
Total Comments: 48
Thank you Paul, works fine now.