9A0-384 Exam QuestionsBrowse all questions from this exam

9A0-384 Exam - Question 15


Which command would you enter in your CQ Component script to get the template path of an AEM page in publish instance?

Show Answer
Correct Answer: BC

To get the template path of an AEM page in a publish instance, you would use the command 'Page.getTemplate().getPath();'. This command first retrieves the template object associated with the page and then calls the getPath() method on that template object to obtain its path. The other options either do not correctly retrieve the template (like Properties-get) or do not return the path (like Page.getTemplate).

Discussion

1 comment
Sign in to comment
starcitynews0023Option: C
May 2, 2020

Answer is C, Page.getTemplate().getPath();