Forum Discussion

Kev_B's avatar
Kev_B
Advisor
9 years ago

Increasing the number query results in a list?

Hi,

 

Please bear with me, a lot of the Studio stuff is very new to me.

 

Currently I'm trying to fix an issue where we're displaying a page with x amount of users who come under certain categories, our 'Good Folk' page (I'm not sure if this is common terminology). When we add more than 25 users to a certain category, the page will only ever display the first 25 in that list. We've tried adding around 30 users and consistently it only shows 25. There don't seem to be any controls attached to the Admin page where those users are added.

 

In our components page, we have a macro call:

<@renderUsers usersCSV=settings.name.get("community.good_folk_superusers", "EMPTY")/>

 

Given my limited Freemarker knowledge, the macro itself looks pretty straightforward, it appears to be using an API call to grab the results and is then placing them into a list (I've only included what I believe to be relevant parts of the code):

<#assign res = rest("2.0", "/search?q=${query?url}") />
<#if hasQueryResults(res)>

<#list res.data.items as user>

 

So, am I missing something? I can't find anything in the documentation which says this can be changed, and I'm not familiar with a way to override the calls to specify a certain number of items.

 

I'm learning by doing at the moment, so any help gladly appreciated!

3 Replies