Forum Discussion
irach15
10 years agoMaven
yeaaa... I know about that way for a single id..
I need for any id, not a specific one aka universal call...
irach15
10 years agoMaven
OK,
I found how.
it needs to be a couple calls.
Some other parameters here are just for testing purpose :-)
<#if page.context.thread??>
<#assign apiVersion = "2.0"/>
<#assign articleId = page.context.thread.topicMessage.uniqueId?c />
<#assign tagsQuery = "SELECT * FROM tags WHERE messages.id = '" + articleId + "'"/>
<#assign tags= rest(apiVersion, "/search?q=" + tagsQuery?url + "&restapi.response_style=view").data.items![] />
<h4>Tags!!!</h4>
<#list tags as tag>
<ul>
<li>Tag: ${tag.text}</li>
</ul>
</#list>
<ul>
<li>articleId: ${articleId}</li>
<li>apiVersion: ${apiVersion}</li>
</ul>
</#if>