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

Details

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

    Description

      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.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: