ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 60 - AD0-E103 discussion

Report
Export

A developer is creating a custom component on the page /latestBlogs.html that needs to list all the titles of the blogs pages under /content/blogs.

How does this component get the list of child pages?

A.
Instantiate a node object with session.getNode(/content/blogs) and then iterate through the child nodes and print the title for each.
Answers
A.
Instantiate a node object with session.getNode(/content/blogs) and then iterate through the child nodes and print the title for each.
B.
Use PageManager.getPage(“/content/blogs”) of the static PageManager class to instantiate a Page object and then iterate through the child pages and print the title for each.
Answers
B.
Use PageManager.getPage(“/content/blogs”) of the static PageManager class to instantiate a Page object and then iterate through the child pages and print the title for each.
C.
Use the QueryDebugger to look for all children of /content/blogs and then iterate through the result set and print the title for each.
Answers
C.
Use the QueryDebugger to look for all children of /content/blogs and then iterate through the result set and print the title for each.
D.
Adapt the resourceResolver to the PageManager service, then use the getPage(/content/blogs) to instantiate a Page object and then iterate through the child pages and print the title for each.
Answers
D.
Adapt the resourceResolver to the PageManager service, then use the getPage(/content/blogs) to instantiate a Page object and then iterate through the child pages and print the title for each.
Suggested answer: B

Explanation:

Reference: https://helpx.adobe.com/experience-manager/6-2/sites/developing/using/reference-materials/javadoc/com/day/cq/wcm/api/PageManager.html

asked 02/10/2024
antonio de simone
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first