perusi Posted February 25, 2013 Share Posted February 25, 2013 Hi, Currently i`m using this line of code to display something only in the index page: {if $page_name == "index"} My question is: What's the code to display something only from a certain category page, like accesorries? The Accessories page has ID number 4, so what line of code should i use..? something like {if $page_id == "4"} ??? I tried, but it's not working... I want to use it so... that i display something different in every different categ.... thanks Link to comment Share on other sites More sharing options...
shacker Posted February 25, 2013 Share Posted February 25, 2013 i use the function Page::getCurrentId(); in a module to get the id of the page as category, or what you want. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now