How to automate creation of /etc/map url shortening rules ? | Community
Skip to main content
Peter_Puzanovs
New Participant
October 16, 2015
Solved

How to automate creation of /etc/map url shortening rules ?

  • October 16, 2015
  • 2 replies
  • 1024 views

It's quite repetitive to copy/paste and modify /etc/map mappings for each environment as well as publisher/dispatcher and author, since content everywhere is almost the same.

Is there a tool already that allows to automate the mapping process for instances and paths generation under /etc/map folder  ?

Thanks,

Peter

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Runal_Trivedi

You can create the workflow launcher with a custom workflow process step that would copy the nodes from one etc map location to another and replicate if required.

But without writing some custom script there is no possible way of auto copy nodes from one location to another.

- Runal

2 replies

smacdonald2008
New Participant
October 16, 2015

There is no out of the box tool to automate mapping rules in AEM. 

http://docs.adobe.com/docs/en/cq/5-6-1/deploying/resource_mapping.html

Since these are nodes you are setting in CRXDE lite - you can look at the possibility of writing a custom AEM service that creates these sling:Mapping nodes. 

Runal_Trivedi
Runal_TrivediAccepted solution
New Participant
October 16, 2015

You can create the workflow launcher with a custom workflow process step that would copy the nodes from one etc map location to another and replicate if required.

But without writing some custom script there is no possible way of auto copy nodes from one location to another.

- Runal