Rank Name as Text Key
We support multiple languages on a single instance. In trying to create the most consistent language environment for our regional users, we would like the rank names to be localized. Therefore, the rank names need to to be text keys, not literal strings. Then the rank name would be something like "text.format{Trusted Contributor}" instead of simply "Trusted Contributor." Is this feasible to do, and has anyone done this already? Currently it is a component "lia-user-rank" but followed by an explicit string.Solved81Views0likes1CommentHow to retrieve recently updated messages using the Community API v2
Hi, I am migrating from Lithium Community API v1 to v2 and need to make REST HTTP calls to get the list of messages (and replies) recently updated or posted on the community. I am able to get the recently posted message and replies list by using this query: SELECT *FROM messages WHERE post_time > 2016-04-18T10:04:30-08:00 AND post_time < 2016-04-19T22:04:30-08:00 For getting the recently updated list I need to query on the current_revision.last_edit_time. However as per the developer documentation we cannot includecurrent_revision.last_edit_time in the where clause of the query. https://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv2&collection=messages#constraints Can someoneplease let me know if there is any other way to get the recently updated messages and replies in a community? Thanks!cgmcconnell9 years agoExpert210Views0likes3CommentsHelp with v1 Album.images.upload api?
Can any lithium developer help me to understand the intended usage of thev1 Album.images.upload api? Looking at the documentation, I see that the endpoint accepts a 'image.content' parameter. My questions are: - Is that a base64 encoded version of the image file that I want to upload? - Why is that parameter listed as optional? That is, how could I ever upload an image without supplying its content? Also, bonus points if someone could comment on what the valid values are for the 'image.visibility'? Thanks in advance for your help consuming the community v1 image upload api!SolvedDaveWi9 years agoKhoros Alumni (Retired)250Views0likes2CommentsBulk Data - Looping Delay Needed?
Hi NaokiT We are running the automated script now and executing the script every 3 or 4 minutes to be able to catch up from 1/1/2015 to present. The first 6 months the file size is very small and there are no errors, but starting on 7/2015 our community started to generate more traffic, users, and boards (more content) and the bulk data extract files are bigger. We have noticed that when we execute the command that the file will not be created successfully in some cases, but when we manually execute the same command it works fine and the file is created no problem. Is there a minimum expected delay when running the curl script on a loop to back fill data? It seems like 3 or 4 minutes is not enough time as we are getting inconsistent failures in which no file is created for that 24 hour period. Can you please help us understand what is the best timing to use so we do not have the babysit the script to backload all the data? Appreciate your help! Thanks, Timtmarshall9 years agoAdvisor115Views0likes2Commentshttp request session times out
Hi everyone. My situation: I have a custom component in every forum reply. That component can only show up for users with a certain role. I don't want to call the API every time the component loads (say, 20 replies per page). I don't need to, since the variable only pertains to the logged in user, not the individual posts. I want to check the current user's roles once on page load, store a variable and read that variable within my component Currently I'm running a macro on page init that checks the user's roles and does http.request.setAttribute("role","true") My component, when loaded, just does http.request.attributes.name.get("role","false") and this way I'm not forcing 20 api calls. The problem is that after a while this "session variable" times out, even though the user is still logged in. This forces my users to have to log out and in again, for the variable to be re-set. What am I doing wrong?73Views0likes0CommentsExposing a rank
Hey Folks, Sorry for the newbie q but I was just wondering if anyone has successfully exposed a user ranking in the front-end tothe user (based on who the user is, not a hardcoded rank). I was trying to run a simple component that has 'rank - ${rank.name} ' but it is evaluating as null/ missing. Any thoughts? -YSolvedyurikleban9 years agoMentor133Views0likes2CommentsSearch users on custom fields
Hi, I already have custom fields implemented on my users resource I couldn't find how to search for users based on these custom fields. Could someone point me to the right documentation page, please? Thanks, Florent.FlorentV9 years agoContributor106Views0likes2Comments- 155Views0likes4Comments
Using the /users/email endpoint when the user has hidden their email address?
I'm interested in using the/users/email/[email]endpoint to access user information (specifically their login or ID) based on their email address. This works if the user hasselected "Show email address to all" in My Settings -> Preferences -> Privacy, but it doesn't work if they've selected "Show email address to no one." This makes sense, especially in the context of unauthenticated public API calls. But is there a way I can override that, and see their email address anyway, if I can authenticate as an Admin? Is there another endpoint I should be using in this case?ryanplant-au9 years agoHelper117Views0likes1CommentNeed help to create Angular JS apps in Lithium Community
Hi, We are developing custom Angular JS apps inour community We are facing bootstrapping issue when we are placing the Angular JS code in the following pages. Forum Page TKB Article Page Forum Topic Page The console is throwing the error “App Already Bootstrapped with this Element" and Document viewer is automatically opening in TKB article page. We have followed the steps mentioned in the document http://community.lithium.com/t5/Developers-Knowledge-Base/Integrating-custom-AngularJS-apps-with-Lithium-Community/ta-p/208252 to Integrate our custom Angular JS apps with Lithium Community. But we are facing the same issue. Angular JS Code: <div ng-app="myApp" ng-controller="myCtrl"> {{ firstName + " " + lastName }} </div> <@liaAddScript angular="true"> ;(function (angular) { var app = angular.module("myApp", []); app.controller("myCtrl", function($scope) { $scope.firstName = "John"; $scope.lastName = "Doe"; }); })(LITHIUM.angular); </@liaAddScript> Can anyone help us to resolve this issue. Thanks & regards, PhaniSolvedphani9 years agoAdvisor464Views1like3CommentsREST API V2 board.id results with underscores
Hello, I'm running a query to return the board name for instance "Billing and Payments". However, when I run the query using board.id it returns "billing_payments". Is there a solution using a Lithium query or will I have to create a custom solution to parse these names? Removing underscores and capitalising is no problem, losing the 'and' is though.152Views0likes3CommentsHow to Subscribe to some to Community Event?
Hi, I am trying to subscribe to UserUpdate event as per the following article- http://community.lithium.com/t5/Developers-Knowledge-Base/Subscribing-to-community-events-using-the-REST-API/ta-p/14785 After following the instructions, my url becomes- http://community.optimizely.com/company/restapi/vc/events/subscriptions/events/name/UserUpdate/subscribe?restapi.session_key=123456789&event.callback_url=https://community.mycompany.com And when I make an Http callout using this url, I get "Page Not Found Response" But when I use the following URL to register to User Update event i.e. without tennant- https://community.optimizely.com/restapi/vc/events/subscriptions/events/name/UserUpdate/subscribe?restapi.session_key=123456789&event.callback_url=https://community.mycompany.com I get the exact response which is given in the documentation, so I assumed that I have subscribed to UserUpdate event- <?xml version="1.0" encoding="utf-8" standalone="yes"?> <response status="success"> <value type="string">e73e395b-bca6-4d90-8956-cff93d20828e</value> </response> (The above ID is obviously different in my case case) But when I make some update in my User from the community, my event does not get captured and callback URL is not called as a response. Kindly guide, what I am doing wrong.260Views1like4CommentsAnnouncement Time Specific to User Settings
Hello, We occasionally run different events in the community, and/or need to announce outages on the site that are expected to take more than a few minutes. Does anyone know of any code that I can use when adding text to the community announcement section that will pickup a users setting for time zone and potentially converta time so that it's specific to them? Ex: 'Fusion Answer Day happening at 10 AM PT', cloudbe 'Fusion Answer Day happening at 5 PM UTC' for someone with UTC selected as their time zone. Being a global company it's tough to come up with a solutionthat is relevant for all.adsk_cmgrs9 years agoDirector59Views0likes0CommentsNeed help with calling two API
How can I call two API in one custom component box? I want to displayposts from the Forums and Knowledge Base. My code is below. Please help. <li style="height: 342px;" class="tile"> <div class="border"> <h2 class="tile-title">Freatured Post</h2></div> <div class="inner"> <#attempt> <#assign messages = rest("/boards/id/knowledge/topics/recent?page_size=4").messages /> <#recover> </#attempt> <div class="custom-recent-articles-container"> <#if messages.message?size gt 0> <div class="custom-recent-articles-heading-bar"> <span class="custom-recent-articles-heading-bar-title">${text.format("")}</span> </div> </#if> <#list messages.message as message> <#assign posted_by_userid = message.author.login?string /> <#assign posted_by_label = text.format("Posted By:") /> <div class="custom-recent-article-wrapper"> <div class="custom-article-header"> <div class="custom-article-subject"> <a href="${message.@view_href}">${message.subject}</a> </div> <div class="custom-article-posted-by"> <span class="author">${posted_by_label} <#if ((posted_by_userid != "") && (posted_by_userid != "Anonymous"))><@component id="common.widget.user-name" user="conv:${message.author.login}" /></#if></span> </div> </div> <div class="custom-article-teaser"> <#if message.teaser?length gt 0> ${message.teaser} <span class="custom-read-more"><a href="${message.@view_href}">${text.format("")}</a></span> </#if> </div> </div> </#list> </div> </div> </li>Solvedskylinegtr9 years agoMentor214Views0likes4CommentsWhat is the correct API call to make for badge information
We would like to make an API call on the back end that generates all the data with badges earned by a community member. What is the correct call to make? other examples of customer attributes that can be called are: email for customer email id = user id email = email sso_id is the SSO ID Thanks! DaniSolvedDani9 years agoAdvisor183Views0likes2CommentsUsing HTTP PUT on an endpoint
Hi! I've been trying to figure out how to edit a post directly from an endpoint.I not quite familiar with HTTP request over javascript, and the documentation (Updating message using HTTP PUT) is not very clear to me. I've tried a couple of things with jQuery, but it looks like jQuery is not available on endpoints. I also tried pure javascript (XMLHttpRequest) but I'm not getting any results. This is what I used: <script type="text/javascript" language="JavaScript"> var data = {"data": {"type": "message","subject": "hello world","body": "this is the edited message post."}}; xhr = new XMLHttpRequest(); xhr.open('POST',encodeURI('http://api.lithium.com/community/2.0/<mycommunityID>/messages/5909')); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.onreadystatechange = function(aEvt) { if (xhr.readyState == 4) { if(xhr.status == 200) console.log(xhr.responseText); else console.log("Error loading page\n"); } }; xhr.send(encodeURI('data=' + data)); </script> And I got this error: "XMLHttpRequest cannot load http://api.lithium.com/community/2.0/psg/messages/5909. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<my stage URL>' is therefore not allowed access. The response had HTTP status code 503." Anyone has any examples? I would appreciate any help, Thanks!Solvedfuenteso9 years agoLeader581Views0likes11Commentsarticle:tag meta data
Does anyone know where I can prevent the tags of an article being passed through to the meta data? We use labels to categorise our content in the IA but tags are used purely for internal tracking and I have just noticed that the tags are also being pulled into the list ofarticle:tag that are generated in the meta data. Anyone know where I can control this? Thanks, Dom57Views0likes0CommentsRe-download all components
Hi folks, hoping you know the answer. I previously used the SDK and downloaded all our components, plugins, macros, etc. I then edited some components, created some SDK-only components, uploaded the plugin. Since then I've also created some new endpoints directly in Studio. Now, when I run li export-plugin it seems to only re-download SDK components and not, for example, those new endpoints I created in Studio. Is there a command to download everything again, without wiping my SDK "history"? I mean, I want to get everything, but I don't want Studio to forget which components it should pull from the SDK. Thanks.Solved103Views0likes2CommentsCustom DateTime stamp in an Email template
Does anyone know if it is possible to customize the date/time stamp directly in a Velocity template? It appears this is possible using Velocity-Tools library - DateTool, however I have no success using this tool in Studio. Object ${note.getSentDate()} Currently 04-05-2016 3:56:40 PM Desired 4/5/2016 3:56 PM Anyone have any ideas? Thanks, Adamstiphel9 years agoGuide68Views0likes0CommentsHow do I exclude messages from a particular board using a LiQL query?
I would like to run a LiQL call where I retrieve the latest posts from the community, however I would like to exclude messages from a particular board. The following query doesn't work as the error says != is not a valid operator. SELECT * FROM messages WHERE category.id='xxxxxxxx' AND board.id != 'test' AND depth=0 ORDER BY post_time DESC LIMIT 15 Does anyone have any other suggestions?dustin9 years agoExpert165Views0likes2CommentsLost Forum Topic Page Dropdown: How to find missing components
Hey Community, I was redesigning the forum topic page for our community and in that process I lost some components which were implemented by default by Lithium. I am especially looking for the overflow button and dropdown menu which has functionality to manage the overall thread. Is there a way, other than reverting versions, to find specific prebuilt components. Attached is an image of the missing component.SolvedDanDesign9 years agoAdept139Views0likes2CommentsAdding a placeholder text to the rich text editor
In order toprovide some guidance for community members on their first post we would like to add a placeholder to the editor field. I've seen that the HP Communityare doing it: I roughly now how it's technically done by defininga string for the placeholder. I just cannot find the string for the lia-mce-placeholder class that sits in theiFrame that the rich text editorsits in. Anytip you can sharefuenteso?Solved319Views0likes5CommentsDid Lithium deprecate some API v1 calls?
While I slowly, but surely, convert all our custom code from v1 to v2, one component that's still using v1 stopped working yesterday. (Since 16.2?) I created a custom list of unanswered topics, based onrestadmin("/boards/id/${boardId}/unanswered... Now, that API call results in 0 messages. I guess I'll move that over to API v2 now; mainly just curious why it would just stop working.67Views0likes1CommentLimit the number of post in RSS feed
Hi everyone, I noticed that there is a rss feed related to search. I find this very helpful. Il would like to know if there is a parameter which enable me to only have the 5 first result of the rss search feed ? I have tried to add "page_size=5" at the end of the URL but it has nos effect http://community/communityname/rss/search?filter=solvedThreads&search_type=thread&solved=true&page_size=5 Do you have any thought about this ? Thanks in advance Note : I know that this easily feasible through the API but I need to use RSS.clemlith9 years agoExpert175Views0likes4CommentsRecent Blog Articles Widget
We have a number of widgets setup on our community category pages which display relevant topics from forums and ideas. I'm trying to emulate the widgets to display the 3 most recent blog articles. Any thoughts based on the code used to bring in the 3 most recent ideas submitted? <#include "category-page-ideastation.ftl" /> <#assign topics_count = restadmin("/categories/id/" + coreNode.id + "/topics/style/idea/count").value> <#if (topics_count?number > 0 )> <#assign cat_obj = "/categories/id/" + coreNode.id + "/topics/style/idea/recent?restapi.response_style=view&page_size=3"> <@ideastation "no" cat_obj coreNode.id/> </#if>adsk_cmgrs9 years agoDirector97Views0likes1CommentDoes anybody have success importing a Wordpress Blog to their Community?
I saw one post on this, but it looks like it's been 3 or more years since there's been discussion and I know there's been some changes. Has anyone had any success importing a Wordpress blog into their lithium community for a transition? If so what did you find to be the most effective solution?WillH9 years agoGuide84Views0likes1CommentShow certain user data for all users
Hi everyone! Due to our community purposes we need to display users' location for every user on profile page (by default only staff can see it) and in message author info block. I do know how to call this data but, but still can't put into default non-contract component "author" - only after it. Since I'm not very experienced, it's much complicated for me to create an extended custom component from nothing. <#assign messageAuthorId = env.context.message.author.id /> <#assign profileLocation= restadmin("/users/id/${messageAuthorId}/profiles/name/location").value /> <div class="lia-message-author-location">Location: <span class="profileLocation">${profileLocation}</span> </div> Any suggestions how can I make it visible for all our users? Thanks in advance, Yurii.Solved113Views0likes1CommentCaching API objects
As part of our effort to reduce API calls and improve overall page load performance, recently we stumbled on this… http://community.lithium.com/t5/Developers-Knowledge-Base/Return-FreeMarker-objects-as-JSON-or-XML-strings/ta-p/184087 That's good stuff. Didn't notice any mention of it in 15.12 release notes. Anyway, we can take advantage. We're familiar with caching strings using either appcache, usercache or http.session. Say in one custom component we make a v2 query which returns an array of 25 messages, we're assuming we can call apiv2.toJson to get a string representation of the messages, then we can cache the string somewhere. During the same page load but in some other custom component we assume we can ?eval the string back into an array. Is the resulting evaluated object an exact replica of the original object which was returned from the v2 query? We're worried that some field types won't be exactly the same, and that we'll need to carefully update the rest of our old code to accommodate slight differences. When time allows I will investigate. Before we re-factor custom code to support something like above, we're wondering if there's any way to cache an object or an array returned from an API call natively, without having to convert the object or array into a json string first (and of course, later, the string back into an object or array). Consider a single Forum Topic page load. The topic has 200+ replies, but the current page 1 load will show the original post and 29 replies. In a custom component in the Forum Message quilt, for each reply we'll make an API call to see what star-rating the current user has given the reply (if any). Can the result of that API call be cached natively for use in any other custom component which could be loaded during this page load, or for use in endpoints which may be loaded some short time after the page has loaded? Assume the cached information is destroyed or recreated at next page load. The goal here is to cache data from API calls for use in Page initialization, in any custom component or in any endpoint, but without having to pass the object between components. In some cases we're dealing with Lithium black box components which as far as we know don't let us pass extra objects. In some cases we're not exactly sure which 29 replies are going to appear on this page load, and we wouldn't want to query for all 200 replies of the topic before some other component will process the relevant 29 replies one at a time. Also, we see no way to pass a native object queried in Page initialization to any other custom components. Right now we're caching json strings in http.session but we're worried that repeated calls to get and set session storage during a single page load will bog down the server at that level of the stack – even though we may have reduced load at the Lithium v1 & v2 API level of the stack. We don't think that appcache or usercache fit the bill, since documentation states their cache information is shared across all anonymous sessions. We're interested in caching information returned from API calls only for the lifetime of a single page load for the current single user / visitor. So our eyes turned to http.session. Would you warn against this method? Thank you, Davesullysnack9 years agoKhoros Alumni (Retired)164Views0likes0CommentsAPI for /view/allowed state of a board, but not for current user
Hi Lithium developers, In a custom component, on a forum topic page, is there a way to figure if the topic'sboard node is publicly viewable? I am familiar with this REST API call: /boards/id/${board.id}/view/allowed but it seems to give true or false only for the current user based on his/her role permissions.Say the current user is an admin or a moderator, can the custom component know if topics in the current board can be visitedby an anonymous visitor? Thanks, Davesullysnack9 years agoKhoros Alumni (Retired)242Views0likes6CommentsError adding domain to HTTP Client
Hi - I'm trying to integrate Survey Gizmo (going though the steps here), but when I enter.surveygizmo.com into the Allowed Domains comma separated list I get this error: "One or more domains entered is not allowed." If I take out the other domain name, it works, but I need to have two domain names in that list but it's only letting me have one. Basically, the info box says it allows a comma separated list, but it lies as far as I can tell. Anyone know why or how to change that? ThanksSolvedid-murray9 years agoContributor209Views0likes3CommentsOverwrite default quilt with SDK?
Hi everyone. So, I've been playing with the SDK, setting Studio to use SDK components, by "deleting" the Studio ones. But, how do I do this for default quilts? There's no big X to click to force Studio to use the SDK version of a quilt I've edited. Should I even be editing default quilts? Or is the only way to overwrite a default quilt to define a custom one and use that as a custom page in Admin?Solved192Views1like3CommentsLithium-Klout SDK installation problem
Hi Lithium, We are keen to use this SDK for our new projects. We have followed the below instructions in MAC OSX and Linux (Centos/Ubuntu), but no luck. http://sdk-docs.lithium.com/develop/getStarted On Mac, we have installed the SDK, and can create project by "li create-project". But when we try to "li export-studio-plugin", it throws exceptions. We have also tried to installed SDK on Centos or Ubuntu, but the installation process cannot finish, it gets stuck. Can we have some virtualbox linux image (.ova file) with installed and tested SDK that we can just download and use? We also noticed that during the installation, there are a lot of warnings. Peterpeterlu9 years agoChampion279Views0likes6CommentsHow to get badge icon into the email template?
Hi, I wantto send the badge that a user earned in an email. It would be something like "Hey - Congrats on your first badge" with the actual badge icon image in the email. Is there a way to do that? The notification object has title but no icon_url. I tried doing notification.badge.icon_url based onhttp://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv2&collection=badges but I guess that and velocity templates are 2 different things. I was looking at velocity objects available here and I could not find anything:http://community.lithium.com/t5/Developers-Knowledge-Base/Email-template-context-objects/ta-p/75924 However, I noticed I get badge I earned emails from Lithium. It should be possible, correct? I can't do a REST call, can I? Thanks for the help.Solvedgstelang9 years agoMentor159Views0likes1CommentTranslating dates
We have the publication date of posts written like this in English: 08 January, 2015 Which is configured like this: <#assign posttime = rest("messages/id/${msg_id}/post_time").value/> <#assign postTimeObject = posttime?datetime("yyyy-MM-dd'T'hh:mm:ss") /> <p>${postTimeObject?string("dd MMMM")}, ${postTimeObject?string("yyyy")}</p> This works fine but is the same across all languages. We have publications in 5 languages all in all so we'd obviously prefer it if we could add in a way of rendering all dates in the relevant languages. I can't see anyway of doing it other than manually translating all the months, anyone had any similar experience with this? Thanks, Dom140Views0likes1CommentActivity Object for User Update
Hi, I want to capture the rank change activity for a User in community. I havetried to make use of Freemarker Activity Context Object as below: <#if activity.results.name.UserUpdated?? > </#if> But above condition is successonly innew session, if in same session there is Rank change for member, this condition still returns false. I am writing it in Page Footer section. Also, if condition is success, it symbolizes that User Object has been updated, but I want to captureRank change event in specific. Is there a way to achieve it? Any help will be appreciated.ronaksomani9 years agoMentor260Views0likes3CommentsCustom quilt (SDK) bug?
Not sure this is a bug or not, but here goes: I made a copy of a working, custom quilt in /quilts/custom, gave it a new name (UnansweredTimes.quilt.xml for Lithium's reference). Basically created a new quilt that didn't exist in Studio. (The orginal quilt I had previously built in Studio, but was now using the SDK version). I then replaced the main custom component in the xml with a new custom component. This new component also didn't exist in Studio, I made it new and uploaded through the SDK. I uploaded my plugin, could see the new custom component and new quilt in Studio. They both indicated they were SDK versions. The new custom quilt also indicated that it didn't exist in Studio before. Makes sense, I had only just created it. Now, when I tried to load my custom page it would just instantly redirect to the homepage, without showing the page. I went to the custom component, reverted it to the Studio version, then set it back to the SDK version. Now the custom page works. Odd?81Views0likes1CommentCSS Question: Override or Cancel default style
So, I am working on my theme and whenever I made a change within the WYSIWYG TinyMCE editor to a table row background, it doesn't appear until the KB is published. I looked in the CSS and it looks like it is because that rule is hard set in the default CSS: body#lia-body .lia-content, .mceContentBody, .mceContentBody th, .mceContentBody td, .mce-content-body, .mce-content-body th, .mce-content-body td { background-color: #ffffff; color: #333333; font-size: 16px; line-height: 21px; font-family: proxima-nova,sans-serif; font-weight: normal; } What I am not sure of is how I could use my custom CSS to over-ride that rule. I don't want to change "background-color" to another value, I want that value to be disregarded. Any help on how to accomplish this is appreciated!SolvedQuelyn9 years agoGenius449Views0likes12CommentsHow to get text key localization value by locale/language or node ID with REST or Endpoint?
Hi, I have a community with different language preferences set for each sub-category (e.g. French language category, German language category, Chinese language category, etc., configured via Admin > Users > Profile Defaults > Language). I'm attempting to retrieve and display text key values of a specific sub-category at the community level. I'm able to read a locale code (?) from /users/self' or a node's 'profile.language' setting: rest('/users/self/settings/name/profile.language').value rest('/categories/id/${catId}/settings/name/profile.language').value I can also use the 'text' Freemarker context object' text.format() to retrieve the value of a text key relative to the current node's (e.g. community at the community level) configured language (and/or user's selected language). Is there a way to retrieve a specific text key localization via REST or Endpoint given a locale code/language or node ID? Is there a separate setting or direct way to determine if a user is not using the default configured language? What is the difference between the 'profile.language' and 'config.language' setting? Thanks! Benbma9 years agoMentor220Views0likes2CommentsAccess to Lithium custom component
Hi guys, I have been developing on Lithium platform for a while and this has been bugging me.I have not got a definitive answer from anybody. We don't have access to custom components Lithium has built for us. For example, thekudos.widget.authors-leaderboard is the custom component which is not viewable or editable in Studio Editor. We have some customization requirement that involves changing this component a little bit or removing some elements. The problem is we have not been given access. Now, there're 2 solutions: Rebuild, which seems like a waste of engineering effort when we can just reuse what someone has already done for us. Rebuilding is also lot of work. Depending on the requirement, your work might involve fetching results from REST API + LiQL queries + HTML work + CSS styling. Tweak on top of what we have been given. If this is something smaller, targeted and makes sense, we can hack around with JQuery or CSS styles and make it look as per design. This is not really a good engineering practice and I don't want this to be a practice in my team. Is this by design that we're not given access to certain components? Thanksgstelang9 years agoMentor130Views0likes2CommentsBulk Data API Error
Hello, Anyone using bulk data ever receive the following error? {"message":"getaddrinfo ENOTFOUND"} We've run our informatica job all day in 24 hour increments increment data. We are now attempting to troubleshoot missing data for a one day period with my manual CURL script versus what out automated script is pulling. My manual CURL script that worked before the automation was working but now receives following error mentioned above. The automation process also receives the same error. Not clear if the api server is up, or if there is a limit that we might have stumbled on? Thanks, Timtmarshall9 years agoAdvisor131Views0likes2CommentsWhere to find all the community admin settings by api
Hi All, I am trying to fetch a community setting by API, but no luck. I am not sure I am using the correct setting's name Here is the code <#assign value = restadmin("/settings/name/layout.kudos_leaderboard_module_users_list_size").value /> ${value} Am I using the correct setting name? Doesanyone hasthe code snippet to print all the community settings out? This way I can find the setting's name. It doesn't seem to have this kind of documentation in TKB. PeterSolvedpeterlu9 years agoChampion210Views1like1CommentAny way to change urls in posts to a new url from the backend/database by an sql statement/similar
Hi All. Is there any way to bulk change url through a backend process? For example, if posts contain links and those links have changed due to a tool change. The thing that needs to happen is to take a docid in the old url and paste it behind a new url. This could be done manually of course but if you're looking at volume of 50.000 one has to wonder if there is no way to do this on the backend. Today I can search for the old url string and find the results in the posts so I am sure there must be a search/replace statement that can be run on the backend? Any Database/table guru out there? Thanks for brainstorming with me! WendySolved203Views0likes4CommentsHow do I print the freemarker object as string?
Hey guys, Is there a equivalent of JavaScript's console.log or JSON stringify method when I am building components? For example --I got answer from one of the forums that the rest call tokudos/authors/leaderboard returns this XMLhttp://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv1&leaf-id=Category.kudos.authors.leaderboard#Category.kudos.authors.leaderboard. However, it would have been much easier if I could just do a toString() and see the entire response itself. Is there anything that does that?Solvedgstelang9 years agoMentor220Views0likes3CommentsTotal sum of kudos in a topic
Hi, In Community API V2, is there an easy way to get a total sum of kudos given forall messages in a topic? ThanksSolvedttsalonen9 years agoContributor143Views0likes1CommentTop Kudo Authors rest API in freemarker
After digging around the community, it seems it is possible to get a list of the top kudoed authors for the last week... http://lithosphere.lithium.com/lithium/restapi/vc/kudos/authors/leaderboard?max_age=one_month I would like to access this via freemarker, and need help getting it to work. This is my best guess, but alas it does not work. Any ideas what I'm doing wrong? <#assign authors = rest("/kudos/authors/leaderboard?max_age=one_week").authors /> <#list authors as author> <div>${author.id}</div> </#list>Solveddustin9 years agoExpert885Views0likes8CommentsCorrect Reply Count with API 2
Scenario: One Topic with two replies. First reply was, obviously, a reply to the OP. Second reply was a reply to the first reply. Using the original API(/threads/id/<id>/replies/count) I get: 2. Using API 2 (SELECT count(*) FROM messages WHERE parent.id = '<id>') I get: 1. Now, I did this test because I was getting this mismatch on an existing topic and I figured that the issue is the "parent" in the "parent.id". Because the second reply was a reply to the reply and not, technically a reply to the OP, it isn't being nested and not considered a child of the topic (I guess)? Is this a bug, or is there another, better, way to count ALL replies/messages in a topic?Solved165Views0likes2Comments