Load a lithium component with context via ajax
Hi, based on this post:https://lithosphere.lithium.com/t5/Developer-Discussion/Click-to-load-a-component/m-p/168251/highlight/true#M6741 i wanted to load several lithium components asynchronously. The problem is, that most of them require additional paramaters and context to work properly. An example is the widget 'recommended-content-taplet' which shows recommended posts related to the currently viewed one and which is already used by the platform: LITHIUM.Components.renderInPlace('recommendations.widget.recommended-content-taplet', { "componentParams" : {mode : "slim", componentId : "recommendations.widget.recommended-content-taplet"}, "componentId" : "recommendations.widget.recommended-content-taplet" }, { "errorMessage" : "Ein unerwarteter Fehler ist aufgetreten.", "type" : "POST", "url" : "/t5/forums/v4/forumtopicpage.recommendedcontenttaplet:lazyrender?t:ac=board-id/155/message-id/29447/thread-id/29447&t:cp=recommendations/contributions/page" }, 'recommendedContentTaplet_shell', '#recommendedContentTaplet', '#recommendedContentTaplet_container'); I understood, that component parameters can be passed in componentParams. But how does this context work? Obviously the loaded component gets it's context (to which message) with the passed url. Can anybody explain how this url works (which parameters/values can be used etc.)? Is it possible to get a user context (of course only public information) e.g. for a call for 'kudos.widget.messages-recently-kudoed-by-user' to load this widget related to another user than myself? 'mbiel5 years agoExpert177Views0likes2Commentsbody (and other?) fields cleared when updating a message to add a label using API v2
I am seeking toadd alabel to a message using API v2, but am finding that the bodyfield on updated messages is getting cleared by the update. Can somebody help me better understand this behavior, and explain how to make an update like adding a label without changing other details on the message? Here are details of what I've observed: Based on the information here I have constructed a call like the following: curl -X PUT \ https://[COMMUNITY DOMAIN]/api/2.0/messages/785 \ -H 'content-type: application/json' \ -H 'li-api-session-key: [SESSION KEY]' \ -d '{ "data":{ "type":"message", "labels":{ "items":[{"type":"label", "text":"my label"}] } } }' This successfully adds the label, but also clears the bodyfield on the message. On the other hand, the subjectfield on the message is not changed. That makes me think an [undocumented] requirement is that when updating a message there are some fields which must be specified in the HTTP PUT request body with their current values in the HTTP request ifthey are to be left unmodified, while other fields will retain their current values even if they are not specified. If anybody can confirm this, and give some hints as to which fields must be specified whenupdating a message through the API, that would help me greatly! I am worried about updating messages and corrupting/changing existing datawithout realizing it.Solvedcgrinton5 years agoExpert294Views0likes8CommentsIssue LiQL query
I am getting error while trying to get list of deleted users. Query works in other cases where I put condition against login. Can someone help with the issue. Query:Select id, email, deleted from users where deleted = true Response: { "status" : "error", "message" : "Invalid query syntax", "data" : { "type" : "error_data", "code" : 604, "developer_message" : "", "more_info" : "" }, "metadata" : { } } Thanks, SachinSolvedskatiyar5 years agoExpert149Views0likes2CommentsCreating a message via api , allowing likes
Using the below to make a post call to create a message or a message reply however after creating I cannot like the message and it is saying kudos is disabled, what property do I have to use to allow for kudos/likes to be given for an api created message <#compress> ${http.response.setContentType("application/json")} <#assignmessagePostCall=restBuilder() .method("POST") .path("/messages") .body({ "type":"message", "parent":{ "type":"message", "id":http.request.parameters.name.get("message[message_id]") }, "subject":"UserReply", "body":http.request.parameters.name.get("message[message_content]"), "board":{ "id":http.request.parameters.name.get("message[board_id]"), "type":"board" }, "is_draft":false, "can_accept_solution":true }) .admin(true)/> <#assignresp=messagePostCall.call()/> <#assignresponseBuild='{"success":true,"message_id":${resp.data.id}}'/> ${responseBuild} </#compress>Solvedbrowneandrae5 years agoExpert215Views0likes2CommentsHow to pre-populate the values for the fields Subject & Body by passing the values via query string
Hi Team, I wanted to provide a link and launch option to the community URL, where user can see the below page, from the application. The URL where I can post a message is<COMMUNITY_URL>/t5/forums/postpage/board-id/<GROUP_ID> I wanted to load this page with pre-populating some values for the fields "Subject" & "Body" which are highlighted in the above screenshot. how can I achieve it? is there any way to pass the values through the query string, please let me know.Solved235Views0likes6CommentsPossible to subscribe to a blog
When going to a board landing page when click the options dropdown there is an option to subscribe, When going to a blog landing page, I don't see such an option. Is it possible to subscribe to an entire blog? If so how. I see you can subscribe to a blog label and message but lithium is hiding the options on the blogSolvedbrowneandrae5 years agoExpert118Views1like2CommentsMove !lithiumSSO cookie to another domain
Our community has implemented a reverse proxy so our company's domain can be used with a /community on the end for our community address. The issue we are having is that the !lithiumSSO cookie is very large (could be as large as 1k bytes), and we do not want to be passing a large cookie into our company site, since we have a limit on cookie domains. We have seen an example of another community that used a reverse proxy for their community, and it looks like they have set the domain for the !lithiumSSO cookie to be a variation of their .lithium.com back-end domain. Does anyone know if Khoros provides support for setting the !lithiumSSO cookie on an alternative domain? Or has anyone run into this issue before and have a solution?Lindsey5 years agoLeader74Views2likes0CommentsCannot insert Terms of Service using jQuery
I have struggled with this for several days now -- it's driving me nuts! I want to get our Terms of Service and add it to the FAQ page. I have created a new section (id = "terms-service" and heading exists with class of "lia-terms-service"). I have tried about 20 different ways to insert our TOS. This is where I gave up and posted this plea for help! $('.lia-terms-service').prepend('<div class="tos lia-faq-answer"></div>'); $('.tos').html(${text.format('page.user_signup.terms_of_service')}); If I comment out the second line, the new DIV is prepended and all is good -- but it has nothing in it. When I include the insertion, it falls over. Does anyone have any ideas? I'm sure there's a way but it has so far evaded capture! ThanksSolvedPAULEM5 years agoAdvisor113Views0likes2Comments"><img src=x onerror=alert('testing')>
Hello, If I enter alert code or any script into the subject field and after posting my message If I refresh or click on the home page thenA popup is showing and says (testing) with an OK button. Please let me know How can Idisable this popup? Thanks, Sateesh.sateesh9995 years agoContributor142Views0likes5Commentshref field of nodes collection does not return canonical path
The href of the nodes collection is documented as "The relative href to the resource. This is the canonical path to the resource relative to the Community API root." - Unfortunately what the API v2 in 19.9 returns is of an unusable (although readable format. For example the category https://community.acme.com/t5/Discussions/ct-p/discussions Would return in the API callSELECT id, href, title, short_title FROM nodes WHERE node_type = 'category'just "href" : "/nodes/category:discussions" And as we all probably agree the following URL is not a valid community URL: https://community.acme.com/nodes/category:discussions Khoros: Can you confirm this is a bug? Or is there any way to easily convert this href value to a valid view_href?104Views0likes3CommentsAccess to API docs for a community member?
We have a community member who wants to make use of Khoros APIs so he can ask his Google Assistant how many kudos he has (I think he's kinda joking, but also kinda serious?). But, I'm not sure how to get him access to the API docs, since he's not a Khoros customer. Is there a way to do this? Also, has anyone else ever had a community member request this? Just curious!! Cheers!Solved178Views0likes5Commentspage.content.head.setTitle not working for custom page
The freemarker function .setTitle() is not working for me for a custom page that I created. I created a custom search page titled "forums". I tried following the instructions from this post to set the title tag for this page. In Common.init.ftl, I have this code: <#if page.name == "forums"> <#assign labelListParam = webuisupport.path.rawParameters.name.get("forum","")> <#assign selectedLabels = labelListParam?split(",")/> <#assign labelsPageTitle = ""/> <#assign titleIsEmpty = true/> <#if selectedLabels?has_content> <#list selectedLabels as selectedLabel> <#if selectedLabel?contains("_")> <#if !titleIsEmpty> <#assign labelsPageTitle += ", "/> </#if> <#assign labelsPageTitle += selectedLabel?keep_after("_")/> <#assign titleIsEmpty = false/> <#else> <#if !titleIsEmpty> <#assign labelsPageTitle += ", "/> </#if> <#assign labelsPageTitle += selectedLabel/> <#assign titleIsEmpty = false/> </#if> </#list> ${page.content.head.setTitle(labelsPageTitle)} <#else> ${page.content.head.setTitle("Labels")} </#if> </#if> The page title for this page is just showing up as "forums | (our community name)". Why is this not working for me even though it is for a custom page?Lindsey5 years agoLeader143Views0likes5CommentsHow to change font to the custom font
We need to change the fonton all over the page and add custom font. Please provide me the solution. ThanksSolvedashisman5 years agoContributor250Views0likes3Commentspage.content.head.setTitle not working
For SEOpurposes, we are trying to change the page title and description on the ForumTopicPage so the tags in the head tag will look similar to how they did in our old forums site. I foundthisarticle about how to change the page title and description. In Common.init.ftl, I added this: <#if page.name == "ForumTopicPage"> ${page.content.head.setTitle(page.context.thread.topicMessage.subject + " - " + page.context.thread.topicMessage.board)} ${page.content.head.setDescription(page.context.thread.topicMessage.subject)} </#if> This did not work - the content in the title and description tag did not change. I also tried just adding this: ${page.content.head.setTitle("Test")} ${page.content.head.setDescription("Test")} This did not work either - I expected every page to have their title and description meta tag to contain "Test", but they remained the same. How do I properly use setTitle and setDescription functions to change the title and meta description tags on the ForumTopicPage?Lindsey5 years agoLeader185Views0likes6CommentsPre-populate data in body
Hello, I am new to Khoros, still getting the needed training, so please bear with me. We have an Idea's board, when a user goes to suggest an idea, we would like to pre-populate the body with some basic questions they will need to answer. IE: Click Idea button, they enter the subject, and in the body the 3 prerequisites that have to be answered to be accepted populate and they can answer the questions under each. Reviewed another post that indicated something similar to this can not be done which I find hard to believe. Please advise. Thanks in advance,Solvedgdawson5 years agoAdvisor189Views0likes4CommentsKhoros APIv2 configurations
I am new to khoros community and was testing a restadmin call. Below is the code which i used in community(API V2) restadmin("2.0","/search?q=" + "SELECT * FROM roles WHERE users.id = '${user.id}' limit 1000"?url) Below is what the documentation says https://api.lithium.com/community/2.0/[TENANT ID]/search?q=select * from messages Is there any configuration where the root(https://api.lithium.com/community) of the rest call is setup? where we can change it, since we are migrating from API proxy.Solved184Views0likes4Commentsscope top liked elements to community
Currently we want to scope these two components to show users across the entire community. The help popup says it could be scoped to the community so how would we do so? Currently we are displaying then on an overriden Forum Page. <component id="kudos.widget.authors-leaderboard" /> <component id="solutions.widget.accepted-solutions-leaderboard-taplet" />Solvedbrowneandrae5 years agoExpert92Views0likes1Commentdecode an URL encoded string eg. “%C3%9” --> “ß” ?
Dear Community, how can we decode an URL encoded string eg. “%C3%9” --> “ß” ? When calling a URL with ....t5/tag/abc%C3%9Fxyz/tg-p/board-id/abcx we catch the tag name with: <#assign tagName = pageUtils.getUrlPathParameter("tag") and display it on the page with: <h1>${tagName}</h1> Unfortunately it does not work for special character: e.g. ß „abc%C3%9Fxyz“ is displayed: instead „abcßxyz“ as the URL contains How can we convert “%C3%9” back to “ß”? Thank you, best, clemenswSolvedclemensw5 years agoGuide109Views1like1CommentIntegration w/ WebEx Teams?
Hi ya'll! Has anyone integrated a community forum w/ WebEx teams? We'd ideally like new WebEx teams messages within a specific WebEx teams space to be pushed as new threads into a private community forum, with threaded replies as replies on those threads. Cheers! - Caroline81Views0likes2CommentsAccess one of the endpoints from Third party website
I am using an Iframe to display a survey form in clicktools. To get some user data I am trying to access one of the endpoints created in staging from clicktools. I got an error as Click tools has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header present on requested resource. Is there any solution for accessing endpoints from third party websites or any better approach for this problem.Solved121Views0likes1CommentPermission name to see studio and admin
I created a custom user dropdown, and I would like to display the Studio and Admin page links in this dropdown based on permission. I do not want them to be attached to user rank or role in case we change who can have what permission. However, in the "Permission descriptions" articlehereI do not see permission to see Studio and Admin, only items within them. Is there such permission, and if so, what is the name? How are they displayed in the OOTB components?Lindsey5 years agoLeader205Views0likes9CommentsUrl has one id, page.context.message.id is a different ID??
When I use the API browser for the URL id,t5/Discussions/How-about-a-Jelly-baby/m-p/7973 [id: 7973], I get the correct results I'm looking for. However, when I use page.context.message.id => '272', which is a completely different message! What's going on here, any ideas before I open a support ticket? Are there IDs and Unique IDs and are they getting mixed up? I'm trying to get the ID to look up the cover_image and images array for an Open Graph component. But failing because of this. Ian <#-- OPEN GRAPH --> <#macro setOGProps msgs imgs> <#if msgs?? && msgs[0].cover_image??> <!-- msgs cover image OK --> <#assign ogImgUrl=msgs[0].cover_image.large_href /> <#else> <#if images??> <!-- images exist? ${images???c} --> <!-- images size ${images?size} --> <#if images?size gt 0> <!-- images size ${images?size} --> <#assign ogImgUrl=images[0].large_href /> <#else> <#assign ogImgUrl="https://www.jmp.com/content/dam/jmp/media/JMP-Open-Graph-Default.jpg"/> </#if> <!-- default cover image --> </#if> </#if> <!-- OPEN GRAPH CONTENT --> <meta property = "og:title" content = "${page.content.body.title}"/> <meta property = "og:image" content = "${ogImgUrl}"/> <meta property = "og:url" content = "${msgs[0].view_href}"/> <meta property = "og:description" content = "${msgs[0].subject}"/> <meta property = ”og:type” content = ”website”/> </#macro> <#if env.context.message??> <!-- env.context.message --> <!-- env.context.message.id ${page.context.message.id} --> <#assign msgQuery = "SELECT cover_image, view_href, subject FROM messages WHERE id='${env.context.message.id}'"/> <#assign msgs = rest("2.0", "/search?q=" + msgQuery?url + "&restapi.response_style=view").data.items![] /> <#assign imgQuery = "SELECT view_href, title FROM images WHERE messages.id='${env.context.message.id}'"/> <#assign images = rest("2.0", "/search?q=" + imgQuery?url + "&restapi.response_style=view").data.items![] /> <#--<p>${images?size}</p>--> <@setOGProps msgs=msgs imgs=images></@setOGProps> </#if> <#if page.context.message??> <!-- page context message --> <#--<!-- page.context.thread.topicMessage.id ${page.context.thread.topicMessage.id} –>--> <!-- page.context.message.id ${page.context.message.id} --> <#assign threadQuery = "SELECT cover_image, view_href, subject FROM messages WHERE id='${page.context.message.id}'"/> <#assign msgs = rest("2.0", "/search?q=" + threadQuery?url + "&restapi.response_style=view").data.items![] /> <#assign imgQuery = "SELECT view_href, title FROM images WHERE messages.id='${page.context.message.id}'"/> <#assign images = rest("2.0", "/search?q=" + imgQuery?url + "&restapi.response_style=view").data.items![] /> <#--<p>${images?size}</p>--> <@setOGProps msgs=msgs imgs=images></@setOGProps> </#if>SolvedInactive User5 years ago231Views0likes5CommentsSetting for subject line length on ForumPage
On the ForumPage where there is a list of forum topics, the subject line gets cut off about halfway and "..." is added to the end. We would like the subject line to extend as far down the width as possible. This is not something I can change in the CSS because the actual text itself has been shortened (I think you can query the shortened version of the subject in the REST API). I am attaching a screenshot what this looks like on our community. Is there a setting we can change to allow the subject line to extend longer? If not, is there any other solution for this?SolvedLindsey5 years agoLeader180Views0likes3CommentsHow do I correctly override posting permissions
On my community, permission to post works in this way: - Default users can reply (permission: create_message=true), because we want anonymous users to start a post so they can be enticed to create an account. - Signed in users that are not verified in our SSO system are given role "Unverified", which takes away permission to reply. - Rank "Verified" are users that have verified their email in our SSO system, which re-grants them ability to reply. - We created one sub-category that is read-only and also removed permission to reply for default users. However, "Verified" roles were still seeing they had permission to reply (create_message=true) since I assume that role overrode the specific permission on that sub-category. - I tried creating role "Verified" for that sub-category specifically and also removed permission to reply, but it was still showing up as create_message=true for these users. Why is create_message=true for posts in the read only sub-category that has create_message=false for default users and create_message=false for "Verified" role inside that subcategory, but create_message=true for "Verified" roles in the overall community? How can I change permissions so "Verified" users cannot post in read only sub-categories but admins and moderators can?Lindsey5 years agoLeader105Views0likes3CommentsToo many tabs? Can't tell Prod and Stage apart anymore?
If you're crazy like me and your tab bar looks like one grey blur because of all the tabs you have open, maybe this is for you. I keep having to click tabs just to see if it's a Prod or Stage page, so I added this to the header. One regular favicon and one colourful one, so I know instantly if a tab is prod or stage. <#attempt> <#assign current_url = http.request.url/> <#if current_url?contains("<insert stage-unique url section, e.g. community-stage.site.com>") == true> <link rel="icon" href="colourful icon"> <#else> <link rel="icon" href="normal icon"> </#if> <#recover> <link rel="icon" href="normal icon"> </#attempt>228Views16likes3CommentsHow customisable is error page content?
We have identified a few error pages and were wondering if/how we can edit the content so that they match the tone and voice of the rest of our site? For example: Access Denied - You do not have sufficient priviledges for this resource or its parent to perform this action. Click your browser's back button to continue. Page not found - the page you are trying to access was not found. Please check your URL for typos and try again. Node was not found - the core node you are trying to access was not found, it may have been deleted. Please refresh your page and try the operation again.SolvedNicolaC5 years agoGuide153Views0likes3CommentsAuthenticating using V2 API
I am new to my team and currently working to migrate our service to use Communities V2 API picking back up where the project was left off. POST /api/2.0/auth/authorize ( documentation recommended for SSO flow) The documentation says the endpoint requires a body including client_id, jwt( SSO token), redirectUri, and state. Where and how can I get the client_id and redirect uri since there is no Community Admin > Settings option.jenguyen6 years agoContributor290Views0likes7CommentsUnable to generate Session Key by using vanity URL
$user1 = ""; $pwd1 = ""; $user2 = ""; $pwd2 = ""; $our_community_url = ""; $basicAuthDet = "$user1:$pwd1"; $formData = "user.login=$user2&user.password=$pwd2"; $apiURL = '$our_community_url/restapi/vc/authentication/sessions/login'; $headers = array( "Content-type: application/x-www-form-urlencoded" ); if(trim($basicAuthDet) != ''){ $headers[] = "Authorization: Basic ".base64_encode($basicAuthDet); } echo ' '; print_r($headers); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$apiURL); curl_setopt($ch, CURLOPT_FRESH_CONNECT,1); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_FORBID_REUSE,1); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); curl_setopt($ch, CURLOPT_POSTFIELDS,$formData); $httpCode = curl_getinfo($ch); $response = curl_exec($ch); if(curl_errno($ch)){ echo 'Curl error: ' . curl_error($ch); } curl_close($ch); print ' STAGE: CURL RESPONSE: '; print_r($response); Hi All, we have integrated Lithium in our application with proxy method to consume the APIs. As part of deprecating API proxy method in your 19.10 release, we are doing the necessary changes from our end and noticed the below error while making the call to generate the Session Key to authenticate the APIs. I have provided the code snippet above for your reference. Curl error: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure We have started getting the above error after changing the proxy URL with our community url. so can you anyone please help me to resolve the error? PHP & openssl version used in prod and stage environments are given below: Stage:PHP Version 5.6.16 &OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 Production:PHP Version 5.6.16 &OpenSSL 1.0.1e-fips 11 Feb 2013171Views0likes4CommentsSalesforce Federated Search for Lithium: Looking for OpenSearchDescription URL
Hello - I am trying to implement Federated Search in Salesforce to search for Lithium forum articles. In order to do that, I need to set up an external data source in SFDC which will include the URL which has the OpenSearchDescription. Does anyone know how to implement Federated Search in Salesforce to search for Lithium content or what the OpenSearchDescription would be for Lithiumsearch engine? Additionally, has anyone seen the managed package for Lithium in Salesforce which is described in the link below? I am unable to find it anywhere and would like to use it if possible. https://www.lithium.com/pdfs/datasheets/Lithium-and-Salesforce.pdf Thank you!kmentele6 years agoContributor186Views1like5CommentsHow to prevent cross-site-scripting and XSS?
How to prevent cross-site-scripting and XSS? We are getting messages from unknown users like the below: [ <img src=x onerror=prompt('xss by codejump');> <img src=x onerror=prompt(/securitytesting/)> ] How to resolve this error? How to add error validations to the Rich text area of TinyMce editor? Thanks in advance, Sateesh.sateesh9996 years agoContributor225Views0likes6Commentsgenerated OAuth acces_token expires after 24 hours
hello, The complete OAuth 2.0 authorization grant flow could be performed without errors. Step 1: Receive authorization code and tenant ID Step 2: With https://community.xxxxxx.xxx/api/2.0/auth/validateToken and the required header and body parameters access_token, refresh_token and user-id were returned. Step 3: https://community.xxxxxx.xxx/api/2.0/auth/refreshToken provided a new acces_token with which I can also perform LIQL queries. However, the acces_token expires after 24 hours, so i have to call https://community.xxxxxx.xxx/api/2.0/auth/refreshToken again. Where is the error?SolvedHuttropFatty6 years agoContributor155Views0likes2Comments- sateesh9996 years agoContributor126Views0likes4Comments
Get Moderator preferences via API?
Anybody know if it's possible to get these settings (preferences) for a user via the Community APIs or maybe user context? I looked through the settings that come from the settings apis as well as profiles api but didn't see anything that looks like it would be related to these. We're hoping to get the state of these checkboxes to help us add custom logging to determine specifically which moderator user removed the unread by moderator status on a post. Thanks!SolvedFranzG6 years agoGenius99Views0likes1CommentSorting TKB articles via API
We are developing a custom component that displays the first 6 TKB articles. Wewant to control the order in which these articles appear, so I've set the ordering for the TKB (TKB admin > Ordering tab) as manual followingthis article. When i query the TKB via API the results are returned in reverse cronological order, not in the manual order specified in the admin. This is the query I'm using: SELECT * FROM messages WHEREboard.id= 'BOARD-ID' LIMIT 6 I've tried different ORDER BY clauses, but the optimal solution would be to have the contents sorted manually in the admin backoffice. Is there any way to achieve this?Solved288Views0likes5CommentsFilter search page directly from homepage
Hi all, I'd like to be able to filter the search results directly from the search bar in homepage. In particular I'm looking for way to add a widget-filter to select the type of content to be searched (TKB / Forum etc..) which would be added to the main search bar in the website (basically the CommunityHero quilt). If I try to usethe widget <component id="search.widget.type-filter" isDropDown="false"/>(that does exactly what i need in the Search Result Page) the community crashes. I've already contacted the support which confirmed that there is no way to add that widget to the quilt I need. Last info is that the search.widget.type-filter works in an ajax fashon adding dinamically to the url the following GET parameters: filter=includeForums&include_forums=true filter=includeTkbs&include_tkbs=true filter=includeTkbs,includeForums&include_tkbs=true&include_forums=true Thank you!89Views0likes1CommentCreate a custom component and edit layout from studio page editor
Hey there, I am wondering if there is any way to create a custom component and the layout will be read from a custom page? This question came about due to the Blog - Comment Message page being used as a layout for the Blog Comments on a Blog page.Jake_N6 years agoMentor136Views0likes2CommentsFilter Messages by conversation/thread id
Hi, is it possible to filter messages by its conversation.id? The following APIv2 Call dose not work: SELECT * FROM messages WHERE conversation.id = '4175846' The Response is: Invalid query syntax Is there an other way to get all replies of a conversation/thread? Greetings87Views0likes1CommentCustom Search Component not being captured by Analytics
We have created a custom search component for similar reasons: better design, and it is working perfectly. The problem we now have is that the searches are not being captured by Analytics, so the LSI report on number of searches shows zero. One of the objectives of the custom component was to make it more user friendly and increase searches and now we don't have a way to measure it. We were told by Support to include the following query parameter to API call for them to be captured by Analytics: api.for_ui_search=true Problem is the change was done yesterday and we still don't see the results of quantity of searches in Analytics. Any advise you can give us? There is no documentation on this parameter that we can use as a reference so we might be using it incorrectly...or maybe we just need to wait for Analytics a while longer?Solved377Views0likes9CommentsCreate a board through API
Hello, I would like to create a board through API but I get an error message: curl -X POST \ > 'https://domain.lithium.com/restapi/vc/categories/id/<category_id>/nodes/type/key/board/add?board.id=test&board.title=title' \ > -H 'content-type: application/json' \ > -H 'li-api-session-key:SESSION_KEY' <response status="error"> <error code="100"> <message> Une erreur inattendue s'est produite. </message> </error> </response> When I do a get on/restapi/vc/categories/id/<category_id>/nodes/type/key/board/ it renders the list of boards but POST does not work. Could someone help me please? Thank you!Solvedjpierlot6 years agoGuide155Views0likes3CommentsHow do I retrieve an excerpt of a message with HTML formatting?
We want to retrieve an excerpt of a topic message from a given thread and display it in a custom component. Currently, we're using something like the following to do it: <#assign body = (page.context.thread.topicMessage.body)!"" /> <div class="short-message"><@messageBodySimple body, 1500 /></div> In this example, it pulls out the first 1500 characters. Unfortunately, it strips all the formatting out of the text, which means it does not display very nice. Is there a way to do this that preserves the HTML formatting?phoneboy6 years agoDirector78Views0likes1CommentPopular Topics and Labels
I am interested in pulling Trending Topics from the community forum. Now I understand there there 'getPopularTopics' function. But I am interested in getting trending/popularlabels and related topics for these labels Whats the best way to approach this?SolvedAshish_Rai6 years agoHelper206Views0likes4CommentsHow I can gate the domain where I have integrated Lithium
I have integrated Lithium with my different staging servers like Dev, ST and UAT How I will gate to that from which staging server I am gating post mails and by click on Post where to navigate (Dev, Test or UAT)ashisman6 years agoContributor48Views0likes0CommentsGet visits and unique visitors from Bulk API
Hi all, I'm using the Lithium Bulk Data API (documented here:https://lithosphere.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=bulkdata) to extract metrics about our community. However, some of the metrics that I'm looking to extract do not match up with the results I'm seeing in LSI. E.g. "visits" and "unique visitors" in LSI do not match the numbers that I'm getting from the Bulk API. To get visits from the Bulk API I've used the following filtering conditions: ['action.key']=='view' and counted distinct 'visitor.id's. Does anyone know how to get visits and unique visitors from the Bulk API to match what's in LSI? Thanks!carljohan6 years agoAdept188Views0likes2CommentsKhoros as SSO Source
I've found lots of documentation on using Khoros as an SSO client but I'm wondering if it's possible to use as the SSO source. We don't use Khoros as an SSO client all details are stored directly in it's database but we'd like to add a 3rd party chat room software on to our community and set it up as the SSO client which talks to Khoros. Does anybody know if this is possible? Thankssnaffle6 years agoExpert64Views0likes0Comments