Forum Discussion
OlivierS
10 years agoLithium Alumni (Retired)
id-chalmers to debug this, you could go into Studio / API Browser and do:
SELECT * FROM categories WHERE id = 'platinum_groups'
And would see that the resutls is encapsulated (probably not the correct term) in 'items' and not 'group'.
So your code should be:
<#assign groups = rest("/categories/id/platinum_groups/groups/list").groups/>
${groups.@@markup}
<ul class="groups-list">
<#list groups.items as group>
<li><a href="${group.@view_href}">${group.default_role.short_title}</a></li>
</#list>
</ul>
Related Content
- 2 years ago
- 4 years ago
- 13 years agoInactive User