nickb777
12 years agoGuide
Community front page custom category / board display
Hi All,
I'm looking to customise our community front page and I'd like to clean-up / re-style the way the community board list displays.
My current approach is to use a custom component using the following skeleton logic:
<#list rest("/categories").categories.category as category>
<h2>${category.title}</h2>
<#assign boards = rest(category.@href + "/boards?restapi.response_style=view").boards.board />
<#list boards as board>
<a href="${board.@view_href}">
<h3>${board.title}</h3>
<p>${board.description}</p>
</a>
</#list>
</#list>I'm wondering if this is the correct approach or if there is a more efficient way?
I can see this becoming quite server-intensive if the category or board list was to grow or if I was to include additional rest calls for latest messages, number of posts etc.
Cheers,
Nick