-
Bug
-
Resolution: Fixed
-
Major
-
1.1.4
-
None
-
None
-
Migros project
-
-
Empty show more show less
ftl-files that contain wrapper HTML-tags and if-statements around new-Bars are processed incorrectly. Code like
[@cms.contentNodeIterator contentNodeCollectionName="linkList"] [@cms.includeTemplate /] [/@cms.contentNodeIterator] [#if mgnl.editMode] <li> [@cms.newBar contentNodeCollectionName="linkList" newLabel="${i18n['link.newLabel']}" paragraph="${def.subParagraphs}" /] </li> [/#if]
is migrated to:
[#--OLD AREA [@cms.contentNodeIterator contentNodeCollectionName="linkList"] [@cms.includeTemplate /] [/@cms.contentNodeIterator] [#if mgnl.editMode] <li> [@cms.newBar contentNodeCollectionName="linkList" newLabel="${i18n['link.newLabel']}" paragraph="${def.subParagraphs}" /] AREA--][@cms.area name = "linkList" /]<p class="migration_warning">Please make sure that an area named linkList exists in your Magnolia configuration</p> </li> [/#if]
leaving orphaned HTML-Tags (</li>) and if-statements (/#if) behind.
The migration could be improved to produce something like:
[#--OLD AREA [@cms.contentNodeIterator contentNodeCollectionName="linkList"] [@cms.includeTemplate /] [/@cms.contentNodeIterator] AREA--] [@cms.area name = "linkList" /]<p class="migration_warning">Please make sure that an area named linkList exists in your Magnolia configuration</p> [#if mgnl.editMode] <li> [#--OLD AREA [@cms.newBar contentNodeCollectionName="linkList" newLabel="${i18n['link.newLabel']}" paragraph="${def.subParagraphs}" /] AREA--] </li> [/#if]
Acceptance criteria