Friday 06 January 2006 7:48:49 am
How can i simply pass an array to a template function as if those 'key/values' pairs where the template function's parameters ? With a custom operator (something like 'list()') ? Example :
{def $array=hash('view', 'line', 'name', 'sven'}
{node_view_gui node=$node $array|list}
The 'list' operator would transform '$array' to this :
{node_view_gui node=$node $view='line' $name='sven'}
Is it possible ? How can i achieve this ? Being able to do this would be a great help for me so thanx in advance... Martin
EZP is Great
|