Forum Discussion
mcalcaterra
2 years agoKhoros Alumni (Retired)
Hi waldemarhelm something like this will print out a list of the ids of users that have the administrator role with a link to their profile page
<#assign admins = (liql("SELECT id, online_status, href FROM users WHERE roles.id='t:Administrator'").data.items)![] />
<#list admins as admin>
<#if admin.online_status = 'online'>
<a href="${admin.href}">${admin.id}</a>
</#if>
</#list>
you should be able to use this as a base template and query for the avatars as well and display that instead of the ids.
Keep in mind this will return 25 users, you can increase/reduce the limit as needed
Related Content
- 4 years ago
- 10 years ago
- 8 years ago
- 8 years ago