35 Results
Launching on Khoros Communities: Session #1: Why Communities Aurora? | Instructor Led-Training
Recording from this live webinar can be found in Khoros Academy: Launching on Khoros Communities ILT Series: Why Communities Aurora? *Please log into Khoros Academy prior to accessing the recording...812Views
Sign in to react to this post0Comments
Accepted solutions via REST API V2 sorted by acceptance time
...olution_data, is_solution, post_time FROM messages WHERE is_solution = true AND category.id = '${catID}' ORDER BY post_time DESC LIMIT 6"?url) /> <#recover> <p>Woops...</p> </#a...Solved439Views
Sign in to react to this post2Comments
irach15 -
You can achieve this without making any other call. You can sort the array using freemarker sort_by object, however, the array should be in a required format.
http://freemarker.apache.org/docs/ref_builtins_sequence.html#ref_builtin_sort_by
<#assign solutions = restadmin("2.0","/search?q=" + "SELECT solution_data, is_solution, post_time FROM messages WHERE is_solution = true AND category.id = '${catID}' ORDER BY post_time DESC LIMIT 6"?url) />
<#assign sortedMessagesList = [] />
<#list solutions.data.items as solution >
<#assign sortedMessagesList = sortedMessagesList + [{'solution_time': solution.solution_data.time , 'message':solution}] />
</#list>
ASCENDING
<#list sortedMessagesList?sort_by("solution_time") as solution >
<#assign solution_id = solution.message.solution_data.message_id />
<#assign solution_time = solution.message.solution_data.time />
<div class="item-content">
${solution_id} - ${solution_time}
</div>
</#list>
DESENCDING
<#list sortedMessagesList?sort_by("solution_time")?reverse as solution >
<#assign solution_id = solution.message.solution_data.message_id />
<#assign solution_time = solution.message.solution_data.time />
<div class="item-content">
${solution_id} - ${solution_time}
</div>
</#list>Sign in to react to this post
Instructor-Led Training on Spam Management for Khoros Communities Classic
...&As from the recorded session are attached below. Wednesday, Oct-23-2024 12pm UTC and 8pm UTC You asked and we listened! As spammers become more tech and AI savvy, our customers are seeing a s...569Views
Sign in to react to this post0Comments