On the top of my head, ${ctx.status} might work. If not, I'll do some research, 
cause that was one of the stumbling blocks when we began integrating 
FreeMarker, and I'm sure I got it working at some point.

-g

On 25 Feb 2011, at 15:36, Will Scheidegger wrote:

> Dear Magnolians
> 
> Lately I'm asking much more questions than I'm answering -> my reputation is 
> going down the drain! Oh well, what can I do? I cannot afford to spend hours 
> of research on every small problem. So here's the next question:
> 
> 
> I have a (JSP tag) ContentNodeIterator in a freemarker template which sets 
> the status variable:
> 
> [@cms.contentNodeIterator items=metaNavigation.content?children 
> varStatus="status"]
>       ...
> [/@cms.contentNodeIterator]
> 
> Now I can easily access the status variable in this template (using 
> ${status...}). But how can I use it in the subtemplate (i.e. the one that 
> will be included with [@cms.includeTemplate]? With JSP I could set the 
> variable in the request scope (or I think the ContentNodeIterator did that 
> automatically). But how do I do it with Freemarker? Or actually: How is it 
> done so it will work with Freemarker AND JSP paragraph tempaltes?
> 
> Thanks!
> -will
> 
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to