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

  1. Download the attached package copy-slingmap-*.zip

  2. Install the package to the package manager (http://host:port/crx/packmgr/index.jsp)

  3. Browse to http://host:port/apps/tools/components/copyslingmap/run.html

  4. Enter a Source Path, for example /etc/map.publish.dev

  5. Enter a Destination Path for example /etc/map.publish.qa

  6. 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

  1. Make a copy of the mapping node from Source Path to the Destination Path.

    참고:

    If the Destination Path exists, then the Source Path would be ignored and the mappings existing at the Destination Path would be updated.

  2. Update properties under the Destination Path using the search and replace strings.

  3. Move nodes under the Destination Path using the search and replace strings.

다운로드

이 작업에는 Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License의 라이센스가 부여되었습니다.  Twitter™ 및 Facebook 게시물은 Creative Commons 약관을 적용받지 않습니다.

법적 고지 사항   |   온라인 개인 정보 보호 정책