Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Query builder

Avatar

Avatar
Validate 1
Level 1
Lalitha_j
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Lalitha_j
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Lalitha_j
Level 1

18-05-2021

Hi All,

 

I have a requirement to get all the PDF assets from dam (general folder). Following is the folder structure pattern where <schoolcode> is a 5 digit number (could be more than 1500 codes).

/content/dam/anc/school/<schoolcode>/general/

/content/dam/anc/school/<schoolcode>/misc/

I am using AEM 6.5. 

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,345 likes

Total Posts

3,220 posts

Correct Reply

914 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,345 likes

Total Posts

3,220 posts

Correct Reply

914 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

19-05-2021

 

path=/content/dam/anc/schools/
type=dam:Asset
nodename=*.pdf
property=jcr:content/cq:tags
property.value=infrastructure:school-document-types/asbestos-register
orderby=nodename
p.hits=-1

 

Answers (1)

Answers (1)

Avatar

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

500 likes

Total Posts

637 posts

Correct Reply

211 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

500 likes

Total Posts

637 posts

Correct Reply

211 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile
Vijayalakshmi_S
MVP

18-05-2021

Hi @Lalitha_j,

Given the folder structure that you shared in original query + requirement, we need to have any specific identifier for PDFs available under General folder.
Eg : Let say, via tags where those PDFs are tagged as General.
With that, we can introduce an additional property predicate to bring in General PDFs for all school codes.

 

Example : You will be able to use the path predicate value till school node.
This will bring in PDFs of all category from all school codes. Try to see/identify any specific property (with respect to General category for the PDFs) and add it along with this predicates to narrow down to exact/expected search results.


path=/content/dam/anc/school
type=dam:Asset
nodename=*.pdf