Sling Mappings | Community
Skip to main content
Level 4
October 16, 2015
Solved

Sling Mappings

  • October 16, 2015
  • 3 replies
  • 1231 views
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 Naveen_AEM_dev

You need to add a few resource resolver mapping rules in the "Apache Sling Resource Resolver" configuration manager in the felix console. 

Your requirement will be resolved by using the below rules,

/stringtohide/select-a-country.html>/select-a-country.html
/stringtohide/select-a-country.html</select-a-country.html

/stringonetohide/stringtwotohide/privacy.html>/privacy.html
/stringonetohide/stringtwotohide/privacy.html</privacy.html

The below link helped me understand the mapping better,

http://ilikeorangutans.github.io/2012/11/20/apache-sling-resource-resolver-rule-priority-explained/

Hope this helps

3 replies

Naveen_AEM_dev
Naveen_AEM_devAccepted solution
Level 4
October 16, 2015

You need to add a few resource resolver mapping rules in the "Apache Sling Resource Resolver" configuration manager in the felix console. 

Your requirement will be resolved by using the below rules,

/stringtohide/select-a-country.html>/select-a-country.html
/stringtohide/select-a-country.html</select-a-country.html

/stringonetohide/stringtwotohide/privacy.html>/privacy.html
/stringonetohide/stringtwotohide/privacy.html</privacy.html

The below link helped me understand the mapping better,

http://ilikeorangutans.github.io/2012/11/20/apache-sling-resource-resolver-rule-priority-explained/

Hope this helps

smacdonald2008
Level 10
October 16, 2015
Sham_HC
Level 10
October 16, 2015