Expand my Community achievements bar.

SOLVED

How to get Tag title of the tag authored in page

Avatar

Level 7

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
3 Replies

Avatar

Correct answer by
Community Advisor

Avatar

Community Advisor

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

Avatar

Community Advisor

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/ad...

also above one is using Tag Picker.

Hope that helps you!

Regards,

Santosh