136 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...808Views
Sign in to react to this post0Comments
Valid And Invalid Severity 1 Examples
To help determine what Khoros considers a valid Severity 1 scenario, we've put together the following examples for you. Please see the attached document.11KViews
Sign in to react to this post0Comments
Khoros Cookies Datasheet (Community, Care, Marketing, Khoros Bot).
...nformation. 1 month _hjFirstSeen Analytics This is set by Hotjar to identify a new user’s first session. It stores a true/false value, indicating whether this was the first time Hotjar saw this u...318KViews
Sign in to react to this post21Comments
Get A Topic and ALL Replies
Is there a way to get a Topic and all its replies not just the direct 1st level replies. For example if I do this query with a replies subquery I only get replies to the topic, not replies to r...Solved459Views
Sign in to react to this post6Comments
- MattV4 years agoKhoros Staff
The hard part will be guaranteeing the messages are grouped by topic. The API doesn't actually guarantee any particular sort order without the ORDER BY clause (and there is no ORDER BY topic).
But, your best luck is probably to get the topic id's you need from a board (select id from messages where board.id = 'foo' and depth=0).
Collect those ID's in a string, formatted like '1','2','3','4'
Then make another rest call SELECT id,subject FROM messages WHERE topic.id IN (topic_ids_collected)
That might be the closest you get, but again, order isn't guaranteed. You may just have to sort through it in Freemarker, which isn't performant either.
Sign in to react to this post
[REST API] Problem to sort messages
...ull the author name, message ID, date etc... The query seems to work fine but doesn't pull out some of the data in the right order. for example: ID 10817595 - 2010-05-25T21:45:20+00:00 I...Solved2.9KViews
Sign in to react to this post6Comments
- EricH16 years agoLithium Alumni (Retired)
Looks like you want "/messages/linear" instead of "/messages/threaded". So, for your original example:
restapi/vc/threads/id/xxxxxxxx/messages/linear?page_size=10&page=8&message_viewer.message_sort_order=thread_ascending
The short answer:
If the board is being displayed in the UI as "Linear Format" (the default, and depending on setup, potentially the only view), linear would be the corresponding REST parameter. If it's "List by Topics", it's threaded.
The longer winded one:
Basically, linear mode displays a forum's replies in the order in which they were posted. In effect, all messages appear as replies to the one prior. Threaded mode displays them maintaining the hierarchy in which responses were made. For a smaller example, imagine a thread is started, message 2 and 3 are initiated as replies to the root, and message 4 is added as a reply to 2. The hierarchy would be:
1
|-2
|--4
|-3Admittedly, in a Forum only shown in the UI in linear mode, this REST result could be confusing.
Note that the sort order still applies, but the different views change the meaning of ascending/descending.
Sign in to react to this post