Jump to content

Exceptions modules


Recommended Posts

Hello,
I question whether in PS 1.5.x, can be disable the module on a specific category. I have three different blocks and I would like to display each in its category only.
The PS 1.4.x one could make an exception by writing category.php? Id_category = X.
How to do it in 1.5?
Or is it possible to make it display some set {if}?

 

I did so:
{if $ id_category == 12} style = "display: none" {/ if}
but as a display module, so the displays still.

Link to comment
Share on other sites

with default exceptions feature you can't, you can do it only with code modifications

 

you also tried wrong code.

try with something like:

{if isset($smarty.get.id_cat)}
  {if $smarty.get.id_cat ==5}
    style="display:none;"
  {/if}
{/if}
Link to comment
Share on other sites

×
×
  • Create New...