Hey guys.
I use Magnolia Enterprise Edition, 4.4.4 and freemarker templates (ftl).
In one of my FTLs, I'm getting an error when I try do to the following:
[code]
[#assign cms=JspTaglibs["cms-taglib"]]
[@cms.setNode var="myNode" contentNodeName="myContent" inherit=true /]
[#if myNode?has_content]
  <-- NEVER ENTERS IN HERE -->
[/#if]
[/code]
Then I try to access myNode.my_attribute and I get this error:
freemarker.core.InvalidReferenceException: Expression myNode is undefined on 
line 34, column 123 in templates (mytemplate.ftl)

So, it seems that the code "[@cms.setNode ..." is not working, do I need to do 
anything else to make it work? I already called [#assign 
cms=JspTaglibs["cms-taglib"]] before.
Need your help...

Thanks a lot!

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=37a68805-dcaf-4e90-b61d-98ac5248939e


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