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

Display selected tags in HTL

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?

Tethich
TethichAccepted solution
New Participant
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.

2 replies

Tethich
TethichAccepted solution
New Participant
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.

Translate
ZendarkkeAuthor
Level 2
April 9, 2025

Thanks , went forward with using the sling model approach

Translate