adobe / aem-modernize-tools

A suite of tools to modernize your AEM Sites implementations off legacy features.
http://opensource.adobe.com/aem-modernize-tools/
Apache License 2.0
64 stars 40 forks source link

Unable to get the multifield nodes from a component, with updated property name #207

Open hiralvasa opened 6 months ago

hiralvasa commented 6 months ago

Hi All,

I am unable to get the multifield nodes from a component with the updated property name.

Expected Behaviour

While migrating components, the multifield nodes under it should also be added into the new migrated component, with the updated property name as well.

Actual Behaviour

cq:copyChildren simply adds the children nodes as it, but there is no way to feed in the new property names which should replace the old property names from the children node.

This is a specific use case where the components have the multifield nodes (the number cannot be specified in the rewrite rules). Is there a way to copy the children nodes with the updated property names?

Thanks in advance for the answer! looking forward for the same.

hiralvasa commented 6 months ago

Hi @bstopp,

Could you please help me to understand how shall we handle such cases. Thanks in advance!