Download the attached package copy-slingmap-*.zip
This article helps you learn how to copy, search, and replace values in sling /etc/map mappings to quickly apply different domains and run modes for different environments.
Environment
- AEM 6.3
Steps
-
-
Install the package to the package manager (http://host:port/crx/packmgr/index.jsp)
-
Browse to http://host:port/apps/tools/components/copyslingmap/run.html
-
Enter a Source Path, for example /etc/map.publish.dev
-
Enter a Destination Path for example /etc/map.publish.qa
-
Enter up to five searches and replace expressions that would be applied in the Search # and Replace # fields. These are plain string replacements, not regular expressions.
How it works
-
Make a copy of the mapping node from Source Path to the Destination Path.
Poznámka:If the Destination Path exists, then the Source Path would be ignored and the mappings existing at the Destination Path would be updated.
-
Update properties under the Destination Path using the search and replace strings.
-
Move nodes under the Destination Path using the search and replace strings.
Stáhnout