Display selected tags in HTL | Community
Skip to main content
Level 2
April 9, 2025
Solved

Display selected tags in HTL

  • April 9, 2025
  • 1 reply
  • 461 views

I am using cq/gui/components/tagspicker in my component dialog and want to display the selected tags in HTL. I have tried directly by using name property but this only displays the first selected tag. How to display all selected tags from component dialog in frontend?

Best answer by Tethich

Hi @zendarkke 

 

Can you share you HTL code ? I believe the property is an array so you might need to iterate it.

Also, I suggest using Sling models to read props and make the values available in HTL.

1 reply

Tethich
Community Advisor
TethichCommunity AdvisorAccepted solution
Community Advisor
April 9, 2025

Hi @zendarkke 

 

Can you share you HTL code ? I believe the property is an array so you might need to iterate it.

Also, I suggest using Sling models to read props and make the values available in HTL.

ZendarkkeAuthor
Level 2
April 9, 2025

Thanks , went forward with using the sling model approach