How to get Tag title of the tag authored in page | Community
Skip to main content
Level 6
May 12, 2022
Solved

How to get Tag title of the tag authored in page

  • May 12, 2022
  • 3 replies
  • 1599 views

In page properties I have authored 3 tags, I want to display those tag title and print it on page using Sightly. How to achieve that

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 SantoshSai

Dear @ronnie09 

Notice that here are good examples of reading tags

https://gist.github.com/ksurendra/900b2c5ce943fd85112e4de376aaaf20

https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/bundle/src/main/java/com/adobe/acs/commons/mcp/form/TagPickerComponent.java

also above one is using Tag Picker.

Hope that helps you!

Regards,

Santosh

3 replies

Dipti_Chauhan
Community Advisor
Community Advisor
May 12, 2022

Hi @ronnie09 

  You can use TagManager but TagManager  implicit object is not available in sightly. So you need to use JS use API or sling model.

 

Thanks

Dipti

SantoshSai
Community Advisor
SantoshSaiCommunity AdvisorAccepted solution
Community Advisor
May 12, 2022