Hi,
You can use contextAttributes for this.
like so:
[code][@cms.component content=component contextAttributes={"oddStyle":oddStyle}
/][/code]
you can use multiple variables like this:
[code]contextAttributes={"name1":value1, "name2":value2}[/code]
In the template script of your components you can read out the value:
[code][#assign oddStyle = ctx.oddStyle! /][/code]
Hope this helps,
Gerton ten Ham
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=bdbf1e85-3860-406a-9b0a-94dbafc74c0e
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------