1075 Results
Featured Threads Order
...he order of threads in the response. How can I do that? Thanks in advance.Solved814Views
Sign in to react to this post4Comments
- JakeR15 years agoKhoros Alumni (Retired)
I'm not precisely sure if you can do that, but then again, I'm not a Developer either so I could be wrong.
Perhaps some kind of programatic change to the XML after you receive it might solve the problem, pivoting off of the date parameter:
http://lithosphere.lithium.com/t5/Growing-Successful-Communities/Understanding-REST-API-query-string-parameters/ta-p/8721
Or perhaps you can tinker with the sort order parameter:
http://lithosphere.lithium.com/t5/Growing-Successful-Communities/Understanding-linear-and-threaded-sorting-in-REST-API/ta-p/7151
http://lithosphere.lithium.com/t5/Growing-Successful-Communities/REST-API-Problem-to-sort-messages/m-p/6415#M2006
but I'm not sure if any of those solutions would really work. Sorry if none of this is helpful.Sign in to react to this post
Float Thread sorting and order
I am using the fllowing REST Api to fetch the floating threads, i need them to be sorted and like the newest thread created to be on top. /restapi/vc/categories/id/CAT-ID/subscriptions/global/fl...Solved504Views
Sign in to react to this post4Comments
- AdamN12 years agoKhoros Alumni (Retired)
If I understand correctly, you want to get a list of floated threads sorted by the date of the root post. In your sample code, it looks like you're sorting messages within a thread, rather than sorting the list of threads.
Here's a quick example of sorting the list of floated threads (community-wide) by the date of the root post (most recent first):
<#assign floated_threads = rest("/subscriptions/global/float/thread").subscriptions /> <#list floated_threads.subscription?sort_by(["target","messages","topic","post_time"])?reverse as subscription> ${subscription.target.messages.topic.id} - ${subscription.target.messages.topic.post_time} <br> </#list>So basically I get the list of floated threads across the entire community, iterate through the list sorted in reverse order by post_time, and then output the id and date of the root post.
I want to point out that in this case the sort_by is taking a sequence of 4 values which correspond to the names of the nested subvariables. For example, the post_time of the root post as I'm looping through the subscriptions is accessible via "subscription.target.messages.topic.id", so my parameter for "sort_by" is the sequence "["target","messages","topic","post_time"]"
I hope this helps!
Sign in to react to this post
Custom was this helpful? component
Hi, Is it possible to create a custom was this helpful component? I want to style it different as well as change how it acts when you select no. If not possible can you change the "T...Solved285Views
Sign in to react to this post3Comments
darrenSP - You can easily update the confirmation message from a text editor.
Below is the text key used for show Thanks for your feedback message.
page.RatingEnumerationDisplay.feedback.success.title
Studio -> Text Editor -> Community Text
Lithium uses the text key for each string appearing in the community. You can search for the string you want to update from there.
https://community.lithium.com/t5/FAQs-email-templates-and-text/About-text-keys/ta-p/109029
https://community.lithium.com/t5/FAQs-email-templates-and-text/Find-text-keys/ta-p/109027
Regarding the custom component for this, there is no POST API call available for helpfulness, you can only perform GET action.
Sign in to react to this post
API v2 _ Problem with ORDER BY
Hi, I wanted to play a little with LiQL requests and tried to execute this request I found in the API v2 documentation: SELECT id, topics.count(*), messages.count(*), views FROM boards ORDER...Solved483Views
Sign in to react to this post6Comments
- AlexW11 years agoLithium Alumni (Retired)
The top of the document mentioned that the features are added in 15.1. Make sure your community have upgraded to 15.1.
But for the use case mentioned, you should be able to do something like this in previous versions:
SELECT * FROM messages where category.id = '<category>' and depth=0 ORDER BY post_time DESC
Hope this helps.
Sign in to react to this post
How to order posts using v1 API ?
Trying to order posts using V1. I can't find the documentation for this. Any help appreciated, especially links to the documentation for it. ThanksSolved251Views
Sign in to react to this post5Comments
- Tarun6 years agoMaven
Hi Inactive User ,
https://developer.khoros.com/khoroscommunitydevdocs/docs/linear-and-threaded-sorting
The above article: has the following context
/restapi/vc/threads/id/6415/messages/linear?message_viewer.message_sort_order=thread_ascending
Please Give Kudos if you find this post useful and mark this as Accepted Solution if this is the required solution.
Sign in to react to this post
API v2 Problem with ORDER BY multiple fields
...ierarchical way, e.g. top level categories first, then child categories, each ordered by their position within the structure. EDIT2: The workaround until this is clarified is to manually sort the r...Solved456Views
Sign in to react to this post3Comments
Hi,
is it not that you have not set a sort order on depth and so the call is assuming your passing a sort order of DEFAULT which is invalid.
should it not be:
SELECT id, short_title, view_href, depth, position FROM categories WHERE depth <= 2 AND id IN('<catid_1>', '<catid_2>', '<catid_n>') ORDER BY depth DESC, position ASC?
Sign in to react to this post
Online users API call - what order are these results?
...re these results ordered? I can't seem to find any clear indication of the order of the online users here. If the order is not determined... how can I tell the API call to order them in a way that I wa...Solved546Views
Sign in to react to this post10Comments
Use this one with sort direction parameter
Note: ASC or DESC does not work here, need to use either ascending or descendinghttp://community.lithium.com/community-name/restapi/vc/users/online/sort_by/last_visit/order/[sort_direction]
Here is the documentation
Sign in to react to this post