Expand my Community achievements bar.

Join expert-led, customer-led sessions on Adobe Experience Manager Assets on August 20th at our Skill Exchange.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

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

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


Santosh Sai

AEM BlogsLinkedIn


View solution in original post

3 Replies

Avatar

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

Correct answer by
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


Santosh Sai

AEM BlogsLinkedIn