Expand my Community achievements bar.

SOLVED

display page subtitle

Avatar

Level 3

How to display the subtitle provided in the page properties?

 

Thanks in advance.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.

View solution in original post

2 Replies

Avatar

Employee Advisor

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 -

 

DEBAL_DAS_0-1646039451788.png

 

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

Avatar

Correct answer by
Community Advisor

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.