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

Page area ftl templates: Fix usage of 'model' and 'def'

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 1.2.3
    • 1.1.4
    • None
    • None
    • Migros project

      On Magnolia 4.4.x area ftl templates (htmlHeader, branding...) the context variables 'content' and 'def' refer to the page content and page def. Since version 4.5.x these variables refer to the area's content and definition. Thus code like

      [#assign propertyXXX = model.XXX!]
      ...
      [#assign propertyYYY = def.YYY!]
      

      should be migrated to

      [#assign pageModel = model.root!]
      [#assign pageDef = pageModel.definition!]
      ...
      [#assign propertyXXX = pageModel.XXX!]
      ...
      [#assign propertyYYY = pageContent.YYY!]
      

        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: