hypnotic_monkey Posted September 1, 2011 Share Posted September 1, 2011 I am trying to do this: page.php?page1 {if get[] == 'page1'} {include file='template/page1.tpl'} {elseif get['h'] == 'page2'} {include file='template/page2.tpl'} {/if} how can i do this in template syntax? i am trying to avoid using the {php}{/php} tags. 0 Quote Link to comment Share on other sites More sharing options...
hypnotic_monkey Posted September 1, 2011 Author Share Posted September 1, 2011 Got something working not sure how to do it without ?h=page1 but its something to go with. page.php add: $smartyvalues["subpage"] = $_GET['h']; page.tpl add: {if $subpage == 'page1'} {include file='template/page1.tpl'} {elseif $subpage == 'page2'} {include file='template/page2.tpl'} {else} {include file='template/page.tpl'} {/if} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.