Featuring a topic in Khoros Classic
Hi all, I'm looking for a way to be able to feature a give topic via the REST API v2. I tried doing this in a test endpoint, <#assign feature_call = restBuilder() .method("PUT") .path("/messages/11577") .body({ "data": { "type": "message", "conversation": { "featured": true } } }) .admin(true) /> but it fails with the following error: { "status":"error", "message":"The following parameters, or the value passed in for them, are not valid: [featured].", "data":{ "type":"error_data", "code":404, "developer_message":"The parameter featured is not allowed in an 'update' call.", "more_info":"" }, "metadata":{} } I couldn't find anything in the REST API v1 either. Is there no way to actually feature a message via the API?946Views
Sign in to react to this post3Comments
Freezing Kudos on a Topic on Classic
Hi all, Is there a way via either rest v1 or v2 (preferably the latter) to freeze the kudos for a given topic? I see that I can make a topic read only, but don't seen an obvious way to disable kudoing. Not sure if this is possible, but given gaps in the docs, I'm hoping that it's doable but that the field to update is not available with a select * query in the API browser. Thanks!1KViews
Sign in to react to this post2Comments
Classic - Event Board Page force List View
Hi, Is there a way to configure a particular event board to always default to List View? Ideally, this would be via: Query Parameter loading the page. Quilt component parameter for the viewToggle or occasionsListView component. Context: The event board is part of an Annual conference that happens in the future. So, this month's events are empty for most of the year. Registered users have the option to select List or Calendar View using the viewToggle component. This setting is preserved. For this event board, the Calendar View will show as empty. Any ideas? Thanks in advance! MarkSolved867Views
Sign in to react to this post3Comments
- MattV1 year agoKhoros Staff
Alright, after some sleuthing, looks like it might be a user setting of sorts.
occasion.current_view_for_user
Maybe you can use freemarker to check and set that setting for the user in common.init. For anonymous users, it seems to also use a cookie lia.anon.occasion.current_view_for_user.
The valid values for the setting are: list or calendar
Hopefully that gets you going in the right direction.
Sign in to react to this post
How do I get the article ID in Freemarker in a TkbArticle?
This is Community Classic. I'm trying to write a component to display something from a hidden field (canonical_url) while on the page of a TkbArticle. It doesn't appear that either page.context.message.id or env.context.message.id work in anything Tkb related. What other options do I have to retrieve this information in the context of the page itself?Solved970Views
Sign in to react to this post3Comments
- AmanMalhotra1 year agoExpert
phoneboy
We can use the below context object to get the article ID inside the TkbMessage quilt on the TkbArticlePage.
${env.context.message.uniqueId}
For article ID on TkbArticlePage.
${page.context.thread.topicMessage.uniqueId}
For message/comment ID on TkbArticlePage.
${page.context.message.uniqueId}Sign in to react to this post
Not able to access V1 API's form reference index.
Not able to access V1 API's form reference index. https://developer.khoros.com/khoroscommunitydevdocs/reference/community-api-1-object-index https://devdocportal.khoros.com/t5/Community-API-v1-Reference/bd-p/restv1docs?section=commv1&branch=Album303Views
Sign in to react to this post0Comments
Possible? Display 30-day FRT on a Board Component?
Our Board Oversight teams would like a component on their boards that displays the First Response Time (FRT) average over the past 30 days. While I realize I can grab this in Community Analytics, and I also am comfortable around the API... I'm a bit of a newbie when it comes to grabbing time-constrained data via the API Here's the board component with the line in question: <#if userHasApplicableRole> <#assign frt = [30_DAY_BOARD_FRT_AVG] /> <#-- this --> <div class="dc-boardwidget-FRT" title="FRT 30-day average"> <i class="fa-regular fa-reply-clock"></i> <span>${frt}</span> </div> </#if> Is this possible with the API? wkd-oliver1.1KViews
Sign in to react to this post3Comments
Lab / Idea / Unconference Meetup?
I have a couple things on my community backlog that probably require some level of customization - I tend to be looking for stuff in Atlas that already has some traction or headway AND I see lots of "under consideration" ideas AND I see lots of "Did anybody make an XYZ widget in their community..." questions BUT what I haven't yet found (beyond this forum itself) is an available time and place for Devs to get together on their own and either attack a specific common problem OR talk together through a top of mind issue. It could be anything from a KhorosLed affair or even just an Unconference we put on ourselves. Would be REALLY great if there was a vanilla lab stood up to do actual live-action work that participants could then try to leverage in their own environments later. Am I just not finding this yet? Do we need to bootstrap something? BlakeH - has this come up before?3.2KViews
Sign in to react to this post26Comments
Using Assets in custom component
Does anyone know how to use an img asset that we uploaded in a img tag? Anytime I try using the correct path I just get a blank space where the image should be.820Views
Sign in to react to this post2Comments
How to get only Messages where some specific custom field have value?
Hi Team, I have a custom field added by Khoros in the messages object, I want to get only Messages where that specific custom field has value. Sample query: select c_abcd from messages where c_abcd!="" I don't want to get all messages and then in the loop filter the messages which don't have any value. Is there any direct API or solution to get the messages where the c_abcd custom field has some value? Any related replies would be appreciated. Regards Aman1.3KViews
Sign in to react to this post11Comments
TemplateModel properties/keys
Hello everyone I am trying to see the page.context.thread.board properties because I did not find anything on the documentation. Basically what I am currently doing is logging this value into console but I got lithium.eval.velocity.ThreadTemplateModel@7a6fcf85 . I have tried with javascript Object.keys function but I am getting the string into an array and no relevant keys/properties. My main goal is to find a way to get whole thread kudos count without using v1 API call. Is there any other way to achieve that? I tried with v2 but is getting the topicMessage count only.1.1KViews
Sign in to react to this post7Comments