View Single Post
  #3  
Old 02-17-2006, 01:22 AM
 
vixnfox vixnfox is offline
 

Advanced Member
  
Join Date: Feb 2006
Location: Adelaide, South Australia
Posts: 82
 

Default

OK while im waiting
in categories.tpl I did this

{if $config.General.root_categories eq "Y"}
{section name=cat_num loop=$categories}
{assign var="tmp" value = $categories[cat_num].categoryid}

{if $tmp ne "250"}


<FONT class="CategoriesList">{$categories[cat_num].category}</FONT>



{/if}

then in my own menu tpl

{if $config.General.root_categories eq "Y"}
{section name=cat_num loop=$categories}
{assign var="tmp" value=$categories[cat_num].categoryid}
{if $tmp eq"250"}


<FONT class="CategoriesList">{$categories[cat_num].category}</FONT>

{/if}

Now I have the Photography category on its own menu, so I can link my own CSS to change the whole appearance when someone selects it.

I have a question though, in this
{assign var="tmp" value=$categories[cat_num].categoryid}

I tried to get the category name by using
{assign var="tmp" value=$categories[cat_num][categoryid].category}
so I couyld test for "Photography" instead of the cat ID of 250 that I had to get from MyPhPAdmin. Anyone know how to assign the category name so I can see it??


[/b]
__________________
V 4.3.1 Live:

Developing on
PHP 5.3.0
MySQL server 5.0.75-community-log
MySQL client 5.1.36
Web server Apache/2.2.11 (Unix) mod_ssl/2.2.11
Windows 7 64bit on a Toshiba Satellite P500

ADELAIDE, SOUTH AUSTRALIA
Reply With Quote