Retrieve data from XML endpoint
I have custom XML endpoint which looks like this: <levels> <level> <name>LEVEL 1, NAME1</name> <points>0</points> </level> <level> <name>LEVEL 2, NAME2</name> <points>10</points> </level> </levels> Now I would like to get this data in custom component. How can I do that? I tried to use rest call but I am not sure which url should I use. My endpoint url looks like this: https://communityurl/plugins/custom/communityname/communityname/ranking_levelsSolvedomygoodness8 years agoMentor466Views0likes9CommentsProblems trying to match by label and body/subject REST V2
Hello, I'm trying to use LiQL to retrieve posts by label and keywords in body/subject. I've been testing this and I've noticed that the 'MATCHES' query is working inconsistently. Here is my query: SELECT id, subject, body, board.id, view_href, metrics.views, author.login, post_time FROM messages WHERE labels.text = 'FAQ' AND depth=0 AND labels.text MATCHES ( "stereo", "electro", "kickit") AND body MATCHES ("boys") OR subject MATCHES ("boys") ORDER BY metrics.views DESC LIMIT 5 The query retrieves posts labelled 'FAQ' and posts containing 'boys' however ignores posts containing labels 'stereo', 'electro' and 'kickit'. Now, if I remove the line "AND body MATCHES ("boys") OR subject MATCHES ("boys")" then the line "MATCHES ( "stereo", "electro", "kickit")" works correctly. It seems they cannot be used together, is there a way I can match posts by label AND body/subject. Keeping in mind it must always contain an 'FAQ' label? Sorry if this is very confusing.145Views0likes2Commentslia-mark-empty class
Does anybody know why components get marked with the ‘lia-mark-empty’ class and contain no content? I wanted to add the ‘primary-post-button´ component to our home page (category) quilt, just like it is in the ForumPage quilt. Yet when I do this it does not display, and instead puts an empty DIV there with this class name. Works fine on the ForumPage, but not the CategoryPage. Why?rwm8 years agoAdvisor108Views0likes1CommentList related blog articles
Hi, Does anyone know of a way to get related blog articles when viewing an article? In particular, using the tags and providing a list of articles that have the best match for the tags that are on the article being read. I have tried using the rest API but the query only accepts a single tag entry per query so this isn't very intuitive as I might have 20 tags on an article. Is this something that is available in the system or do I need to create a custom component to do this? If it's the latter, could I get a bit of help with starting it off, I am not sure if just plugging individual tags into multiple queries is the best way to go about this. ThanksSolvedjaread838 years agoChampion218Views1like3CommentsHow to get the current blog ID (of the post)
Hi all, I need to get the ID of a blog article when I am on the page viewing the article in question. The URL contains this ID after /ba-p/{THE ID I WANT}. What is the best way to obtain this ID in a custom component so I may plug this id into another API call for something else?Solvedjaread838 years agoChampion176Views0likes1CommentAdd category name to email template
In the General Subscription Notification email template, I am attempting to add the category name after the board title. According to this article: Email template context object, coreNode.title seemed like the object to use, since board is its own object and I want to know the node the board exists in. See the change I made in red text below: ${notification.message.localizedObjectType} in ${notification.message.board.title} : ${coreNode.title} on ${notification.formattedDateForMessageEdit} in the ${community.title} ${eventDetails}: However, this just spits out some random board when testing. I also tried <span class="node-name">${coreNode.title}</span> as seen used in the default Unanswered Thread email template, but this had the same result. Edit: I just tested the Unanswered Thread email template, and it also showed me a random board name. So perhaps coreNode.title isn't the correct object to use for category and/or there's another way to insert it into the email template. Any help is appreciated. Thanks!lilim8 years agoBoss185Views0likes4CommentsGamification progress bar
Hey everyone, I'm looking for people that might have created a custom component in their community that has tied in with a CRM tool such as Salesforce or something else. What I am looking for is to make a status bar for things such as number of posts, solutions provided, ideas submitted and so on. Once the community members have reached a certain goal they would get a badge or an achievement. I have had a few ideas that I'll list below and an image that helps explain my idea. I just want to see if anyone has done this in their communities and how they did it, what they used, other details. If it isn't even an option then that is good to know too :mantongue: 5 Solutions Provided: Smarty Pants 15 Solutions Provided: Einstien ... 10 Kudos: Cool kid 25 Kudos: Charismatic ... 7 posts: Chatter box 20 posts: Socialite ... 1 idea: thoughtful 4 ideas: innovator ... The image below is borrowed from fitocracy. It's a great workout website but has awesome gamification system. These are all rough ideas but I think that it's a good start. Ideas, words of encouragement, skeptical critisism are all encouraged.zachm8 years agoMentor520Views0likes11CommentsHow to display all community messages?
Is there a way to display all messages for whole community using rest API?Solvedomygoodness8 years agoMentor206Views0likes5CommentsLithium forum board in an iframe
Hi We are working on a new project where we would like to display the latests comments from a lithium forum thread within a single page application (SPA) and also would like to addnew post to the same thread. We have an existing integration via the LithiumSSO cookie and would like to use the same. Is this possible via an iframe as we would like to limit the amount of development at our side? Cheers! Prashprasheenprakash8 years agoContributor168Views0likes3CommentsCustomizing Idea Exchange Icons using CSS
We have an Idea Exchange we use to publish the Product Roadmap for our application that's been a big hit! I've been trying to customize the icons that exist for each status and have been running into some problems. Here's what the Exchange looks like now: These icons are great, but we'd love to customize them a little bit more. Right now the icons are controlled by .IdeaPage .lia-status:before, .IdeaExchangePage .lia-status:before { content: "\f0eb"; } I tried swapping those out doing something like this instead and itsort or worked: .IdeaPage .lia-status:nth-child(1):before, .IdeaExchangePage .lia-status:nth-child(1):before { content: url("new-icon-1"); } .IdeaPage .lia-status:before, .IdeaExchangePage .lia-status:nth-child(2):before { content: url("new-icon-2"); } .IdeaPage .lia-status:before, .IdeaExchangePage .lia-status:nth-child(3):before { content: url("new-icon-3"); } .IdeaPage .lia-status:before, .IdeaExchangePage .lia-status:nth-child(4):before { content: url("new-icon-4"); } .IdeaPage .lia-status:before, .IdeaExchangePage .lia-status:nth-child(5):before { content: url("new-icon-5"); } .IdeaPage .lia-status:before, .IdeaExchangePage .lia-status:nth-child(6):before { content: url("new-icon-6"); } But it looks like that first child ALSO controls the icons that appear next to each idea. Right now they look like this: But after adding the first nth-child they get blown out to something like this: Does anyone know of an easy CSS trick to change the primary icons on the Idea Exchange without having them show up in the lists and individual Ideas as well? Any suggestions would be much appreciated! Thanks, MurphSolvedMurph8 years agoContributor145Views0likes2CommentsBoard visibility privileges in custom component
Hello Community! We are using a custom component to display Boards, Nested Boards and Blogs on our homepage and theboards' visibilities seem to be screwed up. Some of these boards have a custom visibility, meaning they are only visible to certain user groups (moderators/admins) or even just individual users. These privileges are set in the lithium backend. The purpose is to have moderator discussion boards, that should not be visible to 'normal' users. With the standard Board overview component this always worked as expected. If a user with the right privilege opened the page, they saw these boards, if the user did not have the privileges, the user did not see them. Now, since we are using a custom component, Lithium always displays an error message ('This widget could not be displayed') if the user does not have the right privileges to see it. These error messages are ugly and screw up our layout. Here's the error we are getting from the REST call we are using REST Error: path="http://helsana.stage.lithium.com/helsana/restapi/vc/boards/id/mod_discussion?restapi.response_style=view" status="error" code="303" message="Der Benutzer -1 verfügt nicht über die folgenden Berechtigungen bei mod_discussion: [ read_board ]" The failing instruction: ==> #assign boards = rest("/boards/id/{... [in template "community_list" at line 30, column 9] This is a permission error because weare trying to display the private "mod_discussion" board via the REST API and anonymous users do not have the "Read Board" permission granted by default. Are there API calls we can use that only return boards if the user has the right privileges to see it? Please help and Thank you! MadrianSolvedmadrian8 years agoGuide373Views0likes7CommentsCustom Configuration of SSO for Lithium
Hi Lithium Team, We have a Lithium instance for which login authentication is based on company’s central SSO system. But our requirement is to make the login authentication to the Lithium environment using a community specific SSO login without disturbing or modifying the central system. Is there any possible way to achieve it. Regards, Abhishek Illindra66Views0likes0CommentsHooking to a Kudo or "Helpful: Yes/No" button for Adobe Analytics
Hi there, We are trying to track Kudo/un-Kudo as well as Helpful? Yes/No buttons in Adobe Analytics We have the tracker code already but need to hook the calls onto the Kudo/Yes/No buttons We also need to pass the author's name along For example (We have renamed Kudo to "Like" in our community): If user clicks on “Like”, call dtmTrackLike(dtmComponentNames.BUTTON, dtmCv.LIKE, "<name of author of said post>"); If user clicks on “Unlike”, call dtmTrackLike(dtmComponentNames.BUTTON, dtmCv.UNLIKE, "<name of author of said post>); * e.g. if the name of the author whose post is being liked is "Dory" dtmTrackLike(dtmComponentNames.BUTTON, dtmCv.LIKE, “Dory"); Similarly for the TKB helpful (YES/NO) buttons, we would like to do this: If user clicks on “Yes”, call dtmTrackArticleRating(dtmComponentNames.BUTTON, dtmCv.YES, "<name ofTKB author>"); If user clicks on “No”, call dtmTrackArticleRating(dtmComponentNames.BUTTON, dtmCv.NO, "<name of TKB author>"); Any insights would be much appreciated! Thanks!Howard8 years agoGuide69Views0likes0CommentsLogout Api not changing the online_status of the user
Hi All , I am trying to logout using API , here is the steps 1. First Iget the admin session key by executing , http://community-name/restapi/vc/authentication/sessions/login?user.login={username}&user.password={password} Result : sessionkey 2. This will give me the session key , which i am using to login another user as below , http://community-name/restapi/vc/authentication/sessions/login?restapi.session_key={sessionkey}&user.login={username} Result : This will change the online_status = "online" ( select * from users where id = '12' ) do this in API Browser. 3. After that i am logging out using following api , http://community-name/restapi/vc/authentication/sessions/logout?restapi.session_key={sessionkey}&user.login={username} Result : Success But when i check the online_status its still online . Can you please guide me how i can kill the session / or the online_status will only change after 30 minuets as the default session key is preserved for 30 min . Regards Irfansirfan18 years agoContributor164Views0likes1CommentTrying to return post count in custom component
I think this is a pretty basic question (I hope!). I'm trying to pull back the post count in a custom component that I can then add to a table. Based on what I've seen, the set up might look something like this: <#assign x= rest("2.0","/search?q=" + "SELECT count(*) FROM messages WHERE board.id = 'installation'"?url) /> <#list x.data.items as message > <p>$message.subject</p> </#list> But I get errors when I try to test that. I do know that the SELECT count works (can verify in the API)... but I don't know how to wrap it up for a custom component. Appreciate any links or suggestions. CheersSolvedcgauthier4448 years agoContributor162Views0likes1CommentCSS for changing Kudo button once actioned (clicked)
Hi, I'm looking to change the colour of our Like (Kudo) button once it has been clicked as a form of visual confirmation. Does anyone know what css should be added to our _style.scss skin for this? I'm pretty sure it needs to be built off of the following, but I'm stumped. #lia-body .lia-content .lia-button-image-kudos.lia-button-image-kudos-horizontal.lia-button-image-kudos-enabled.lia-button Thanks in advance for any tips!SolvedStephenB8 years agoExecutive196Views0likes3CommentsBreadcrumb customization for SEO
Hi, I would like to customize the breadcrumb to make it visible in the search engine result page by adding the google item scope tag itemscope itemtype="http://data-vocabulary.org/Breadcrumb" The objective would be to move from <li class="lia-breadcrumb-node crumb"> to <li class="lia-breadcrumb-node crumb" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> at all breadcrumb level Does anyone have some clue to address this topic or have the same need ? Current search result Wished search resultGuillaumeV8 years agoMentor485Views3likes5CommentsAPI to get status of "Hide from lists and menus" of Idea Inside any Category
Currently I am refering http://<community>/restapi/vc/categories/id/<categories_id>/settings/name/config.hidden and can find the status of the category i.e. TRUE or FALSE.... I have Ideas and boards inside these category and need to know "Hide from lists and menus" status of Idea... Please let me know if there is any existing API or how to proceed towards solution. Thanks Keshav M. KelkarSolved258Views0likes2CommentsDisplay users of a specific role in widget
We have a category that only users of a certain rank/role can access. We used to have a group for this, but we added some interaction types (Ideas, Blogs, and TKB) so we changed it to a private category which worked better overall. However, one thing we miss about the group is the Group Member List(ID:groups.widget.group-members-view). We'd love to show awidget that displays a list of allusers within the role that has access to the category, in the same style as the Group Member list. Is there a way to do this within Studio?sdodds8 years agoExpert154Views0likes2CommentsGetting results that don't meet the constraints
Hi! I'm working on a semi-automated archiving component, and for this, I need to get posts older than X amount of time. I'm using API v2.0 but the results I'm getting have some posts out of the time range I established on the query. For example, if I use this: SELECT id, conversation.last_post_time, post_time from messages WHERE conversation.last_post_time >= 2014-08-01T22:29:11-07:00 AND conversation.last_post_time < 2015-07-01T22:29:11-07:00 AND depth = 0 ORDER BY conversation.last_post_time DESC I get this: Am I missing something? The weird thing is that I'm always getting between 2 and 8 results like this on each query regardless ofthe time range I use, the rest of the resultsare correct. I know I can fix this glitch by validating the dates on each result item before doing any archiving, but it bothers me that the API is returning results that do not meet the constraints on the query. Are there other things affecting the results? I'm not using time ranges greater than a year because I read it could degrade the accuracy of the results. Any ideas? Thanks!fuenteso8 years agoLeader178Views0likes6CommentsREST api for most used blog labels
I am looking at creating a custom component using blog labels and having them filter the blog articles down to the most popular categories. What I need is to list out the top 5 most used labels and display them as links to filter the blog. I have tried using the api but no such luck getting it to output anything. Any ideas on how to get the most used blog labels to be displayed into my component?Solvedjaread838 years agoChampion233Views0likes6CommentsCustomize date format of messge-list OOB component
Hi guys, Is there anyway to customize the date format used in the "Latest Post" column of the message-list of the component? I know that I can choose a format from the Admin plugin but I need a format not available in that radio group. Will I have to create a custom component that replaces the message-list to achieve this or is there an simpler way to go about it? Cheers, Tripptripp-bishop8 years agoMentor142Views0likes3CommentsLithium Angular Node documentation is either missing or really really hard to find! ng:li-nodes
I'd like to find out ANY information about this sort of thing: <component id="ng:li-nodes-core-node-info" show-description="true" show-title="true" show-icon="false"/> <component id="ng:li-nodes-community-title"/> A search for "ng:li-nodes-core-node-info" has zero results. In fact, I'd love to find any information about Lithium Angular at all ... Is there any information on Lithium's Angular components or is this yet another bit of Lithium we have to guess at and hope we're lucky? ;) C'mon guys, DOCUMENT, DOCUMENT, DOCUMENT!! (and make it easy to find!)Inactive User8 years ago148Views0likes1CommentSorting based on replies count, giving wrong result.
Am trying to sort posts based on replies count, but we are getting wrong result from the query. Please find below query which am using for sorting. select * from messages where depth = 0 ORDER BY replies.count(*) DESC Please suggest anything am doing wrong or wrong query am using. Results returned from API 15 replies 14 replies 12 replies 10 replies 8 replies 9 replies 4 replies There is a jumbled between 5th and 6th response as mentioned in above response.realtordotcom8 years agoContributor132Views0likes2CommentsGet some metrics (kudos, replies, solutions) for an specific timeframe
Hi! I was wondering if there's a way to pull metrics for a user for a specific timeframe; current month, for example, and I'm not talking about the last 30 days, but the metrics for that user since the first of the month. I came up with a solution, that consisted on pulling all the user messages for the specific timeframe and then count each kudos and solutions. But it means processing a lot of messages and the page takes a while to load (around 1 minute), so I was wondering if there's a way to pull this information directly from the community using an API call. Thanks!fuenteso8 years agoLeader130Views1like2CommentsChange page name
Hi, Just curious, I'vecloned the blogpage on our Community to use for a news section. Only trouble is when I'm setting up theclass to highlight the correct section in the navigation menu both pages are underlined as they both have the same page name. Is there a way of setting the page name on the new page to something different? Or maybe another way around setting the rules to identify the right page in the navigation? Any tips appreciated as I've been scratching my head on this one for a bit too long! Thanks, KevKev_B8 years agoAdvisor88Views0likes2CommentsCustom Endpoint: CRUD with API v2 Support?
Is there CRUD support with API V2 in custom endpoints? I get that you can do a LiQL search using API v2, but can you also use API V2 to create, update, and/or delete? Specifically I would like to reproduce the HTTP PUT request in the endpoint to update a user's profile data: http://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv2&collection=users#action-update This would help me condense external API calls when updating user information. Thanks!112Views1like1CommentDuplicate plugin folder creation issue
Just startedusing Lithium and I've successfully created a Skin and got the Sass compilation workingwith LiveReload. But... I'm confused about the file structure in my project. In my project I have the following folder that relate to skins/Sass: root/coreplugin/res/.. root/plugin/res/.. root/res/.. It's my understanding thatthe coreplugin files are from Studio and not to be edited. When I edit the Sass files under root/res/.. the Sass compiles and updates my webpage. But what is the root/plugin folder for? It seems to be duplicate files. Is one folder for working files where the other are compiled for deployment after running li package-plugin? A bit confused by the duplicate file structures. Thanks for the clarification!Solvedttadej8 years agoAdvisor125Views1like2CommentsAPI for User sorting on bases of number of posts
Hi I am working on Custom Search using API v1 and v2. I did not find any api to sort users on bases of number of posts. As I can sort users on bases of login and registration data like: <#assign sorted_data=rest("2.0", "/search?q=" + "select registration_data from users order by registration_data.registration_time DESC"?url).data.items />" But how can it be possible in case of sort bynumber of post or sort by rank ???84Views0likes0CommentsUser login issue from third-party android mobile app
Hello, We are developing separate Android Mobile app for a Lithium community. The community has openID SSO integration with other host. We have authentication steps included in our mobile app, we are able to get sso_id of community user. We need help to authenticate the sso_id in community and login that user. How can we login a user into community from our third party android app? Is there any API? If anyone has worked on the separatemobile app for a community, could you please guide? Any pointers/suggestions are welcome. Thanks, Vaishnavivaishnavi8 years agoExpert128Views0likes1CommentHow to Create an API Question/Search Box
Hello! I am trying to create a search widget for our company homepage that will allow the visitors to our site to ask a question and search the community at the same time. I know this is a REST API call, but I am just wondering if anybody can point me in the right direction. I am sure that somebody else has created a box like this before, and I hoping that somebody can point me to a code example. I have uploaded an image to show the kind of functionality that we were looking for...Solvedavanvlack8 years agoGuide545Views0likes7CommentsHow many BACs does a search query generate?
How many BACs does a search query generate via the interface for displaying search results page?RamzyH8 years agoLithium Alumni (Retired)58Views0likes0CommentsHow to check if a user has permission to read a board
Right now there is a method that checks if the user has a permission on the current node,"coreNode.permissions.hasPermission("PROPERTY")" I wonder if there is any way that I can check the permissions on some other node. My current use case for this is to create a menu. If a user has permission to read a board, the board should be included in the menu. If not, it should be omitted. I tried getting the node objectand passing it like "THISNODE.permissions.hasPermission("PROPERTY")" but no luck. Maybe there is some other way? Or maybe im using it wrong/syntax error.129Views0likes1CommentIs there a REST API call to get the groups which loggedin user is a member of?
Hi, I am trying to use the REST API to create a page which lists the groups either a user is part of or the groups which are open. Can someone please help? - Vishalvishal_sharma8 years agoContributor77Views0likes0Comments- b_poplin8 years agoExpert424Views1like7Comments
Custom Pages Mobile Version
I want to create a mobile version of a custom page with thefollowing node for example'/t5/custom/page/page-id/Custom_Page_Name'. I couldn't find anything inside the documentation to achieve this. I thought the solution is similar to this one https://community.lithium.com/t5/Developers-Discussion/Mobile-Custom-Pages/m-p/115391/highlight/true#M4265but it isn't. I created a 'MobileCustom_Page_Name' quilt and uploaded it with the sdk but it isn't visible in the admin areaand when I check the page on a mobile device, it still shows the desktop version with the same body class. I also created the page inside studio like described in nathans post but without any difference. So my question is, is it possible to create a mobile version of a custom page and if yes, how?sebastian8 years agoHelper175Views0likes3CommentsGet related discussion while posting new message.
Hi, Currently, while posting new message we get related topics in dropdown as shown below : Suppose, I want related discussions on PostPage with detailed information at the bottom of page as shown below : Is there any OOB component for the same which I have to place after editor ? Please let me know your response. Thanks, Vishwajeet.100Views0likes2CommentsUsing Quick Reply outside ForumMessage
Hi, has anybody tried and successfully used quick-reply-button and quick-reply outside the default location of Forum Message? I already tested just placing these in a custom location and obviously they do not work directly so maybe there's some little hack which for this? Cheers, .Mmiikka8 years agoMaven154Views0likes4CommentsUpdate user permissions for nodes
I found a 2 year old topic here which states that Lithium does not provide a way to get permissions via API. So I assume there's no way to update permissions either, but I want to confirm. Our use case is that we have ~1000 nodes which we need to update the default user permissions for. We can't update it at the community node, because the nodes aren't using the defaults, they were changed to explicit deny. It will take a lot to go through this may nodes, so we're hoping to find a way to automate it. Thanks!lilim8 years agoBoss57Views0likes0CommentsAPI v2 outbox query is missing the recipients field
When trying to list a user's sent Private Messages using API v2, I can't explicitly include "recipients" as a field in the query. I need to query "*" and then it does become available for use. E.g. instead of querying SELECT id,recipients FROM outbox_messages WHERE .. I'm forced to SELECT * FROM outbox_messages WHERE .. If I SELECT *, I can <#list recipients and query recipients.items. User error, bug or unfinished feature?78Views0likes0CommentsEndPoint URL Customization
When I'm trying to create an endpoint in studio, I'm getting endpoint url which was generated automatically. For example If I'm creating an endpoint named Login, I'm getting the url something like: "baseUrl/communityName/plugins/custom/..../login". I'm giving this url to third parties and this looks wired for them because I'm giving the url for some Login Page so, they may always think that the url should looks like: "baseUrl/login". So, how can Icustomize End point URL to a generalisedurl instead of Lithium generated URL. Thanksbhagavan8 years agoContributor131Views0likes3CommentsSDK: bootstrap_base no such file or directory
Hi, I just installed the lithium sdk. export-studio-plugin, submit-plugin and so on works as expected. I can modify CSS and custom components local, after submit to stage I can see the changes. But when I try to compile sass with serve-sass than I got an error. Can someone help by this message? The folder "other" dose not exist in filesystem. [16:05:35] Error: ENOENT: no such file or directory, stat '/path/to/sdk/projecte/coreplugin/other/res/skins/bootstrap_base' at Error (native) at Object.fs.statSync (fs.js:844:18) at findBaseDirForSkin (/Users/username/.npm-packages/lib/node_modules/lithium-sdk/lib/skin.js:188:12) at Skin.getParent (/Users/username/.npm-packages/lib/node_modules/lithium-sdk/lib/skin.js:291:39) at /Users/username/.npm-packages/lib/node_modules/lithium-sdk/lib/skin.js:328:29 at Skin.getAttrib (/Users/username/.npm-packages/lib/node_modules/lithium-sdk/lib/skin.js:206:24) at Skin.isResponsive (/Users/username/.npm-packages/lib/node_modules/lithium-sdk/lib/skin.js:324:14) at /Users/username/.npm-packages/lib/node_modules/lithium-sdk/lib/skin.js:85:19 at Array.filter (native) at getLocalResponsiveSkins (/Users/username/.npm-packages/lib/node_modules/lithium-sdk/lib/skin.js:84:8) Thanks149Views1like2Comments