display page subtitle | Community
Skip to main content
New Participant
February 28, 2022
Solved

display page subtitle

  • February 28, 2022
  • 2 replies
  • 849 views

How to display the subtitle provided in the page properties?

 

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kiran_Vedantam

Hi @dolly 

 

When you have the subtitle authored in the page properties, you can fetch it in your java code and display it in the HTL. Check the below example: https://stackoverflow.com/questions/48079450/how-to-get-page-properties-using-sling-model-in-aem-6-3

 

Hope it helps.

 

Thanks,

Kiran Vedantam.

2 replies

Kiran_Vedantam
Kiran_VedantamAccepted solution
New Participant
February 28, 2022

Hi @dolly 

 

When you have the subtitle authored in the page properties, you can fetch it in your java code and display it in the HTL. Check the below example: https://stackoverflow.com/questions/48079450/how-to-get-page-properties-using-sling-model-in-aem-6-3

 

Hope it helps.

 

Thanks,

Kiran Vedantam.

DEBAL_DAS
New Participant
February 28, 2022

1. First you need to check value like ./subtitle of the name property as shown in below screenshot associated with subtitle node of your project specific page (base page) component -

 

 

2. Then you need add ${pageProperties.subtitle} code in page component .html file. Then subtitle value will be displayed on page.