Forums / General / [share] How to modify the $view_parameters valus in the template.

[share] How to modify the $view_parameters valus in the template.

Author Message

david lee

Monday 12 July 2010 12:10:24 am

1. You have to install the swark extension.

 

 

2. Below I want to change the $view_parameters.offset to 10 in the template.

{set $view_parameters = $view_parameters|set_array_element("offset", 10)}

Nicolas Pastorino

Monday 12 July 2010 12:22:56 am

Thanks for sharing David. Indeed, the set_array_element operator is very useful, share.ez.no is using it in many places!

Cheers

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye