I want to package page packets ending in "-shorts". How do I write a filter?
I tried the following method, but it didn't work.
Solved! Go to Solution.
Views
Replies
Total Likes
In case you are using ACS Commons, you can achieve it by using Query Packager.
SQL2 Query for same would be
SELECT * FROM [cq:Page] AS page WHERE ISDESCENDANTNODE(page, "/content/we-retail/us/en/products") AND name() like "%shorts%"
@ChaoXiong You can use the "Add rule" and choose "inlcude" from the dropdown and add your filter-
for eg. something like this:
Hope this helps.
thanks, @Manu_Mathew_
I mean, when you don't know the specific directory, you only see the directory level and how to get all the pages ending in "-shorts". You can only get the pages under "men/shorts" by writing like this.
I'm trying to write like this. Although I can get all the pages ending in "-shorts", I don't want to include these extra pages in the picture.
In case you are using ACS Commons, you can achieve it by using Query Packager.
SQL2 Query for same would be
SELECT * FROM [cq:Page] AS page WHERE ISDESCENDANTNODE(page, "/content/we-retail/us/en/products") AND name() like "%shorts%"
Thank you very much @Sachin_Arora_, that's great!