Details
-
Improvement
-
Resolution: Fixed
-
Neutral
-
3.2.3
-
Empty show more show less
-
Content Mngmt 7, Content Mngmt 08
-
5
Description
Steps to reproduce (Using travel demo)
- Travel Home template is using a Page Properties dialog that includes a linkfield in the Search tab (Field Search result page)
- Create a livecopy of travel and rename it to mytravel
- Use the relink action.
Expected results
All links in the page and in subnodes are relinked.
Actual results
All is relinked except properties at the page level included by Page Property dialog. If the livecopy home page is opened it can be seen that the value of the search result page is pointing to travel instead of mytravel).
Workaround
NO
Development notes
info.magnolia.livecopy.actions.rewire.RewirePageLinksHelper.rewritePageLinks(Node, boolean) is in charge of rewrite links in pages, it gets childnodes of the page and rewrite all its links, but ignores the links properties in the page itself.
It might be useful to call this also at page level and not only from child nodes:
for (Node slaveContentNode : slaveChildContentNodes) {
compatibilityRewirePageLinksHelper.rewriteLinksForNode(slaveContentNode, masterSiteDefinition, protectFieldAfterRewire);
standardRewirePageLinksHelper.rewriteLinksForNode(slaveContentNode, masterSiteDefinition, protectFieldAfterRewire);
}
Checklists
Attachments
Issue Links
- depends upon
-
LIVECOPY-271 [Test after LIVECOPY-272] Relink feature is not working
-
- Closed
-
- relates to
-
LIVECOPY-273 Relink action doesn't work for linkField in area
-
- Closed
-