Custom Page SEO
Hi Lithium, We are creating a custom page (/t5/custom/page/page-id/xxx-support). We are able to change the page title by going into text editor and do this: page.xxx-support.title = SEO title We also want to change the<meta content="xxxxxxx" name="description"/>. I don't know how to update the description field. Any suggestions? Peterpeterlu7 years agoChampion247Views3likes8CommentsNew custom component based on studio component
Dear Community, we’d like to create a new custom "Users Online" component, because the Lithium Studio components “forums.widget.users-online”, “community.widget.users-online” and “users.widget.users-avatars-online” do not fit our needs. We know that it is possible to create custom components with FreeMarker etc., but: is is possible to get the FreeMarker-Code of Lithium Studio components (e.g. “community.widget.users-online”) and customize it according to our needs or do we have the create the custom component from scratch? Is it possible to look up the code of Lithium Studio components e.g. in the Lithium documentation? Thank you! Best regards, ClemensSolvedclemensw7 years agoGuide174Views0likes1CommentcomponentCacheSupport Null or missing
Hi, I have used component caching using@liaMarkupCache but i am facing following error on one of instance componentCacheSupport has evaluated to null or missing. On other instances same it's working. Can anyone suggest why this error is coming ,componentCacheSupport being context object it should be alwaysavailable was my evaluation. Thanks.Solved179Views0likes2CommentsReordering a nested JSON in freemarker.
Hey guys. Is there any way so that a nested JSON response can be reordered? I want to rearrange the position of objects from the way I'm getting to a different manner. Suppose my JSON and my requirement is something like what is written below. Is there any way to achieve this. Any codeexample will be of great help. Thanks in advance. { "alphabets": { "a": "1", "b": "2", "c": "3", "d": "4", "e": "5", "f": "6", "g": "7" }, "h": "8", "i": "9", "j": "10", "k": "11", "l": "12" } and I want the output (text) to be like - h: 8 i: 9 j: 10 k: 11 l: 12 alphabets: a: 1 b: 2 c: 3 d: 4 e: 5 f: 6 g: 7Solvedpp_017 years agoMentor155Views0likes4CommentsMeToo rating through API
Hi, I cannot find a way to add forum_topic_metoo rating through REST API, it allways return unexpected error, here is apicall in question ->rest("messages/id/${message_id}/ratings/key/forum_topic_metoo/ratings/add") Any ideas how to overcome this?Solved165Views0likes3CommentsUpdate a user avatar using the API
Hi everyone, We're adding new avatars to our community and we want to delete the old ones, which will leave us with a lot of broken avatars. I've been looking here for a solution and I know I can use JavaScript to catch those broken images and replace them at runtime. The problem is this doesn't resolve the problem (users having a broken avatar), in fact, it hides it and there's no way for users to know if they have a valid avatar or not. We're considering using the API to modify each user profile using a non-custom avatar to replace it with a default avatar, but I can't find anything on the documentation. API v1 doesn't have a call for that, in fact, the documentation says that we have to use API v2 for that. But apparently, endpoints are not allowed to make HTTP calls to any .lithium.com domains. Is building a mini-app on a different server, going through the authorization process and make the call the only way to update another user's avatar? Am I missing something? Thanks!Solvedfuenteso7 years agoLeader245Views0likes4CommentsEmail Temple alignment issue in Mac system
As per the need we modified the styling of the email templet for community, it is working fine in windows system. But facing alignment issue in Mac system in Outlook. looking for suggestion or help in this regards. Thanks Srinivas Kiran.p103Views0likes1CommentImplement Markdown Support
Has anyone implemented markdown into their forums? We're already using prettify.js but because we have such a developer centric community, I'm getting requests for markdown support. I did findhttps://community.lithium.com/t5/Developers-Discussion/Is-there-an-option-to-use-markdown-syntax-or-any-options-for/m-p/130505#M5005 but as it's three years later, I'm hoping professional services isn't needed to implement this.sherrie7 years agoLeader276Views3likes6CommentsDownload attachment through API
Hi Team, Is there a way to download attachment through API using either Lithium Session key / Oauth. In either case, when I'm trying to hit 'url' from attachment , its returning authentication page. I'm not sure how to bypass it in postman/ my Java application. https://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv1&leaf-id=Attachment.url#Attachment.urlvmalla7 years agoAdept119Views0likes1CommentGet date for moved post?
Hi, is it possible to get the timestamp for when a post has been moved? We are building an archive function right now and one criteria is to show the date for when a particular post has been archived. Has anyone an idea how to solve this? Thanks in advance ChristianSolvedmicha807 years agoExpert107Views0likes1CommentHow to change field validation
Hi, We just looking into change form validation on specific field of the form. In My settings section Personal profile tab, the Devices input box allowing only URL, and we want to change the validation and allow simple text. So could you please let me know the possibility.Solvedjaikumar17 years agoMentor124Views1like2CommentsView data returned from API V1 call
I am trying to retrieve some data from API V1 calls. I am still trying to figure out exactly what calls I need, and I think it would be helpful to be able to print out my responses. Is there a way to easily print out all the data from an api response? Right now my method is assigning variables, however this doesn't work for longer responses.For example, I am trying to find out what data I get from this response: <#assign forumName = restadmin("/boards/id/${coreNode.id}/ancestors").ancestors.ancestor>Solved174Views0likes2CommentsHow to make REST API call
Hi, I just looking into initiate the following REST API call using GET, PUT and DELETE method. https://api.lithium.com/community/2.0/mytenantid/users/5?client-id=your-client-id Could you please suggest the way to initiate the call. I have tried the rest() and restadmin() method. But it's not helpful, and also tried the ajax and that also not success. So guide me how to proceed on this?jaikumar17 years agoMentor288Views0likes8CommentsStyling Lithium Built-in Error Pages
Hi All, I had a customer who is asking to style404, 403 and "something went wrong" pages. I am able to find 404 page, coz you just type anything into url and you can get 404 page ("page not found"). How can I find these http 403 pages? 403 means Forbidden. "something went wrong" means exception 500 page? Lithium is so robust. I try to break it to get 500 and 403. But no luck. Any help? :) Thanks Peterpeterlu7 years agoChampion177Views3likes4CommentsAPI/Context object for spell corrected search term.
Hi, We're looking at adding a custom component to the search results page that will surface a subset of the results in a different format. However, on the community in question we've got the automatic spell correction on. Now we can get the original search term using http.request.parameters.name.get("q", "" ), but is there a way to get the adjusted (post spell checked) term through freemarker rather than having to ajax it off the page? Thanks in advance.131Views1like2CommentsHighlight topic starter
Just wanted to share a small code snipped Icreated to highlight the topic starter with a small badge next to the author information in each reply but not the first message in a thread: <#if (env.context.message.parent??) && (page.context.thread.topicMessage.author.id == env.context.message.author.id)> <div>Topic Starter</div> </#if> Just drop the above code in a custom component and add it to the "ForumMessage" page layout next to the author information like avatar, name and rank. How does it look With a pill shape styling similar to that of labels it can look like this: Alternatively you could @override the author avatar component and use above condition to wrap it into a topic starter class container and thenadd some styling to the avatar like a ring: Or do both at the same time. Have fun with it.ClaudiusH7 years agoKhoros Alumni (Retired)137Views7likes1CommentGet query parameters from http.client.response
Hi everyone, I'm trying to integrate data from an internal user profile application and I need to get an authentication code from our share SSO environment. I'm using http.client to make the request on an endpoint. So I make the request, the SSO environment validates that there's an active session andredirects me to a non-lithium URL (the application URL) with the authorization code embeded as a query parameter. The problem is that I can't find a way to retrieve that query parameter or the redirect URL from http.client.response. I can only get the page content (is a blank page) and the response headers. Do you know if there's a way to get the redirect URL from the context object? Has anyone tried to authenticate via OAuth 2.0 (and OpenID) to a "third party" application? Thanks!fuenteso7 years agoLeader164Views0likes2CommentsAuthentication Issues API & SSO
Hi, I was able to retrieve Session key fromhttp://community.<name>.com/restapi/vc/authentication/sessions/loginusing postman. I'm able to retrieve only when I'm logged in to my community using admin creds in browser and turn on the interceptor in postman. If I disable interceptor in postman or If I'm not logged into the community in browser then I'm not able to get session key. Is this the default behaviour or am I missing something. I was also trying to retrieve session key as perhttps://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=sso, but I'm not able to understand where can I get the details in SSO_KEY SSO_CLIENT_DOMAIN COMMUNITY_URL CALLER_PUBLIC_IP SSO_CLIENT_ID SSO_SERVER_ID I need to know which details from above can be asked to support team.vmalla7 years agoAdept82Views0likes0Commentscustom component, freemarker parse html assets JSON file
Hi Lithium, There are several customers asking that is it possible to use a freemarker function to parse a json file in the /html/assets I know we can put the json content in custom content. But custom content has a DB length limit. Any ideas? Peterpeterlu7 years agoChampion96Views1like1CommentInvalid Cross-Origin Request when trying to retrieve Session Key
Hi, I'm trying to retrieve session key as per https://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=sessionauth I was trying this using postman client(for testing). <response status="error"> <error code="307"> <message> Invalid Cross-Origin Request. Request origin: 'chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop' contains no matching allowed origin(s). </message> </error> </response> My aim is to write a set of API extractors to retrieve the data from lithium community via API.vmalla7 years agoAdept258Views0likes8CommentsUsers Based on roles
Hi, I need to pullusers based on a role through API. I was able to get related documentation using Version 2. https://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv2&collection=users Is there a way that I can pull it through version 1? Use some kind of filtering?Solvedvmalla7 years agoAdept156Views0likes1CommentRetrieve All Users
Hi, I'm need to pull all the users from my Lithium Community via API (V1). https://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv1&branch=User I'm not able get the exact end point to pull all the users for my community. So far I was able to get the session key for authentication, and was able to pull data of 27 users using <community>/restapi/vc/users?restapi.session_key=<key> Can anybody guide me in pulling data for all users?Solvedvmalla7 years agoAdept118Views0likes1CommentFloat replies that aren't a solution, but are important, within a topic
Saw a Product Idea for this, so I thought I'd share my custom solution. Perhaps not for the faint of heart, but when you get it working it'll be fun :) This adds an option to all the replies in a topic, which lets you float them to the top. Like Solutions, but not marked as such. Sometimes you want to float a reply to make it easier to find and stand out, without implying that it's a solution. Looks like this: You will need three things for this: Component that shows the floated reply Option in the reply's message options to float it Endpoint to make the magic work And they are these: One: (I removed my CSS, but just reply here if you'd like to have it and I'll send it over. It'd just take a lot of space here). <#assign topic_id = page.context.message.uniqueId/> <#-- insert your preferred method of testing a user's role here --> if user has role: <#assign usercanUnfloat = true/> else <#assign usercanUnfloat = false/> /if <#-- ask Lithium to add a metadata field for messages --> <#assign float_ids = restadmin("/messages/id/${topic_id}/metadata/key/spotify.floated_replies").value/> <#if float_ids != ""> <#-- if this topic has floated replies --> <#list float_ids?split(",") as msg_id> <#if msg_id != ""> <#assign query_msg = restadmin("2.0","/search?q=" + "SELECT view_href,author.id,author.login,current_revision.last_edit_time,search_snippet,body FROM messages WHERE id = '${msg_id}'"?url) /> <#list query_msg.data.items as q> <#assign author_id = q.author.id/> <#assign author_login = q.author.login/> <#assign msg_url = q.view_href/> <#assign msg_post_time_date = q.current_revision.last_edit_time?number_to_datetime?datetime?string[cust_user_date_format]/> <#assign msg_post_time_time = q.current_revision.last_edit_time?number_to_datetime?datetime?string[cust_user_time_format]/> <#attempt> <#assign msg_body = q.search_snippet/> <#recover> <#assign msg_body = q.body/> </#attempt> <#assign query_author = restadmin("2.0","/search?q=" + "SELECT view_href,rank,avatar.message FROM users WHERE id = '${author_id}'"?url) /> <#list query_author.data.items as a> <#assign author_url = a.view_href/> <#assign author_avatar = a.avatar.message/> <#assign author_rank_name = a.rank.name/> <#if a.rank.bold == true> <#assign author_rank_bold = "bold"/> <#else> <#assign author_rank_bold = "normal"/> </#if> <#assign author_rank_color = a.rank.color/> <#attempt> <#assign author_rank_icon_url = a.rank.icon_left/> <#assign show_icon = true/> <#recover> <#assign show_icon = false/> </#attempt> <div class="cust-floater-container"> <div class="cust-floater-message"> <div class="lia-quilt-column lia-quilt-column-24 lia-quilt-column-single lia-quilt-column-header-content"> <div class="lia-quilt-column-alley lia-quilt-column-alley-single"> <div class="lia-message-author-avatar lia-component-user-avatar"> <div class="UserAvatar lia-user-avatar lia-component-common-widget-user-avatar"> <a class="UserAvatar lia-link-navigation" tabindex="-1" target="_self" href="${author_url}"><img class="lia-user-avatar-message" title="${author_login}" alt="${author_login}" src="${author_avatar}"></a> </div> </div> <div class="lia-message-author-username lia-component-user-name"> <span class="UserName lia-user-name lia-user-rank-${author_rank_name?replace(' ','-')}"> <a class="lia-link-navigation lia-page-link lia-user-name-link" style="color:#${author_rank_color}" target="_self" href="${author_url}"><span class="">${author_login}</span></a> </span> </div> <div class="lia-message-author-rank lia-component-author-rank-name">${author_rank_name}</div> <p class="lia-message-dates lia-message-post-date lia-component-post-date-last-edited"> <span class="DateTime lia-message-posted-on lia-component-common-widget-date"> <span class="local-date">${msg_post_time_date}</span> <span class="local-time">${msg_post_time_time}</span> </span> </p> <#-- button to let users un-float this reply --> <#if usercanUnfloat == true> <div class="lia-message-unfloat"> <#-- create an endpoint that will edit the topic's metadata field and remove the id of this floated reply --> <a class="lia-link-navigation lia-page-link" href="ENDPOINT_URL_HERE?msgId=${msg_id}&topicId=${topic_id}&do=remove&url=${http.request.url}">Un-Float as Top Answer</a> </div> </#if> </div> </div> <div class="lia-message-body-wrapper lia-component-message-view-widget-body"> <div id="bodydisplay" class="lia-message-body"> <div class="lia-message-body-content"> ${msg_body} </div> </div> <#-- the floated reply shows a snippet, just in case the floated reply is one looong post. This links to the full reply. --> <div class="cust-readmore"><a href="${msg_url}">Read more</a></div> </div> </div> </div> </#list> </#list> </#if> </#list> </#if> Two: (I added this to the Forum Topic Page and the Idea Page. You might need to tweak the JavaScript to work with your specific layout and classes) <#-- insert your preferred method of testing a user's role here --> <#-- if user has role: --> <#if userIsAdminMod == true> <#attempt> <#assign topic_id = page.context.message.uniqueId/> <#assign float_ids = restadmin("/messages/id/${topic_id}/metadata/key/spotify.floated_replies").value/> <@liaAddScript> <#if float_ids == ""> var arFloats = new Array(); <#else> var arFloats = [${float_ids?trim}]; </#if> $(document).ready(function() { $(".lia-component-reply-list .lia-message-view, .CommentList .lia-message-view").each(function () { var obj_msg = $(this); var obj_href = obj_msg.attr('class'); var UidIndex = obj_href.indexOf("message-uid-"); if(UidIndex != -1) { UidIndex = UidIndex + 12; var msg_id = obj_href.slice(UidIndex, obj_href.length); } else { var msg_id = 0; } if(arFloats.indexOf(parseInt(msg_id)) == -1) { var action_do = 'add'; var action_text = 'Float'; } else { var action_do = 'remove'; var action_text = 'Un-Float'; } var obj_add = '<li><a class="lia-link-navigation cust-action-float-message" rel="nofollow" href="/spotify/plugins/custom/spotify/spotify/end_float_reply?msgId=' + msg_id + '&topicId=${topic_id}&do=' + action_do +'&url=${http.request.url}">' + action_text + ' as Top Answer</a></li>' + '<li class="cust-item-float-sep" aria-hidden="true"><span class="lia-separator lia-component-common-widget-link-separator"><span class="lia-separator-post"></span><span class="lia-separator-pre"></span></span></li>'; obj_msg.find(".lia-component-forums-action-highlight-message").each(function() { obj_menu_item = $(this).parent('li'); obj_menu_item.before( obj_add ); }); }); }); </@liaAddScript> <#recover> </#attempt> </#if> Three: (The endpoint that makes it all work. Turned out smaller than I thought it would). <#-- insert your preferred method of testing a user's role here --> <#-- if user has role: --> <#if userIsAdminMod == true> <#assign status = ""/> <#assign msg_id = http.request.parameters.name.get("msgId", "")?string /> <#assign topic_id = http.request.parameters.name.get("topicId", "")?string /> <#assign action = http.request.parameters.name.get("do", "")?string /> <#assign return_url = http.request.parameters.name.get("url", "")?string /> <#if msg_id != "" && topic_id != "" && action != ""> <#assign float_ids = restadmin("/messages/id/${topic_id}/metadata/key/spotify.floated_replies").value/> <#assign float_ids_seq = []/> <#if action == "add"> <#if float_ids == ""> <#assign float_ids_new = msg_id/> <#else> <#list float_ids?split(",") as f_id> <#if f_id != "" && f_id?number != msg_id?number> <#assign float_ids_seq = float_ids_seq + [f_id]/> </#if> </#list> <#assign float_ids_seq = float_ids_seq + [msg_id]/> <#if (float_ids_seq?size > 2)> <#assign float_ids_seq_new = []/> <#list float_ids_seq?reverse as f_id> <#if (f_id_index < 2)> <#assign float_ids_seq_new = float_ids_seq_new + [f_id]/> </#if> </#list> <#assign float_ids_new = float_ids_seq_new?join(",")/> <#else> <#assign float_ids_new = float_ids_seq?join(",")/> </#if> </#if> <#elseif action == "remove"> <#list float_ids?split(",")?reverse as f_id> <#if f_id != "" && f_id?number != msg_id?number> <#assign float_ids_seq = float_ids_seq + [f_id]/> </#if> </#list> <#if (float_ids_seq?size > 0)> <#assign float_ids_new = float_ids_seq?join(",")/> <#else> <#assign float_ids_new = ""/> </#if> </#if> <#if float_ids_new??> <#assign result = restadmin("/messages/id/${topic_id}/metadata/key/spotify.floated_replies/set?value=${float_ids_new}")/> </#if> </#if> <script> <#if result?? && result.error?has_content> history.replaceState( {} , 'Float Message', '${return_url}' ); window.history.back(); <#else> history.replaceState( {} , 'Float Message', '${return_url}' ); window.history.back(); </#if> </script> </#if>250Views4likes3CommentsCan I include external HTML files in my Community?
Hi all, There is some parts of our community that we are trying to centralise (like the header and footer for example). On our other websites we have used PHP and JS to download a HTML file and include it in the page via ajax. Is there a way that this can be done on Lithium Communities? It would be great to move away from having to update the same code over and over again in multiple places for different websites. Has anyone done anything like this before? Many thanks, Jackjaread837 years agoChampion201Views0likes5CommentsRegarding SoS integration in Android mobile App
We are integrating the SoS video chat feature in [ Android App ] our client's application. I have gone a walk through of the implementation documentation and came to know that sample app included the Firebase Push notification feature. So, is it mandatory to include the any push notification services like Firebase or any other third parties in our community integration in mobile app, or just we can ignore them and implement rest of the feature. And kindly clarify, is it possible and permissibleto integrate communitySDK excluding the push services? Any help is appreciated.swaminathan_v7 years agoContributor92Views0likes1CommentCoding LiQL API calls so they don't look like SQL injection vulnerabilities
Does anyone have any recommendations on how to handle our LiQL calls so they don't look like SQL injection vulnerabilities to our automated security scan tools? We are concerned that we develop code to make LiQL calls, it might trigger alerts on security scans because the API calls will look like potential SQL injection vulnerabilities. Thanks!lhamilton7 years agoContributor169Views0likes3CommentsHow to filter messages in search api reply by user
Hi, I am trying following api : "community/restapi/vc/search/messages?restapi.response_style=view&q=author.login:[author_login]" But it seems we cannot use nested keys for filtering message with respect to certain user. Am i making some mistake here or this is not possible ? Thanks.Solved204Views0likes4CommentsAPI call to roles collection returning empty for non-moderators
Hi, Bit of a weird one here, we've built a component to test users' roles against board titles, only displaying the boards that have matching roles. Trouble is, it only works if the user has the role of moderator. I'm pulling the roles data like this: <#assign userID = user.id /> <#assign rolesQuery = "SELECT name FROM roles WHERE users.id = '" + userID + "'" /> <#assign roles = rest("2.0", "/search?q=" + rolesQuery?url) /> I'm then testing 'roles' for results etcbelow before proceeding with further lists / conditionals. If I view this as a moderator, all the subsequent content displays, if I view as a non-moderator,nothing below thisconditionaldisplays. <#if roles?? && roles.status?? && roles.status == "success" && roles.data?? && roles.data.size gt 0 && roles.data.items?? && roles.data.items?has_content> Does anybody have any experience of this? I've tested the query in the API browser and it returns results, so there isn't a problem with pulling results it seems. Is there something that prevents these API calls on user's if they don't have certain permissions?SolvedKev_B7 years agoAdvisor278Views0likes7CommentsA/B testing
Hi! We´re an analyst and a UX'er (not developers) looking to set up some A/B-tests on our community. Is it possible to set up tools such as VWOor Google Optimize on the platform, and does anyone have any experience or recommendations on runnings tests in Lithium? Thanks!Marianne807 years agoMentor265Views0likes5CommentsGroup Role vs. Regular Roles
Hi, I'm trying to do something like this, but with group roles: <#assign is_gm = false /> <#list restadmin("/users/id/${user.id?c}/roles").roles.role as role> <#if role.name?? && (role.name == "GroupMember")> <#assign is_gm = true /> Then if it's true or false, I can make the page display accordingly. Apparently this doesn't work for Group Roles though, because it's doesn't recognize GroupMember as a role. So how do I modify it to check whether or not a person has a group role, as opposed to a regular role? Thanks262Views1like4CommentsPrompt modal after x visits and y seconds (as used in "Value Analytics")
Dear community, is it possible to use the conditions from “Value Analytics” (e.g. “Prompt users with survey after this many visits”, or “after this many seconds” or “after his many days”) in FreeMarker? Are there other ways to set the number of visits and the visit duration as conditions in FreeMarker? Use case: We want to prompt a custom modal (not the “Value Analytics” modal) after the x visits and y seconds Thank you! best regards, ClemensSolvedclemensw7 years agoGuide163Views0likes3CommentsUploading new emoji's. Process and risks?
Hi All, We're designing some new emoji's for our text editor/post page and have a couple of questions. What is the process for uploading these new emoji's. Can we replace the old ones and get in the new ones. What happens to old emoji's used inside the posts if we replace them with the new ones? Fellsteruk. I know you have customized yours. Maybe you can help me out a wee bit :-) Cheers Wendy274Views0likes6CommentsHow to post attachments to a message using OAuth Access Token
Hi All, We tried making V1 API call to post attachments for a message by using the OAuth access token and we are unable to post it due to an internal server error. Following is the java code we are using. HttpPost post = new HttpPost( "https://api.stage.lithium.com/community/v1/community/boards/id/Board/messages/post?restapi.response_format=json"); post.addHeader("client-id", "xxxxx"); post.addHeader("Authorization", "Bearer xxxx"); post.setHeader("Content-type", "multipart/form-data"); ) could any one help me on this. Thank you, Ravindra.115Views0likes1CommentIssue due to apostrophe in V2 API
Hi, V2 APIgiving an error for following API call: V2 call: SELECT * FROM messages WHERE board.id IN('boardIds') AND depth = 0 AND subject MATCHES 'Test For Latest Idea Somebody's Test' limit 100 I tried in code replacing single quotes with double quotesbut doesn't get successSolvedPradnya7 years agoGuide284Views1like7CommentsHow to pass user defined parameters to text key?
Hi all, when I ampassing user defined value to text key I am getting null value. for example: <#assign responseCat=rest('/categories/id/${catID}?restapi.format_detail=full_list_element&restapi.response_style=view').category/> <#assign catIdTitle=responseCat.title/> <#assign catHref=responseCat.@view_href/> <li id="product-category-link" title="${text.format("product-category-navigation",catIdTitle)}"> <a href="${catHref}">${text.format("product-category-navigation",catIdTitle)}</a> </li> Is there any other way to pass parameter to text key?? Thanks, Bhakti.Solvedbhakti7 years agoGuide218Views1like4CommentsShow latest blogs from community on another website
Hi all, Is it possible for me via the API to get the latest blogs from my community and display it on another website (It will be on the same domain. E.g community.domain.com and I would display it on domain.com). Thanks, DarrenSolveddarrenSP7 years agoMentor122Views0likes2CommentsSort labels from restapi
Hi, i config 4 labels in admin with this order : test1, test2, test3, test4 and i use restapi for return my labels : /restapi/vc/boards/id/blog/labels but the order of result in XML is : test1, test4, test3, test2 is it possible to find the same order as in the admin ? thanks,SolvedNath7 years agoGuide261Views0likes4CommentsBoard recent api with additional parameter
Hi, We are just looking into apply additional filter criteria into the boards recent api (restapi/vc/boards/id/[id]/threads/recent). We want to get records which contain specific keywords, and filter the data by specific period of time. Please let me know the possibility to apply those parameter.jaikumar17 years agoMentor163Views0likes3CommentsRemoving OOTB Labels component from OOTB topic-message component.
Hi everyone, On our Forum Topic Page, we have the OOTB topic-message component positioned in the main-content. I would like to know that if there's any way I can add any xml parameters to remove theOOTB Labelscomponent which is coming in side thetopic-message componentso that all the other content coming inside thetopic-messagecomponent can be retained and only theLabels componentcan be removed. Thanks in advance.Solvedpp_017 years agoMentor291Views0likes6CommentsHow to get role details by name which has space
When I call APIhttps://community.lithium.com/restapi/vc/roles/name/Test Role orhttps://community.lithium.com/restapi/vc/roles/name/Test%20Role, the response is <response status="error"> <error code="101"> <message>No role with the specified id.</message> </error> </response> How can I get Test Role details using rolename instead of ID? This error is there only when Role name has a space.109Views1like1CommentHow to retrive info from query string and pass into component in Lithium
Hi Support Team, I have tried to check how component in Lithium queries data for 4 pages above. There is an issue need to get advise from Lithium support. Scenario: Once we access URL as below http://community.digi.com.my/t5/Blog/bg-p/11112222 http://community.digi.com.my/t5/Reviews/bg-p/Reviews http://community.digi.com.my/t5/Let-s-Inspire/bg-p/LetsInspire http://community.digi.com.my/t5/New-Digi/bg-p/NewAtDigi We want to get last part of URL in this case is "Reviews" and then pass that parameter to component name "recent-blog-posts" And in component we will get parameter by using code as below <#assign category = http.request.parameters.name.get("category", "") /> Question: Where should check that component is used in admin of Lithium? How can we parse parameter from URL after /bg-p and then pass that parameter to componentrecent-blog-posts? 11112222 Reviews LetsInspire NewAtDigi Thanks, Mickeykiettuongwork7 years agoContributor426Views0likes13CommentsPossible to get a list of topics not yet marked as solved?
Hello! I know about the "Unanswered topics" component, which shows the topics that don't yet have any response at all. But I'm curious if there's acomponent / query / URLthat displays all topics that aren't yet marked as "Solved." I suppose I could call it the "Unsolved topics" component. Rationale for this - at any one time, we don't havevery manytopics in our community that don't have ANY response, and a lot of them are the sort of topics that just don't need a response (e.g. small announcements). However, there are lots of discussions that don't exactly have a resolution. It would be nice to be able to provide this list for folks who want to help out but don't know where to start. Cheers! - CarolineSolved184Views0likes3CommentsCustomize search granularity options
Does anyone have experience creating an@override component for the standard search? I need to customize the search granularity drop-down and it appears that the only way to do is to create a custom component. I've tried various JavaScript approaches that manipulate the granularity <select> menu directly, but there is more to it than that. For example, the LITHIUM.SearchForm() function is initialized with an object called nodesModel that contains the valid/expected granularity options, so when I tried to change the DOM with a custom option, the onchange handler code wouldn't recognize it as a valid option. If only I could copy the core search component, then customize it as an@override, but that's not an option. Is therea DIYsolution here or is Lithium Professional Services my only option?Solvedtealiumjustin7 years agoExpert185Views0likes2CommentsMove a post using the REST API
Hi I need to do the following via the API's Move a post from a public board to a private board and keep the original post. – I found no methods for this functionality. So would it be possible to duplicate a message in a private board? If so how? If there are other options (leveraging the API's) I'd be interested in hearing them.FrankEi7 years agoLithium Alumni (Retired)446Views0likes5Comments