Uploaded image for project: 'Migration 4.4 to 4.5 (closed)'
  1. Migration 4.4 to 4.5 (closed)
  2. MGNLMIGRATION-149

All ftl templates: Fix access to assets

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 1.2.6, 2.0
    • 1.1.4
    • None

      The ftl code generated by current version of migration scripts does not work:

      [#assign [#--OLD image = stk.getAsset(content, "image", "ANY")! --] image = stkfn.getAsset(content, "image", "ANY")!]
      

      I see two issues here:

      1. 'content' is a ContentMap, not a 'Node'
      2. the standard variation "ANY" does not exist any more

      Thus a replacement like

      [#assign image = stkfn.getAsset(model.node, "image")!]
      

      should be used.

        Acceptance criteria

              rsiska Robert Šiška
              wolf.bubenik wolf bubenik
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: