All ftl templates: Fix access to assets
---------------------------------------

                 Key: MGNLMIGRATION-149
                 URL: http://jira.magnolia-cms.com/browse/MGNLMIGRATION-149
             Project: Magnolia Migration
          Issue Type: Improvement
    Affects Versions: 1.1.4
            Reporter: wolf bubenik
            Assignee: Jozef Chocholacek


The ftl code generated by current version of migration scripts does not work: 
{code}
[#assign [#--OLD image = stk.getAsset(content, "image", "ANY")! --] image = 
stkfn.getAsset(content, "image", "ANY")!]
{code}
I see two issues here: 
# 'content' is a ContentMap, not a 'Node'
# the standard variation "ANY" does not exist any more

Thus a replacement like 
{code}
[#assign image = stkfn.getAsset(model.node, "image")!]
{code}
should be used. 

-- 
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/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to