View Single Post
  #4  
Old 01-11-2010, 07:09 AM
 
Chris B Chris B is offline
 

eXpert
  
Join Date: Oct 2002
Posts: 226
 

Default Re: How to use an "and" statement for 3 category menus

For 4.0x I'm looking to add a header to each of the broken out categories (Only if there are categories listed between the $categories[cat_num].order_by). Any ideas?

Here's my current code:

<p><font class="VertMenuTitleGold">Category Name One</font></p>
{section name=cat_num loop=$categories}
{if $categories[cat_num].order_by gt 200 AND $categories[cat_num].order_by lt 299}
<FONT class="CategoriesListCaps"><A href="home.php?cat={$categories[cat_num].categoryid}" class="VertMenuItemsWht">{$categories[cat_num].category}</A></FONT><BR>
{/if}
{/section}



<p><font class="VertMenuTitleGold">Category Name Two</font></p>
{section name=cat_num loop=$categories}
{if $categories[cat_num].order_by gt 300 AND $categories[cat_num].order_by lt 399}
<FONT class="CategoriesListCaps"><A href="home.php?cat={$categories[cat_num].categoryid}" class="VertMenuItemsWht">{$categories[cat_num].category}</A></FONT><BR>
{/if}
{/section}


Thanks...
__________________
4.0x - 4.5x
Reply With Quote