fluxxii Posted August 10, 2009 Share Posted August 10, 2009 Hi everyone,I have a piece of code that I want to show up on my first CMS page and not the rest of them. I know that there is {if $page_name == 'cms'}{/if}, but that's for all of them. Is there any way to limit this to just one, specific page?Thanks! Link to comment Share on other sites More sharing options...
fluxxii Posted August 11, 2009 Author Share Posted August 11, 2009 lalala Link to comment Share on other sites More sharing options...
adexa Posted August 16, 2010 Share Posted August 16, 2010 hi fluxxiiwhat about if you do {if $page_name ==‘cms.php?id_cms=2 ’}{/if}just type the page number if which page u want to show ,, i didnt try ,, but just an idea Link to comment Share on other sites More sharing options...
rocky Posted August 17, 2010 Share Posted August 17, 2010 That won't work, since the $page_name is 'cms' for all CMS pages. You should use code like the following in cms.tpl instead: {if $smarty.get.id_cms == 1} Your code here {/if} This will display on CMS page 1 only. Link to comment Share on other sites More sharing options...
Recommended Posts