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

Avatar

Avatar
Ignite 1
Level 2
NehaCMS
Level 2

Likes

19 likes

Total Posts

40 posts

Correct reply

2 solutions
Top badges earned
Ignite 1
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Ignite 1
Level 2
NehaCMS
Level 2

Likes

19 likes

Total Posts

40 posts

Correct reply

2 solutions
Top badges earned
Ignite 1
Validate 1
Boost 5
Boost 3
Boost 10
View profile
NehaCMS
Level 2

07-09-2020

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 50
Employee
surabhikatiyar
Employee

Likes

68 likes

Total Posts

46 posts

Correct reply

18 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Boost 50
Employee
surabhikatiyar
Employee

Likes

68 likes

Total Posts

46 posts

Correct reply

18 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile
surabhikatiyar
Employee

08-09-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/
 
 

Answers (2)

Answers (2)

Avatar

Avatar
Boost 250
MVP
ChitraMadan
MVP

Likes

272 likes

Total Posts

165 posts

Correct reply

67 solutions
Top badges earned
Boost 250
Establish
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Boost 250
MVP
ChitraMadan
MVP

Likes

272 likes

Total Posts

165 posts

Correct reply

67 solutions
Top badges earned
Boost 250
Establish
Ignite 1
Give Back 5
Give Back 3
View profile
ChitraMadan
MVP

08-09-2020

Hi @NehaCMS ,

 

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

Avatar

Avatar
Ignite 1
Employee
aemmarc
Employee

Likes

184 likes

Total Posts

243 posts

Correct reply

92 solutions
Top badges earned
Ignite 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Ignite 1
Employee
aemmarc
Employee

Likes

184 likes

Total Posts

243 posts

Correct reply

92 solutions
Top badges earned
Ignite 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
aemmarc
Employee

08-09-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.