API not displaying to registered users
I have encountered an issue with my custom components. The API is not displaying for registered users. I've checked the permission and it's ok. Please help.
<#assign messages = rest("/boards/id/configuration/topics/recent?page_size=5").messages />
<div class="recent-articles-container">
<#list messages.message as message>
<div class="recent-article-wrapper">
<div class="article-header">
<div class="article-subject"><a href="${message.@view_href}">${message.subject}</a></div>
<div class="article-posted-by">
<span class="author">Posted By <#if message.author.login != "" && message.author.login != "Anonymous"><@component id="common.widget.user-name" user="conv:${message.author.login}" /></#if></span>
</div>
</div>
<div class="article-teaser">
<#if message.teaser?length gt 0>
${message.teaser}
<span class="read-more"><a href="${message.@view_href}">Read More</a></span>
</#if>
</div>
</div>
</#list>
</div>
</div>
<#assign messages = rest("/boards/id/kb/topics/recent?page_size=5").messages />
<div class="recent-articles-container">
<#list messages.message as message>
<div class="recent-article-wrapper">
<div class="article-header">
<div class="article-subject"><a href="${message.@view_href}">${message.subject}</a></div>
<div class="article-posted-by">
<span class="author">Posted By <#if message.author.login != "" && message.author.login != "Anonymous"><@component id="common.widget.user-name" user="conv:${message.author.login}" /></#if></span>
</div>
</div>
<div class="article-teaser">
<#if message.teaser?length gt 0>
${message.teaser}
<span class="read-more"><a href="${message.@view_href}">Read More</a></span>
</#if>
</div>
</div>
</#list>
</div>
</div>
skylinegtr - I tried it with your code on my community for a gated board, it gave me same error. Try using some public board in this code. Moreover, use some exception handling.
VarunGrazitti Thanks! I'll give it a try.