Forum Discussion
Hi Luis,
There's a freemarker builtin that you should be able to use:
http://freemarker.sourceforge.net/docs/ref_builtins_sequence.html#ref_builtin_sort_by
Putting it all together, it might look something like this:
<#list rest("/boards/style/blog/nested").boards.board?sort_by("title") as board> <#-- Do stuff --> </#list>
I hope this helps!
Hi Adam,
The built in is working just fine. I'm now facing a REST API call issue.
I'm trying to retrieve certain Community's blog list with
<#assign global_blogsCount = rest('boards/style/blog/nested/count').value/>
However, when I try to use this value for a very simple calculation such as
<#assign leftColumnEnd = (global_blogsCount/2) />
I get the following error.
Expression global_blogsCount is not numerical
Could you please advice?
Gracias,
Luis
Related Content
- 5 months ago
- 3 years ago
- 2 years ago
- 2 years ago
- 2 years ago