[ 
http://jira.magnolia-cms.com/browse/MAGNOLIA-2945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Grégory Joseph reassigned MAGNOLIA-2945:
----------------------------------------

    Assignee: Grégory Joseph  (was: Philipp Bärfuss)

> FreeMarker ?ancestors and ?root built-ins don't work
> ----------------------------------------------------
>
>                 Key: MAGNOLIA-2945
>                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2945
>             Project: Magnolia
>          Issue Type: Bug
>          Components: templating
>    Affects Versions: 4.1.1
>            Reporter: Nils Breunese
>            Assignee: Grégory Joseph
>
> I wanted to use the FreeMarker ?ancestors built-in 
> (http://freemarker.sourceforge.net/docs/ref_builtins_node.html) in a 
> FreeMarker template. However, it doesn't seem to work. I added this:
> {code}[#assign ancs = content?ancestors]{code}
> But just this statement results in the following error:
> {noformat}Can't get parent of I18nContentWrapper for website:/[rep:root]:root 
> node doesn't have a parent{noformat}
> I found the same goes for the ?root built-in:
> {code}[#assign r = content?root]{code}
> Just this assignment results in the same error message:
> {noformat}Can't get parent of I18nContentWrapper for website:/[rep:root]:root 
> node doesn't have a parent{noformat}
> This bug was previously discussed on the Magnolia User-List: 
> http://old.nabble.com/Problem-with-FreeMarker-built-in-for-ancestors-ts26334726.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to