Is it possible to configure a CRX package filter to include paths with a certain path segment in them? I want to build a package of all content that has /config/ in the path. I've tried multiple ways of filtering but no luck.
For example, I tried the below but when I excecute the package coverage preview, it doesn’t show any content being covered:
Root path: /content
Rules: include .*/config/.*
Solved! Go to Solution.
Views
Replies
Total Likes
Looks to be not working for your use
Tried with the following rule - /content[/a-z]*/config/*.*
Rule including only the content under /content/config but not under different levels e.g. /content/test/config
The regex is valid and matching both cases while validating externally, seems only limited regex supported here
Regards
Albin I
Thanks for the suggestion, but that seems to be invalid.
Get this error when trying to save the package with that rule:
Could not modify package. Dangling meta character '*' near index 0 *.*/config/*.* ^
Looks to be not working for your use
Tried with the following rule - /content[/a-z]*/config/*.*
Rule including only the content under /content/config but not under different levels e.g. /content/test/config
The regex is valid and matching both cases while validating externally, seems only limited regex supported here
Regards
Albin I
Agree it seems only limited regex is supported and it's not possible to do this with standard package filters. Haven't tried it but a good solution is probably ACS AEM Commons Query Packager: https://adobe-consulting-services.github.io/acs-aem-commons/features/packagers/query-packager/index.... .
Views
Likes
Replies