mim Posted July 5, 2012 Share Posted July 5, 2012 (edited) Hi there, anyone knows why this piece of code (which shows the category tree branch by loading the coresponding tpl) works fine in sitemap.tpl file but does not in any other pages?! {foreach from=$categoriesTree.children item=child} {include file="$tpl_dir./category-tree-branch.tpl" node=$child} {/foreach} is there anything that I didn't consider? thanks in advance for sharing any clue with me, it's kinda confusig for me right now Edited July 12, 2012 by mim (see edit history) Link to comment Share on other sites More sharing options...
mim Posted July 6, 2012 Author Share Posted July 6, 2012 anyone?! ) Link to comment Share on other sites More sharing options...
mim Posted July 9, 2012 Author Share Posted July 9, 2012 no one can help me on this? I apreciate if you have any clue to share with me Link to comment Share on other sites More sharing options...
Krystian Podemski Posted July 12, 2012 Share Posted July 12, 2012 Hello mim, Look at that: from=$categoriesTree.children In controllers/SitemapController.php you have assigned variable called $categoriesTree, on some other pages this variable doesn't exist. Remember - in .tpl files you have access to already assigned variables. 1 Link to comment Share on other sites More sharing options...
mim Posted July 12, 2012 Author Share Posted July 12, 2012 Thank you very much dear Podemski, greate help Althought I preffer to not change anything outside of theme and modules directories, since with your help I know where I have to look for I think I can assign these variables through a simple module too so I'll give it a try, thank you again 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