Bruna BSPCU Posted August 21, 2013 Share Posted August 21, 2013 Hello everyone! How can i call a page that i'd created on CMS on admin panel? I want to use it on smarty, example: {if $page_name=='cms'}style="display:none" I don't want to show the left column on that specific page, so i need to know the name of it to put on header.tpl, inside <div id="left_column" .... Thanks! Link to comment Share on other sites More sharing options...
tomerg3 Posted August 21, 2013 Share Posted August 21, 2013 The $page_name variable if for page type (IE product, category, cms). All CMS pages will have the same name, you can try looking for the id (id_cms) Link to comment Share on other sites More sharing options...
vekia Posted August 22, 2013 Share Posted August 22, 2013 you can use simple if condition like: {if isset($smarty.get.id_cat)} {if $smarty.get.id_cat==2}style="display:none;"{/if} {/if} Link to comment Share on other sites More sharing options...
Recommended Posts