Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Sling Mappings

Avatar

Level 4
1 Accepted Solution

Avatar

Correct answer by
Level 4

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

View solution in original post

3 Replies

Avatar

Correct answer by
Level 4

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