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

    • Type: Improvement
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: 1.1.4
    • Fix Version/s: 1.2.6, 2.0
    • Component/s: None
    • Labels:

      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Date of First Response: