Details
-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
-
Empty show more show less
-
Content Mngmt 09
-
5
Description
in one of our projects we use switchable field where one option is linkField:
link: $type: switchableField label: Link target i18n: true itemProvider: $type: currentItemProvider field: name: link i18n: true defaultValue: none $type: radioButtonGroupField datasource: $type: optionListDatasource options: - value: none name: 0 label: None - value: internal name: 1 label: Internal - value: external name: 2 label: External - value: dam name: 3 label: Asset layout: horizontal forms: none: properties: none: $type: staticField label: ' ' i18n: true value: ' ' internal: properties: internal: label: 'Select a page:' i18n: true $type: linkField datasource: $type: jcrDatasource workspace: website allowedNodeTypes: - mgnl:page - mgnl:variants - mgnl:variant external: properties: external: label: 'Enter url (including http://):' i18n: true $type: textField dam: properties: dam: i18n: true $type: assetDamLinkField label: '' propertyNameDecorator: info.magnolia.ui.field.PrefixNameDecorator
Issue: relink action doesn't change this linkField
DEV NOTE:
- Link field inside switchable field can't be relink, the old switchable ui framework work
Reason: due to itemProvider's of switchable is currentItemProvider . See https://git.magnolia-cms.com/projects/MODULES/repos/templating-essentials/browse/magnolia-templating-kit-2/src/main/resources/mtk2/includes/linkSwitchableField.yaml#6
while LC code currently just support for itemProvider is jcrChildNodeProvider. See https://git.magnolia-cms.com/projects/ADDON/repos/live-copy/browse/src/main/java/info/magnolia/livecopy/actions/rewire/StandardRewirePageLinksHelper.java#112
I guess the fix should be simple. Need to relink for slaveContentNode as well for case itemProvider's of switchable is currentItemProvider
Checklists
Acceptance criteria
Attachments
Issue Links
- relates to
-
LIVECOPY-271 [Test after LIVECOPY-272] Relink feature is not working
-
- Closed
-