Skip to the content
Documentation

Can I use include with...

No ratings yet

You cannot guess this by reading the doc, so I tried,and :
- an array as parameter value ? Yes !

{def $my_param=array(10, 20, 30)}
{include uri='design:display_array.tpl' param=$my_param}

- a hash array as parameter ? Yes !

{def $my_param=hash('abc', 'ABC', 'de', 'DE', 'fghi', 'FGHI')}
{include uri='design:miscellaneous/display_array.tpl' param=$my_param}

- a node ? Yes !

{def $my_param=$node}
{include uri='design:miscellaneous/display_array.tpl' param=$my_param}