Webmastersite.net
Register Log In

Category Types

Comments on Category Types

themanwho
Beginner

Usergroup: Customer
Joined: Jul 11, 2005
Location: South Yorkshire, UK

Total Topics: 3
Total Comments: 5
Posted Jan 23, 2006 - 2:36 AM:

I've upgraded to 3.3.4 from 3.3.0 over the weekend and I now have a problem with category types.

I have 3 different category types: Regular (the default), Location and Standard. The official names are Regular, Loc and Std. On my main index I only want to call the categories in the Standard group and so enter the following in my template:


<!-- BEGIN CATSBODY -->
<table width="100%" align="center" cellpadding="5" cellspacing="5">
<!-- BEGIN STD -->
<td {CATWIDTH} valign="top" class="category">
<img src="templates/default/images/folder.gif" alt="folder"> <a href="index.php?action=displaycat&catid={CATID}" class="categoryname">{CATNAME}</a>
</td>
<!-- END STD -->
</table>
<!-- END CATSBODY -->


The output generated is this:


<!-- BEGIN CATSBODY -->
<table width="100%" align="center" cellpadding="5" cellspacing="5">

</table>
<!-- BEGIN CATSBODY -->
<table width="100%" align="center" cellpadding="5" cellspacing="5">

</table>
<!-- BEGIN CATSBODY -->
<table width="100%" align="center" cellpadding="5" cellspacing="5">

</table>
<!-- END CATSBODY -->


The same also happens if I try to show just the LOC categories. The only way I can get any categories at all to show on the main page is by selecting regular in my template which then shows all categories. This did work in 3.3.0.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 23, 2006 - 9:44 PM:

When no template area is supplied for the type, it now defaults to use whatever category type has available HTML, to save you the trouble of having to specify all the types in the template if you don't need them to look different.

If you want a category type not displayed, you should specify it in the template but make the stuff to be displayed be a blank space.

Not sure how you're getting the empty tables though so I'll retest category types yet again shortly.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 29, 2006 - 10:13 PM:

In 3.3.5 you can use <IF {REGULARTOTAL}> and <IF {STDTOTAL}> conditionals around the tables to make them only show when there are categories of the specified type.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.