6D Labs / CQ Extended Tag Library / API / Expression Language Functions / getTitle
Get the title of the specified page gracefully, using the jcr:title and the page node name as fallbacks.
com.day.cq.wcm.api.Page
- the page from which to get the titlejava.lang.String
- the type of title to get, one of ‘nav’ or ‘page’, page is defaultjava.lang.String
- the page title
Example:
<li>${ext:getTitle(currentPage,'nav')}</li>