Details
-
Bug
-
Resolution: Cannot Reproduce
-
Neutral
-
None
-
None
-
None
-
-
Empty show more show less
-
Basel 122
-
1
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