Hello, I have an area freemarker code like this:
[code]
[#list components as component ]
[#assign oddStyle = component_index%2 == 1]
<div class="component[#if oddStyle] odd[/#if]">
<div class="container">
[@cms.component content=component /]
</div>
</div>
[/#list]
[/code]
It's possible to pass oddStyle variable to the component to use it on his own
code? Or how can I do otherwise?
Thanks in advance.
--
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]>
----------------------------------------------------------------