Need to extract nodes containing locale name like sg under root path /content/data/project using include option in package manager | Adobe Higher Education
Skip to main content
Level 4
September 7, 2020
Besvarat

Need to extract nodes containing locale name like sg under root path /content/data/project using include option in package manager

  • September 7, 2020
  • 3 svar
  • 1369 visningar

Need to extract nodes containing locale name like sg under root path /content/data/project using include option in package manager. Can same be done using some regex. Kindly share some examples

Det här ämnet har stängts för svar.
Bästa svar av Surabhi_Katiyar
The regex that can be used is  /content/data/project/?.*sg?.* inside the include option within the filter.xml. And how to define it Within filter.xml can be found in the below link:
 

For testing out the regex expression you can use https://regexr.com/
 
 

3 svar

Surabhi_Katiyar
Adobe Employee
Adobe Employee
September 8, 2020
The regex that can be used is  /content/data/project/?.*sg?.* inside the include option within the filter.xml. And how to define it Within filter.xml can be found in the below link:
 

For testing out the regex expression you can use https://regexr.com/
 
 
Adobe Employee
September 8, 2020

I'd use the ACS Commons Query Packager -- that way you can build you package based on the result set from a jcr-sql query.

ChitraMadan
Community Advisor
Community Advisor
September 8, 2020

Hi @nehama ,

 

You can use filter as /content/data/project and add a include rule as /content/data/project/sg.*

 

Please refer to this link for some examples: http://aemfaq.blogspot.com/2013/04/cq5-package-filter-includeexclude.html