Webmastersite.net
Register Log In

Custom Category Type

Title Custom Category Type
Description don not want it displayed in main.tpl
Message Text 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.
<!-- BEGIN TOWNS -->
<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 TOWNS -->
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?
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership larryjam
Views 449 views. Averaging 0 views per day.
Similar Topics
Submission Date Feb 25, 2007 - 12:39 PM