Forums / Developer / Include and node_view_gui problem / Comment46717
André R.
Wednesday 06 September 2006 4:11:13 am
I've used the following code without problems
{foreach $toolarray as $tool} {include uri=concat("design:", $tool[0]) mynode=$tool[1]} {/foreach}
where a sample of $toolarray would be:
$toolarray = array( array("menu_tree.tpl", 296), array("subfolder/agenda_list.tpl", 131))
where those templates would be in: design/mydesign/templates/menu_tree.tpldesign/mydesign/templates/subfolder/agenda_list.tpl
So I guess you see what your include problem is.. wrong paths..
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom