Which command would you enter in your CQ Component script to get the template path of an AEM page in publish instance?
Which command would you enter in your CQ Component script to get the template path of an AEM page in publish instance?
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).
Answer is C, Page.getTemplate().getPath();