I infis Well-known member Dec 4, 2011 #1 How I can create a variable in a template and pass it for a helper? In particular, it is required to create a variable of type "array".
How I can create a variable in a template and pass it for a helper? In particular, it is required to create a variable of type "array".
Pepelac Well-known member Dec 4, 2011 #2 Like this Code: <xen:set var="$avaUser.user_id">{xen:number $attributes.member}</xen:set> <xen:set var="$avaUser.username">{$nameHtml}</xen:set> {xen:helper dump, $avaUser}
Like this Code: <xen:set var="$avaUser.user_id">{xen:number $attributes.member}</xen:set> <xen:set var="$avaUser.username">{$nameHtml}</xen:set> {xen:helper dump, $avaUser}
xfrocks Well-known member Dec 4, 2011 #3 If you just need to construct an array, you can also do this Code: {xen:array 'key=value', 'anotherkey=anothervalue', 'foo=bar', 'visitorUserId={$visitor.user_id}'}
If you just need to construct an array, you can also do this Code: {xen:array 'key=value', 'anotherkey=anothervalue', 'foo=bar', 'visitorUserId={$visitor.user_id}'}