![]() |
Variable for current category??
I would like to color my navigation tabs based on the category that the user is currently in. Seems like it should be simple enough.
For the life of me I can not find out what variable might contain the integer id of the current root category the user is in. Looking at code in the forums, I thought perhaps $cat would be the trick, but that always renders 0 for me. I'm trying to do this from within /customer/top_menu.tpl Can anyone help?? UPDATE: Hmm. I still need to test, but I think the problem is that the speedbar doesn't navigate between categories, it's navigating between pages - so I was looking for the wrong data. Let me try again. |
Re: Variable for current category??
for STATIC EMBEDDED pages, you can try:
{if $main eq "pages" and $page_data.pageid eq "X"} X= the actual page ID from the admin TO VIEW the variables for any page: http://forum.x-cart.com/showthread.php?p=59611#post59611 |
Re: Variable for current category??
PS -- welcome to xcart... please read the forum FAQ -- make sure you post your exact version of xcart in your forum signature.
--Jeremy |
All times are GMT -8. The time now is 02:21 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.