Author Topic

André R.

Wednesday 06 September 2006 4:11:13 am

Comment46717

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.tpl
design/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