コミュニティアチーブメントバーを展開する。

解決済み

Display selected tags in HTL

Avatar

Level 3

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?

トピック

トピックはコミュニティのコンテンツの分類に役立ち、関連コンテンツを発見する可能性を広げます。

1 受け入れられたソリューション

Avatar

正解者
Community Advisor

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 返信

Avatar

正解者
Community Advisor

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.

Avatar

Level 3

Thanks , went forward with using the sling model approach