Hi Alejandro,

Have you solved your Problem yet?
What exactly are you trying to do?

Are you trying to read a context parameter from the servlet context, or an 
attribute from the Magnolia context?

You can say something like this in freemarker:

${ctx.getAttribute("myattribute")}
or
${ctx.setAttribute("myattribute","myval")}

To access the servlet context is a bit more tricky:

${ctx.servletContext.getInitParameter("paramName")}

Regards from Vienna,

Richard

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Magnolia Forums (on behalf of Alejandro senent)
Gesendet: Sonntag, 01. Jänner 2012 13:20
An: Magnolia User List
Betreff: [magnolia-user] pick up a context variable in freemarker [doubt]

I wonder how I can pick up a context variable declared in FreeMarker:

     [@ c.set var = "idiomaTEST" scope = "session"] cs [/ @ c.set]

thank you very much

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=4fe40777-5e9b-4c8d-9aeb-36c795084739


----------------------------------------------------------------
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]>
----------------------------------------------------------------





----------------------------------------------------------------
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]>
----------------------------------------------------------------

Reply via email to