Forum Discussion
VikasB
3 years agoBoss
keithkelly
You can do it easily. You can follow below steps
- Get all boards
<#assign boardList=liql("select id,messages.count(*),view_href,title,conversation_style,description from boards where parent_category.id='${coreNode.id}' order by position asc").data.items />
- List down those boards
<#list boardList as board>
<@boardsListGenrator board=board />
</#list>
- If do not want to use the macro, directly right your code inside list show the required data for boards
<#list boardList as board>
<p>${board.title}</p>
</#list>
- If you want to show the Topics count instead of post, use this query
SELECT count(*) from messages where board.id='BOARD_ID' and depth=0
- By defualt you can get the minified date using "user_friendly" selectror. If does not exist, use below code
${post_time?string["yyyy-MM-dd"]}
Related Content
- 4 years agoInactive User
- 4 months ago