Jump to content

Hiding single pages from a module


Recommended Posts

Hi,

on my shop I have several CMS pages, that are divided in categories.
Now for those I made a new module that replaces the default shop category module only on cms pages.
Basically looks like this now:

Category 1
- id_cms=1
- id_cms=2

Category 2
- id_cms=3
- id_cms=4



...and so on, for a total of 4 "categories".

Now I am trying only to get the navigation of the active category to show, for example when I am on page id_cms=1, only Category 1 should be visible. Here is what I tried:

{if $smarty.get.id_cms == 1 AND if $smarty.get.id_cms == 2}



CMS Page 1
CMS Page 2



{/if}
{if $smarty.get.id_cms == 3 AND if $smarty.get.id_cms == 4}



CMS Page 3
CMS Page 4



{/if}



That produces an error. something about unexpected T_IF. I've tried several variations of this, like using != on those that aren't active.

Is there any way to make this work? I know I could just make an extra module for each category but I'd rather get it working in this one.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...