Uploaded image for project: 'Magnolia CLI'
  1. Magnolia CLI
  2. NPMCLI-6

Do not duplicate areas

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Neutral
    • None
    • None
    • None

    Description

      Currently add-availability script when it doesn't find proper area in yaml configuration (page definition) will create this configuration and into ftl file will add freemarker code to render that area. Unfortunately for pages we have one ftl file - main.ftl and if add-availability for compA into homePage it will does it (add area configuration, add ftl to render area). But then if add-availability for compB to standardPage which share same main.ftl, then this area is added into ftl again (duplication).

      So modify add-availability script to first check if that area '[#cms.area name="<areaName>" ' (do not close, there can be extra parameters for area) already exist in ftl file.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              fgrilli Federico Grilli
              tgregovsky Tomáš Gregovský
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD