Is there HTL (sightly) tag to populate tag name (page property tag) without using JAVA Models ?
Solved! Go to Solution.
Views
Replies
Total Likes
Yes its possible to use without java. We have to use data-sly-list attribute and should pass the tag property name in expression.After that via item object we can fetch each tags from string array.
Note that tag property should have name cq:tags
Happy coding,
~BK
Hi,
You can iterate through tag values using below syntax
<ul class="two" data-sly-list="${properties['cq:tags']}">
<li>${item}</li>
</ul>
cq:tags in jcr:content
Will output as below
Hope this helps!
It's possible. From not using Sling Models, you can try to use JavaScript-Use or Java-Use API to expose an array of Tag Objects.
Yes its possible to use without java. We have to use data-sly-list attribute and should pass the tag property name in expression.After that via item object we can fetch each tags from string array.
Note that tag property should have name cq:tags
Happy coding,
~BK
Views
Likes
Replies
Views
Like
Replies