Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

how to add additional title to the existing template

Avatar

Avatar
Level 1
gavya
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
gavya
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
gavya
Level 1

17-09-2020

Hi, 

Can  some help me to how to create a  ,Auto-populate Page Title for under the somepages) example ..  Example ("Title" | sometext).  

post with some sample too, I have created a new title component and trying to referring the page , it not working as expected.

 

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
MVP
santhosh_kumark
MVP

Likes

98 likes

Total Posts

111 posts

Correct Reply

38 solutions
Top badges earned
Validate 1
Give Back 3
Give Back
Boost 50
Boost 5
View profile

Avatar
Validate 1
MVP
santhosh_kumark
MVP

Likes

98 likes

Total Posts

111 posts

Correct Reply

38 solutions
Top badges earned
Validate 1
Give Back 3
Give Back
Boost 50
Boost 5
View profile
santhosh_kumark
MVP

17-09-2020

Hi @gavya ,

 

Try to get that title dynamically using any page model and call it in clientheaderlibs.html file of your template referring page component. It does work. sample code snippet below:

<sly data-sly-use.pageModel="com.aem.community.core.models.PageModel"></sly>
<title>${pageModel.title} | sometext</title>

 

 

Answers (0)