![]() |
Show only in category pages
Anyone know the {if} statement for showing something only in category pages, not on home page or product detail pages?
|
Re: Show only in category pages
Try it -
{if $main eq "catalog"} Your code {/if} |
Re: Show only in category pages
For some reason, that's causing my code to show up on the homepage as well. That's been my problem. Any code to explicitly eliminate it from the homepage?
|
Re: Show only in category pages
Nevermind, got it. For those newbies interested...
{if $main eq "catalog" and $current_category.category ne ""} code code code {/if} will show code only in categories. |
All times are GMT -8. The time now is 02:52 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.