Sandbird Posted September 14, 2010 Share Posted September 14, 2010 I am having a weird problem with templating. I got this line in my header.tpl. {include file="templates/mytheme/menu.tpl"} in my menu.tpl i got this: <span class="title">{$LANG.page_menu}</span> and the language file has: $_LANG['page_menu'] = "This is a menu"; But its not working....its not loading it to the header.tpl. I am doing this way cause i couldnt figure out how to do it from php. I could include the menu as a menu.php file using this : {include_php file='templates/mytheme/menu.php'} but i couldn't load the translation file then from the menu.php. Either way its fine by me....php or tpl...i just want the damn thing to load a menu.tpl/php that takes variables from the language files. Any help ? 0 Quote Link to comment Share on other sites More sharing options...
disgruntled Posted September 14, 2010 Share Posted September 14, 2010 I am having a weird problem with templating. I got this line in my header.tpl. {include file="templates/mytheme/menu.tpl"} in my menu.tpl i got this: <span class="title">{$LANG.page_menu}</span> and the language file has: $_LANG['page_menu'] = "This is a menu"; But its not working....its not loading it to the header.tpl. I am doing this way cause i couldnt figure out how to do it from php. I could include the menu as a menu.php file using this : {include_php file='templates/mytheme/menu.php'} but i couldn't load the translation file then from the menu.php. Either way its fine by me....php or tpl...i just want the damn thing to load a menu.tpl/php that takes variables from the language files. Any help ? Take a look at the v4 template files as there is a side menu in it and you will not the template is inside of the footer.tpl file but shows up on the site menu. You shouldnt need to include another tpl file just place it in any of the header or footer tpl files and position it with a css statement 0 Quote Link to comment Share on other sites More sharing options...
Sandbird Posted September 16, 2010 Author Share Posted September 16, 2010 thanks i'll try 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted September 16, 2010 Share Posted September 16, 2010 You could also do something like: {php} include('file.php'); {/php} 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.