question about authorization code
Hi I am calling API in browser to get authorization code, it returns the result like this: https://xxx/?code=qvOisvrJIV7v6MXPmhH7wF%2B8oBZW5%2FdnTg8geLTCGsM%3D&user-id=30&tenant-id=xxx&proxy-host=xxx From this URL, I can see the code=qvOisvrJIV7v6MXPmhH7wF%2B8oBZW5%2FdnTg8geLTCGsM%3D I need to use this authorization code in Rest client tool like postman to get the access token, if use this value directly, it returns status as "Authorization code is NOT authorized", it seems I need to convert the encoded code like %2B to corresponding special character. my question is what character does %2B stand for?%2F? and %3D? Regards ShongSolvedshong8 years agoAdept178Views0likes2CommentsData and metrics around email subscriptions
I'm trying to determine the usage of a email templates by our users. Is there a way to get data on how many users subscribe to "general subscription notifications"? I'm trying to pair this information with the Notification settings on email frequency preferences. Users who are changing from the default (Immediately)email notification frequency to either "Daily" or "Weekly", is there a way to capture this information? Thanks!Solved202Views1like3Comments[SEO] structured content with LD-JSON
Here is a bunch of code i want to share I had to implement microdata in community and looking in google specifiction i saw LD-JSON format which sounds to be easier to manipulate than microformat https://developers.google.com/search/docs/guides/intro-structured-data So here is my code <#if config.getString("phase", "prod") == "stage"> <#assign endpoint="http://community.stage.brandname.com/" /> <#else> <#assign endpoint="http://communaute.brandname.com/" /> <@liaMarkupCache ttl="6000000" variation="node" anonymousOnly="false" /> </#if> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Organization", "name": "${text.format('brandName')}", "logo": { "@type": "ImageObject", "url": "${asset.get("/html/assets/logo_inline.png")}", "width": 600, "height": 60 }, "url": "${endpoint}", "sameAs": [ "https://www.facebook.com/brandName", "https://www.youtube.com/user/brandName" ] } </script> <#if page.name="CommunityPage"> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "name": "${coreNode.title}", "url": "${endpoint}", "potentialAction": { "@type": "SearchAction", "target": "${endpoint}/t5/forums/searchpage/tab/message?q={search_term_string}", "query-input": "required name=search_term_string" } } </script> <#else> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "BreadcrumbList", "itemListElement": [ <#list page.content.nav.breadcrumb.crumbs as crumb> { "@type": "ListItem", "position": ${crumb?counter}, "item": { "@id": "${crumb.url}", "name": "${crumb.text}" } }<#if crumb?has_next>,</#if></#list>] } </script> </#if> <#if page.name="BlogArticlePage"> <#-- --> <#-- getData : call to the macros--> <#-- --> <#include "queryhandler"/> <#assign messageDataQuery = rest("2.0","/search?q=" + "SELECT * FROM messages WHERE id = '${page.context.thread.topicMessage.uniqueId}'"?url) /> <#-- call to a macro which render imageURL and image Caption according to dimensions --> <@getMessageImage imageDimensions="" messageId=page.context.thread.topicMessage.uniqueId /> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Article", "mainEntityOfPage": { "@type": "WebPage", "@id": "${page.context.thread.topicMessage.webUi.url}" }, "headline": "${page.context.thread.topicMessage.subject}", <#if messageImageURL?? && messageImageURL!=""> "image": { "@type": "ImageObject", "url": "${endpoint}${messageImageURL}", "height": ${messageImageHeight}, "width": ${messageImageWidth} }, </#if> "datePublished": "${page.context.thread.topicMessage.postDate?datetime}", "dateModified": "${messageDataQuery.data.items[0].current_revision.last_edit_time?number_to_datetime}", "author": { "@type": "Person", "name": "${page.context.thread.topicMessage.author.login}" }, "publisher": { "@type": "Organization", "name": "${text.format('brandName')}", "logo": { "@type": "ImageObject", "url": "${asset.get("/html/assets/logo_inline.png")}", "width": 600, "height": 60 } }, "description": "${messageDataQuery.data.items[0].teaser}" } </script> </#if> this is working good but for blogArticles, google seems to require AMP-page. Looking for the AMP specifications, it looks hard to respect them in lithium. Did someone tried to do so?jferrandis8 years agoExpert165Views0likes1CommentHow can i add reply editor on ForumTopicPage?
I want to have the instant reply option on ForumTopicPage when clicked on Reply option ( but not the Quick Reply Option) there should be a reply editor option. I have gone through one of the post on communityhttps://community.lithium.com/t5/Developer-Discussion/Reuse-editor-component/m-p/140082 but i did't get any satisfactory results so what approach should be followed for this. Also how can i create a clone of community standard page like ReplyPage? So that i can use the component that are used in the context of ReplyPage and use that custom page in the another page as nested page.Solved121Views0likes1CommentHow to Add 'Sort By' in message-list component
We are using message-list component for theknowledge base board page to list articles. Also we need to a sort by (Kudos count, replies count, views count etc..) drop down along with this component. I have tried the 'tkb.widget.article-list-sort-menu' widget but it doesn't sort the article. Is there a way to sort articles based on replies count, views count etc.. ? Please suggest.pradeepc8 years agoGuide95Views0likes1CommentHow to configure the tinymice editor buttons?
This article:https://community.lithium.com/t5/General-system-setup/Configure-which-buttons-appear-in-the-message-editor/ta-p/218926 says, we can configure the tiny mice editor buttons but not sure how to do that from admin. I would like to add a button for code tag(<code></code>) in my edotor, does anyone know how to do this?Solvedpradeepc8 years agoGuide351Views0likes5CommentsCan we add IP address instead of domain name in HTTP Client
Hi All, I want to connect with third party REST API which is developed by us only and hosted on internal machine which is exposed to outer world through public IP. As per blog, I saw that for HTTP GET request to third party API, I have to use http client to make the hosting domain allowable for http request. Now my doubt is can I put the IP of the domain in http client or I have to use a domain name. Since I don't have a domain name but machine on which API are hosted is exposed external using public IP. The task is indevelopment stage so how can I test my API in community. Anyone can please help me out in this. Thanks - Deepak113Views0likes1CommentEmail Template get teaser/api call
Hello, The teaser does not seems to be included in the email template context, is there a way to get it or to make an API call with Velocity? ${notification.message.body} exists but not ${notification.message.teaser} Thank you! MattMattpx8 years agoGuide102Views1like1CommentHow to change error page quilt in Page Initialization script?
Hi, Is there any way we can change quilt of "Node not found" (displayswhen we try to access board or category which is not present in the community. Example) dynamically in Page initialization script? Iused following code to replace quilt. Unable to change the quilt. ${http.response.replaceQuilt("ErrorPage", "ErrorPage.custom")} Appreciate your help in this regard. Thanks & Regards, Phaniphani8 years agoAdvisor186Views0likes3CommentsPossible to change page title tag on Studio pages?
When we create a custom landing page in Studio using Custom pages, thenew page name doesn't allow certain characters like spaces. This is fine, but the Custom Page Name is used for the <title> tag of the page, and appears in the browser to visitors. When this is a product landing page, our Brand teams are very concerned that the product names are displayed correctly. Is there a way to replace the content of the <title> tag in a custom page, either in studio or programmatically?sdodds8 years agoExpert141Views0likes2CommentsChoose Avatar pop-up is not working
Hi, I have uploaded an image in our Staging environment as my Avatar. When I navigate to the 'View Profile Page', and click on the Avatar, the Choose Avatar pop-up is not being displayed. However, it is working fine for users with Lithium defined images as their avatars. Could anyone please help as to why the choose avatar does not work for uploaded images? Thanks, Srujana.srujanayeruvaka8 years agoChampion178Views0likes6CommentsLiql unknown error
Given this: https://community.lithium.com/t5/Community-API-v2/Message-resource/ta-p/113091​ SELECT * FROM messages WHERE depth = 0 AND conversation.solved = true That's an example query from the documentation, when executed on our environments it returns: { "status": "error", "message": "invalid query syntax for SELECT * FROM messages WHERE depth", "data": { "type": "error_data", "code": 603, "developer_message": "", "more_info": "" }, "metadata": {} } Is something being done wrong there? Thanks!Solveddb_ad8 years agoGuide422Views0likes16CommentsCustomize message-list component
I am currently working on customizing our communities Forum Page, and notice a build-in module entitled "message-list". It appears that this component can be customized although I have been unable to uncover any documentation that touches on this built in component. When comparing our existing 'message-list' component against other lithium communities, I notice some variance in order/content listed. It is not that content has been moved or hidden via CSS, the module itself seems to render different DOM elements on different communities. Any documentation on this would be quite helpful.Solved514Views0likes5CommentsGroup Invitation is not working for few users in the community.
Hello All, After sending Group Invitations when the user try to access the link in the private message it is showing as" Item not found". Is there any settings we need to configure for that user. The strange think it is working for different users with same permission Set Thanks & Regards, Abhishek Illindra89Views7likes0CommentsNeed successful message post event (new message/reply/update)
Hi All, I need to send some data to analytics when a message is created/updated/replied etc successfully. Currently when I am creating a new message, the API for getting recent messages for a particular user is taking about 1-3 minutes to get the updated/new message details. I need to get the new/updated message details as soon as the post is successful. Can anyone provide me any inputs on this ASAP? -Thanks!105Views0likes2CommentsHow to enable author and kudos column in Forum Page?
Hi, We did not see any options in community admin to enable Message Author and Kudos count column in Forum page (Message List component). Does anyone know how to enable these columnsin the list? Appreciate your help in this regard. Thanks & Regards, PhaniSolvedphani8 years agoAdvisor142Views1like3CommentsHow does SEO respond when all contents of a board are moved to a new board?
What happens when creating a new board/category and contents of an existing board are moved to the new oneswith newids? And the old boards/categories are deleted. Will search land in the new board? I doubt cuz the URL is changed. Can someone please assisthow to resolve this issue? ThanksInactive User8 years ago174Views0likes4CommentsPage Title from FreeMarker
I've seen how to retrieve page.name in FreeMarker. It returns a value like "BlogPage" which is really more of a template name. Is there a way to get at the actual title of the page (the value that gets echoed in the <h1> tag)? This would provide a useful avenue for branching logic.Solveddavidtwamley8 years agoExpert516Views0likes6CommentsWhat is wrong with my LiQl query?
Hi! I am trying to make component which can select and display all the users with "Moderator" role and one user with a specific username Myko_P. What am I doing wrong? <#assign modId_request = rest("2.0","/search?q=" + "SELECT id FROM users WHERE rank.name = 'Moderator' AND login = 'Myko_P'"?url).data.items />SolvedMyko_P8 years agoExpert252Views0likes4CommentsSet "requires moderation flag" via REST API
Hello, we want to build the moderation of messages our own way and actually the moderator has a list with unmoderated messages which he can individually approve.For this I use the REST API call:/messages/id/${messageId}/moderation/approve But when a moderator appoved a message it isstill marked with the red flag "required moderation". Then I had a look into the moderation status of the message and it says "approved". So whatdo I have to do to remove the "required moderation" flag? Regards, Michaelmicha808 years agoExpert175Views0likes4CommentsRequires Moderation Flag logic via API
Hi Lithium Developers, Say a moderator has the Show Moderation Required Column setting turned onandthe Clear Moderation Required Flag When Message is Read setting turned on. In a custom component, havingonly the unique id of a message (an original post or a reply), can we use the v1 API and/or LiQL to query whether or not to show a Requires Moderation "RM" icon for the message? The idea here is to mimic Lithium's out-of-the-box experience with regard to the RM icon showing and not showing. When my moderator userviews atopic page and seesan unmoderatedmessage, the out-of-the-box Lithium message quilt shows the RM icon as expected. At this point that the /messages/id/${msgid}/moderation/status and LiQL's moderation_status is"unmoderated." When my moderator user or any other admin or moderator user reloads the same topic page, the out-of-the-box Lithium quilt no longer shows the RM icon. I notice at this point that the /messages/id/{msgid}/moderation/status and LiQL's moderation_statusremain"unmoderated!" What pieces of data and what logic does the Lithium quilt useto show and not show the RM icon? What gets triggered when a moderator or admin reads a message? How does it get triggered? Are these data points available via the APIs? At first I thought I could use the /messages/id/${msgid}/read API or LiQL's user_context.read value in tandem with the moderation status to determine when to show the RM icon. If the "read" value is false and the message status is unmoderated, I could show the icon. However, when a moderator disables theClear Moderation Required Flag When Message is Read setting, the custom behaviorfails. In this case, one problem is oncemy moderator user has read the message he won't seethe custom RM icon anymore. Thank you, Davesullysnack8 years agoKhoros Alumni (Retired)246Views1like4Commentsbreadcrumb settings
Hi All, Can we manage Breadcrumb settings. We are trying to show the Breadcrumb path from the Home Page to location we navigate. We can only able to view Breadcrumb from only Category path but not full the Home path of the Community. We need to have a Breadcrumb link lithium community.Solved310Views0likes2CommentsSearch for a specific word using Liql query
Hi , I need to search whether the subject contains a specific word using Liql query . Eg : I am trying to get the messages using select * from messages . I am getting the response with a list of messages and each message contains a subject tag . Now , I need to find whether the subject contains a specific word . Something like - select * from messages where subject like '%test%' . Above query throws an error , how to use the LIKE or CONTAINS clause in Liql query ?auswin8 years agoContributor166Views0likes3CommentsJust looking for some advice around APIs
Hi Everyone I'm sorry if this question has been asked before, despite my wanderings through the posts I couldn't an answer that specifically answered my questions. In short I am trying to find a way to integrate a forum with a number of online help articles, and I believe the API might be able to do this. I'm hoping someone can point me in the right direction or give me an idea of how feasible this is. Ideally I would like users searching the forum to see a number of relevant forum posts based off the search they used. In addition within their search results I would also like the user to see a couple of relevant online help articles drawn from the online help articles. At the same time Id like to be able to almost do the reverse and have the online help article display a couple of forum posts/threads on the same topic that have been marked as a solution. Currently this is done using an RSS feed and just picks up the latest posts and not necessarily the most relevant additional posts, something Im trying to rectify. For example client searches the forum using the search of bananas, In the search results Id like to see something like the following Banana post 2 (marked solution) Banana post 3 (marked solution) Banana post 1 (no marked solutions) Banana help article 1 And if the same client searches the online help articles for banana they see banana help article 1 - with links displayed to banana posts 2 & 3 as they have marked solutions Is someone able to clarify if this is possible and if so how would I go about it?SolvedNik8 years agoContributor153Views1like2CommentsTotal Kudos Givers
Hi, We recently implemented a rank that grants the user 2 points per kudos. I have a component that is supposed to do a count of the amount of users and this worked fine until we granted the thanks weight. I see it was answered in this post but the user had the exact same problem as me and noone came back to answer the OP: https://community.lithium.com/t5/Developer-Discussion/Count-of-kudo-givers-to-a-particular-post/m-p/204236#M9166 So my question is basically the answer that was not given on the last reply in that thread. Is there a way to count the amount of kudos givers rather than the total points. ThanksSolvedjaread838 years agoChampion363Views1like10CommentsMultiple role if/then statement
Hello, I'm trying to modify a custom component to show/hide when a user has one of two roles. I currently have it working with one role. Can anyone tell me how to modify to include an "or" type statement? Here's the current if/then <#list restadmin("/users/id/${user.id?c}/roles").roles.role as role> <#if role.name?? && ((role.name == "myrole"))> <#assign user_has_role = true /> <#if user_has_role> <#attempt> Thanks for any help!cgauthier4448 years agoContributor210Views0likes2CommentsThe file upload encountered a problem
We are trying to post inline images withinbody content(reference). First we have to upload images to the album, but we are getting response as {"code":100,"message":"The file upload encountered a problem."}. As part of params i am sending them in Multipartentitybuilder(java) [builder.addPart("image.upload",file) here file is the ByteArrayBody]. Please help me what is the missing content here. Thanks in advance for your help consuming the community v1 image upload api!venuu8 years agoContributor94Views2likes0CommentsUpdate User Profile Setting & Preferences In Custom Plugin
Hi, We have a requirement to update the user profile data, preference etc from the custom plugin component. Is is possible to achieve this ? Also what is the best practice to get this done; should I user Rest API vs LIQL.vedagarw8 years agoGuide468Views0likes7CommentsCapturing Referrer url in page initialization script
Hi Lithium Team, I am trying to capture the referrer URL of the page. I have used the following code in page initialization script: <#if http.request.referrer?contains("userregistrationpage")> --- Followingcode to display a custom page -- </#if> The referrer URL contains the word "userregistrationpage", but still it is not going into the if condition. Am I missing something in thecode? Thanks, Srujana Satya Datla.satya8 years agoExpert130Views0likes1CommentUsername login issue.
Hi, when user attempt to register into the community.If they add a long name without using any underscore they get an error username name requires more then two characters. It is happening randomly for some users is there any admin settings available in the Community. Regards, Abhishek Illindra64Views0likes1CommentHow to add multiple Admins to Groups
Hey Team, Is it possible to add Multiple Admins to the Groups in Community Structure. Is it possible to Leave the group who created it(Ex: Community Admin created a Group and make 'xxx' as group admin and i need to leave the group and need to give full access to the 'xxx') Thanks in Advacne, Abhishek Illindra77Views0likes2CommentsPermission set for a Discussion in the Community
Hi, As per my understanding it is not available in the Community. Is it possible to keep a Discussion (Thread) only visible for Admins and Moderators. Is there any settings available in the Community. Thanks in Advance, Abhishek Illindra133Views0likes4CommentsHidden Boards are visible for Admin
Hi All, Can hidden boards are visible by admin? We created a category and enabled "Hide from lists and menus" in thecommunity Structure and we used "Child Node List" component in the category page to display all the list of nodes. As a admin user need to have privilege to view all the categories, posts... but we are unable to view it. Can you let us know is it default functionality by the Lithium or we missing anything. Thanks in Advance, Abhishek Illindra189Views2likes4Comments