Bulk data api - How to get Conversation title instead of their replies
Hi, I am new to Lithium Community. In Bulk Api responses, I am looking forconversation.title without their replies. I can see same conversation title appear with different Visit.id, Visitor.Id and with other some changes. Which is the actual conversation in the response and how to filter it? [20] => Array ( [document.id] => visits.visit-summary_SESSION_xxxxxxxxxxxxxxxxxx [action.duration] => 0 [board.uid] => xxxx [board.title] => xxxxxxxxxxxxxxxx [community_app] => xxxxxxxxxxx [conversation.uid] => xxxxxxxxxxxxxxx [conversation.title] => xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx [node.ancestor_path] => /x/x/xxx/ [visit.id] => xxxxxxxxxxxxxxxx [visitor.id] => xxxxxxxxxxxxx [user.uid] => -x [user.login] => xxxxxxxxxxxxxxx [request.url.host] => xxxxxxxxxxxxxxxxxxxxxxx [request.headers.user_agent] => xxxxx [request.headers.referrer.url] => Array ( [0] => xxxxx ) [request.headers.referrer.host] => Array ( [0] => xxxx ) [request.device] => xxxx [event.time.ms] => xxxx [action.key] => visits.visit-summary [request.geo.city] => xxxxxxxxxxxxxxxxxxx [request.geo.country_code] => xxxx [request.geo.country] => xxxxxxxxxx [request.geo.geohash] => xxxxxxxxxxxxxxxxx [request.geo.postal] => xxxxx [request.geo.region] => xxxxxxxxx [request.geo.timezone] => -xxxxxxxxxx [request.geo.latitude] => xx.xxxx [request.geo.longitude] => -xx.xxxx ) Thanks.336Views0likes13CommentsTurn off the "You accepted a reply to a topic you are following as a solution!" email
Hello! I have a pet peeve against the "You accepted a reply to a topic you are following as a solution!" email. Since you did it yourself, you don't need an email about it! Also, the title is really cumbersome. I don't know how to adjust the email text / logic in the "Accepted Solution Notification" email (https://YOUR-STAGING-URL/t5/bizapps/bizappspage/tab/community%3Astudio%3Atext-editor%3Aemail?email=solution_to_question&lang=en) to completely get rid of this email, though. Is it possible? Thanks!Solved174Views0likes4CommentsLithium bulk data API - To add Json header
Hi, I have tried to add JSON header in the CURL request to get the response in JSON format instead CSV. It is not accepting. curl_setopt($ch, CURLOPT_HTTPHEADER, array("client-id: ***************************","Accept: application/json")); Please suggest. Thanks.169Views1like5CommentsREST API V1 get a list of items?
New to V1. What's the proper way to get, for example, a list of boards, or a list of users, or what have you? In V2 / LiQL, it'd beSELECT id FROM boards (for example) http://community.mysite.com/restapi/vc/boards/ // doesn't work, just shows one (discussions)Inactive User7 years ago176Views0likes5CommentsWhere can I enable debug messages?
Hi, how can I use the following code snippet? <#if utils.logs.name.common_init.debugEnabled> ${utils.logs.name.common_init.debug("my debug message")} </#if> I implemented it to debug something within thepage initializationbut I don't see any change at all after updating the stage environment. Where can I enable the debug messages? https://freemarker-docs-portal.lithium.com/refer/contextObjects#utilsForLogging Thanks in advance micha80micha807 years agoExpert152Views0likes1CommentHow to Disable displaying Description of a Board on the community/category page
Hi All, We are using Lithium OOB component "forums.widget.board-browser-list", which by default showing the description of the respective board. But I don't want to display the description, Is there any setting which can disable thedisplay of the description other than using CSS to make it display none? Thanks, Srujana Satya Datlasatya7 years agoExpert156Views0likes3CommentsHow to get path parameter of URL inside component?
In reply to a private message page, I want to get the message ID. How can I get that number? If there is no freemarkerObject has this info, then I can extract the number 25 from URLhttps://community.lithium.com/t5/notes/composepage/note-id/25. Is there any way to get the ID something like http.request.parameters.name.get("message-subject","") instead of taking the URL and split it.Solved275Views0likes2CommentsHow do I get message id from Article Editor Page?
Looking to get a unique id for the TKB article editor page, i.e., the bolded id /t5/tkb/articleeditorpage/tkb-id/(node-name)/message-uid/749 without getting the http.request.url, which would be a hack. However, all of these fail: env.context.message.uniqueId env.context.message.id page.context.message.id / uniqueId page.context.thread.... etc. What's thebest way to get this ID without using http.request.url?Inactive User7 years ago171Views0likes3CommentsResponsive Skin overriding a class in the parent css.
Changing style definitions As per Lithium Responsive developer guide we followed the steps as specified in "Create a new skin" and "Changing style definitions" section's for creating a new skin and override a class existed in the parent SCSS file in the _style.scss of the new skin and saved the changes in the studio, but the changes are not reflecting on the Community. Any suggestions for the above issue is appreciated. Thanks Srinivas Kiran P126Views0likes3CommentsThe message you are trying to access is not available
I create two open groups.But whenever try to access post as anonymous it shows The message you are trying to access is not available. Same post is available for login user. The url for login user and anonymous are same still for anonymous user it shows The message you are trying to access is not available. In our community there are other 5 open groups which works fine but problem occurs only in three groups.Solved147Views0likes3CommentsUser profile page feed
Hello everyone, I'm trying to achieve something quite difficult for my current knowledge in lithium so a little help to build the rest query will by very appreciated. When visiting a user profile page, I want to display a feed of the last 10 activities of that user including: - Replied to a message or comment (display the user comment) - Kudoed a message or comment (display thekudoed comment) - Marked a comment as solution (display the solution comment) order those activity by date (most recent on top)Solvedfrardouin7 years agoGuide225Views0likes3CommentsFetch Group avatar URL via API
The docs are here:https://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv1&leaf-id=Group.avatar#Group.avatar But it only returns 1 URL, mine is returning ../size/profile I'd like all the available URLs.. my current workaround is to do a string replace for '/profile' with '/print' for example to get a different size. I don't any v2 calls for this type of request. Any help is appreciated, thanksttadej7 years agoAdvisor92Views1like1CommentAdding last edited date to Blog Article Page quilt
I am trying to add last edited field toBlog Article Page quilt usingedit-date andpost-date-last-edited components mentioned herebut so far unsuccessfully. Desired componentwas added in XML editor like<component id="post-date-last-edited"/>, but it didn't produce any result (as well as using alternative IDs mentioned in the documentation). What would be the correct way to add last edited date to Blog Article Page quilt? Alternatively, maybe there are some suggestions how to debug further to understand the cause for it not working. Thank you very much for your support!Solvedarthur_7 years agoGuide231Views0likes4CommentsSDK and HTTPS
Hi, is anybody using the SDK with a stage running on HTTPS? I upgraded to the v. 1.2.1 of the SDK and tried configuring the local CSS instance to be served over HTTPS instead of HTTP. But even if I put HTTPS inresponsive.conf.json, the server always seems to start over HTTP. This obviously triggers a warning in the browser and when you allow the insecure content to be shown, the page looks mostly okay. But when taking a closer look I can see that some font files are triggering errors like this: GET http://localhost:9000/html/assets/fonts/fontawesome-webfont.woff2?v=4.3.0 And I can see that theelements using FontAwesome are broken. There's also a good bunch of warnings of insecure content obviously but those assets seem to be loaded still. Any pointers would be welcome. Cheers, .Mmiikka7 years agoMaven458Views3likes9CommentsGetting private message using ID is not working in LiQL
I have received total 17 messages in the community and I want to get a message with ID 26. When I run below LiQL, it's returning all 17 messages. Not the one with the specified ID. select * from inbox_notes where id='26' AmI doing anything wrong or it's an issue in Lithium?Solved110Views0likes1CommentSign-off redirection
Hi, We are facing the issue of once the member signed-off and redirected. As we enabled SSO, and we are planning to redirect to the community homepage once the member clicked sing-off link. So we have configured in the settings/auth/securityCheck?action=logoutBounce&sendTo=<Community-Homepage-URL> The above configuration is working fine, and it redirect to community homepage. But the issue is member not getting signed-off from the site, and still it's showing the member is signed-in. So please provide your suggestion to resolve the issue.jaikumar17 years agoMentor131Views0likes3CommentsAutomatic group membership upon new community account creation
If I am not a community member visiting a groups page, when I go to sign up for a community account, is it possible to become a community member AND a member of the group at the same time? Essentially I'm trying to eliminatethe step of "joining a group" after becoming a community member, saving the user a click!104Views1like2CommentsCommunity API V1 documentation in PDF Form
Hi all, I need to give a 3rd party who is looking to build a connection to our community access to the API Documentation. Is there anyway to get a PDF copy or do I just have to get them added with the access I have here on the Lithosphe... I mean community!71Views0likes1CommentQuestion about "Make REST API calls with read access" permission
Hi all, This is probably an obvious question, but I'd just like to get a quick confirmation... If I set the "Make REST API calls with read access" to GRANT for a role at the root node of my community, then does that mean ALL contents within the community is readable to that role with no way to DENY at any level? There are read access permissions (such as, "See categories", "Read posts", and "See discussions style boards") at the category/subcategory levels throughout the community, and I'd like to know if an explicit DENY on any of them would impact the read access of my API user. Thanks!syaguma7 years agoLeader175Views0likes3CommentsChanging custom avatar
Hi, Is there a way to change a custom avatar set that I've used, so that every user has the corresponding new image? From what I've seen in this threadhttps://community.lithium.com/t5/Developer-Discussion/How-to-replace-default-set-of-avatars/m-p/277884 this can be done only by professional services but I want to double check. Thanks in advance cheersSolved391Views0likes7CommentsQuery does not return data for all users
Why is this query only returning data for my userid and not all users? SELECT id, target, subscriber FROM subscriptions WHERE target.type = 'board' I've tried with rest and restadmin. Is this a simple permissions issue?Solvedtreystation7 years agoContributor169Views0likes3CommentsDelay loading a Component on a page until initial endpoint call has completed
We want to use an end point to contact Zendesk via API to then assign a role back into Lithium for a user. We want a component (Contact US) in the page to display different options based on that newly assigned role, but we currently have to reload the page to have it display the options. Is there a way to cause that component to wait without doing a whole page reload? We would like to wait to load the component until that endpoint has completed and then display the options in one complete experience. Curious if there are any ideas.hlio7 years agoMentor142Views0likes2CommentsOnline users per sub-community / category
Hi there I'm trying to get the online user count for a given sub-community / category instead of the community wide count. Is there a possibility to do this? Has anyone done something like this before? Thanks MorenoSolvedmfeltscher7 years agoExpert199Views0likes4CommentsXML and JSON with #List
Hi, Working on a project to list out new posts in the last day to increment GSA (google search appliance), but they need the results to be in specific XML format and layout for the crawler to crawl. I've been able to make up an endpoint a text/HTML and get the output HREF. <#assign datenow=.now?date?long> <#-- days 1, hours 24, minutes 60, seconds 60, ms 1000 --> <#assign daysinms = 1*24*60*60*1000> <#assign datediff= datenow - daysinms> <#assign x = rest("2.0","/search?q=" + "SELECT view_href, post_time, subject, board FROM messages WHERE replies.count(*)=0 AND depth=0 AND post_time > ${datediff} AND post_time < ${datenow} ORDER BY post_time ASC"?url) /> <#assign count= rest("2.0","/search?q=" + "SELECT count(*) FROM messages WHERE replies.count(*)=0 AND depth=0 AND post_time > ${datediff} AND post_time < ${datenow}"?url).data.count /> <#if count gt 0> <#list x.data.items as message > <a href="${message.view_href}">${message.subject}</a></br> </#list> <#else> No posts in last 24 hours </#if> I've reviewed the the knowledge base and got the examples to work, from the following article. https://community.lithium.com/t5/Developer-Knowledge-Base/Return-FreeMarker-objects-as-JSON-or-XML-strings/ta-p/184087, When I attempt to to try and make this into an XML output it fails,but am missing something. If I take out the 'list' section and put in text between the response success it displays. <#setting url_escaping_charset='UTF-8'> <#assign datenow = .now?date?long /> <#assign daysinms = 1*24*60*60*1000 /> <#assign datediff = datenow - daysinms /> <#assign count= rest("2.0","/search?q=" + "SELECT count(*) FROM messages WHERE replies.count(*)=0 AND depth=0 AND post_time > ${datediff} AND post_time < ${datenow}"?url).data.count /> <#assign x = rest("2.0","/search?q=" + "SELECT view_href, post_time, subject, board FROM messages WHERE replies.count(*)=0 AND depth=0 AND post_time > ${datediff} AND post_time < ${datenow} ORDER BY post_time ASC"?url) /> <?xml version="1.0" encoding="utf-8" standalone="yes"?> <#if count gt 0> <list x.data.items as message> <response status="success"> <message type="message" href="${message.view_href}"></message> </response> <#list> <#else> <response status="error"> <error code="c001"> <message>No posts in last 24 hours</message> </error> </response> </#if> The XML output should be something like the following, and list out all the URLs in the mime type from the list: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE gsafeed PUBLIC "-//Google//DTD GSA Feeds//EN"> <gsafeed> <header> <datasource>web</datasource> <feedtype>incremental</feedtype> </header> <group> <record mimetype="text/plain/" url="https://community.domain.com/t5/Adapters/FAQ-Help-me/m-p/1496618"/> <record mimetype="text/plain/" url="https://community.domain.com/t5/Adapters/No-internet-Troubleshooting/m-p/1496619"/> </group> </gsafeed> How can I go from what is working to an XML output? Appreciate the insight.Solvedtmarshall7 years agoAdvisor231Views0likes2Commentsgetting current status of an idea lis filtered by status
Hello everyone, I had to make a custom component which filter the idea exchange page by status and i want to add a link remove the filter, like in label. Example : my idea exhange page has this url http://mycommunity/path/to/idea-exchange when i filter by idea status it becomes :http://mycommunity/path/to/idea-exchange/status-key/status-key itried to use this snippet to catch the "status-key' value <#if http.request.parameters.name.status?? > <#assign currentStatus = http.request.parameters.name.status?html!"" /> </#if> <#if webuisupport.path.parameters.name.get("status-key")??> <#assign currentStatus = webuisupport.path.parameters.name.get("status-key").text!"" /> </#if> But it doesn't work Does anyone knows which value i should use thank you for your helpSolvedjferrandis7 years agoExpert190Views0likes2CommentsA conversation in pending doesn't close when resolved by Bot
Hello, When a conversation hand-off from a bot reaches lithium, and the conversation gets put into "Pending" because it is awaiting a response from the user, but then the conversation then is considered "resolved" by the bot, the conversation is stuck in the pending list and never closes. Is this a known issue, or is there a way to fix this? I should note that in my Account Admin settings, I do have "Conversation Handling when resolved by Bot" as set to "Close as resolved."finn-rod7 years agoHelper75Views0likes0CommentsHow to create restapi.session_key programatically without user password as parameter ?
Hi all, we have connected our own eIdP solution ( Lithium Professional Services extended the existing Lithium SSO plugin ) which works fine. The problem: As the user password is no longer stored in Lithium but in the eIdP, we cannot use the default API ( /restapi/vc/authentication/sessions/login) to create restapi.session_key in order to do API calls with the scope of the user. Always creating custom endpoints to create topics on behalf of the user is not the ideal world and not all API methods can handle stuff always on behalf of the user. As we have a custom SSO it is also not possible to use the default accesstoken concept of Lithium, whichis the corrrect solution to do API calls without having user password locally stored in Lithium. Solution idea: Our own eIdP is also using accesstoken based on JWT. The idea is to create a custom endpoint (similar to thedefault/restapi/vc/authentication/sessions/login), but instead of using the user.password parameter we would use the JWT token (which contains all relevant user information encrypted as JWT token) to get an valid user based restapi.session_key. Challenges and questions: - the first question to you guys is whether there is a API or li freemarker method to create restapi.session_key or what kind alternatives can be used ? - is there an already available freemarker library within Lithium to decrypt JWT token ? Thank you for your time and help in advance...STARFLEET7 years agoExpert125Views1like0CommentsThis widget could not be displayed.
I have a piece of code in custom widget. <#if !user.anonymous> <#assign userLanguage=restadmin("/users/id/${user.id?c}/profiles/name/language").value /> <#assign loginStatus="Yes"> <#assign userRank=restadmin('users/id/${user.id?c}/ranking').ranking.name /> <#assign userRolesRequest=restadmin('users/id/${user.id?c}/roles') /> <#if userRolesRequest.roles?? && userRolesRequest.roles?has_content> <#list userRolesRequest.roles.role as r> <#assign userRole+= r.name+":"/> </#list> <#assign userRole=userRole?substring(0,userRole?length-1)/> </#if> </#if> When user is not logged in(anonymous) or admin this is not giving any issue. But for Non admin users this is showing "widget could not be displayed". I have put down all condition checks still error is there , what might be the reason and i am unable to figure out where if i am missing something. Please suggest.Solved229Views0likes4CommentsBot puts Related Conversation in closed conversations
Hello, I'm having trouble using Lithium Response for bot purposes. We have the bot API set up correctly and it is communicating with Lithium back-end without issue. The issue is more with the lithium response page itself. Example: - A new user starts a conversation with our bot. It goes into the appropriate work queue. The user requests a bot handoff, and now the conversation is moved into the available work queue for bot handoff requests. The customer service associate on the back end addresses the issue, and closes the conversation as resolved (or, the user will terminate the bot conversation by triggering the Bot Resolved webhook.) The conversation either way is now labelled as, "Status: Closed, Resolved." The same usercomes back to our bot to ask an additional question. What we are seeing is one of several things: 1. The conversation gets put into the users's previously closed conversation, but not into the correct work queue indicating availability. 2. The new conversation is not appearing at all in lithium response, and we are getting the error "Lithium unable to find conversation" My guess is that these new conversations after being closed are getting stuck in the previously closed conversation and not appearing as new conversations that agents must address. Any help understanding the Lithium ResponseUI/UX would help greatly, because itour current settings are notintuitive to agents, or our customers are not able to get the help they need with our agents. Thanks! Sarahfinn-rod7 years agoHelper133Views1like1CommentStudio issue: The filename components/_latest_posts.scss contains invalid characters
Hi, I run into the issue when try to save a file recently. There is no edit since the last successful update. I also tried empty the file and save but it's still failing with the same message. I see other people hit thesimilar issue recently 2 week ago herehttps://community.lithium.com/t5/Online-Communities/Invalid-SCSS-Error/m-p/432462 However, there is no solution to this yet. Please advice how to fix this. QuangSolvedquang7 years agoContributor117Views0likes2CommentsCreating user through API not asking for terms of service when that user logs in for the first time
We are creating users via API and providing their username, SSO Id and email. But once the created user logs into the community via SSO, he is not prompted for accepting the "Terms of Service". Since it is his first login, we expect he accept the Terms of Service and then proceed. Kindly provide a solution for the same.kavithams7 years agoGuide176Views0likes4CommentsTop contributors
Hi, I just looking for a "Top contributors" widget, and which will list users who posted more number of questions with respect to the discussion board. As i identified few widgets in thestudio "tkb.widget.contributors-taplet" and "tkb.widget.top-contributors-taplet" and which not helpful for our implementation. So please guide me how to achieve this implementation.Solvedjaikumar17 years agoMentor282Views0likes3CommentsRecommendations Slim Mode in Custom Component
When I try to load the Recommendations into my custom component with the attribute mode set to slim. The slim mode is not picked up. I used the tag "<@component id="recommendations.widget.recommended-content-taplet" mode="slim" />" to render the component. When I add the Recommendations component to a page next to my custom component and set the attribute mode to slim on this component. The Recommendations component in the custom component changes to slim mode but the Recommendations component that we added seperatly to the page remains in wide mode. Is there another way to force my Recommendations component in the custom component to render in slim mode?Solved421Views0likes8CommentsSum kudos for all messages in a specific board using Community API V2
I imagine there must be a way to do this. The query that I want to get to work would look as follows: SELECT message.id, user.email, kudos.sum(weight) FROM messages WHERE board.id = 'ABC' And what I expect back would be the topic message ID, email address of the userthat created the topicmessage and the total kudos for the topic message. This query works for me without kudos.sum(weight), but with it I receive an error that my query is invalid. The documentation for the message collection, below, clearly contains examples that show kudos.sum(weight) should work. https://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv2&collection=messages Specifically, from the "Functions" section: SELECT kudos.sum(weight) FROM messages What am I doing wrong here?SolvedKilfaxi7 years agoContributor125Views0likes1CommentAble to change Category node list icons more visual?
Hi there, Am currentlya UX in a community with many many communities within each other. Some are communities and some are areas of communities and would like to show a visual difference, so I was wondering if anyone knows how to change the icons, make the different? Thank you :) MarianneSolvedMarianne807 years agoMentor218Views0likes5CommentsReply on message failing
Hi team, I am trying to reply to a topic present in Q&A board. Here are the API details: Method : POST Header: Content-Type : multipart/form-data; boundary=ttO7xyWXN8H2NgoNDgScicCBXbMZoLdb0Z Enpoint: http://arrivalpreprod.stage.lithium.com/restapi/vc/messages/id/11585/reply?restapi.session_key=<session-id>&restapi.response_format=json&restapi.response_style=view&restapi.response_format=json&restapi.response_style=view&restapi.response_format=json&restapi.response_style=view&restapi.response_format=json&restapi.response_style=view Form Parameters: (key - Value) message.subject - Re: Post 2 message.body - <p>Hello metestigg Q&A :D</p> message.is_draft - false qanda.is_answer - true Response: {"response":{"status":"error","error":{"code":303,"message":"Permission Denied"}}} if we do not pass theqanda.is_answer parameter the API call is working fine. If we remove thegaganjain7 years agoContributor99Views2likes0CommentsRender post differently if it's from an admin in a post listing (ex:add a class or more content)
I have a listing of posts and I want to check if the post author is an admin. I just want to add a css class and a image icon in that case. I'm still a little bit lost in the documentation. thanks you!Solvedfrardouin7 years agoGuide87Views0likes1CommentHow to get all the roles created for a groups?
I have created Role-1, Role-2, Role-3 for a group with default role as Role-1. When a user is Inviting,They can invite to any of these 3 roles. When a user comes to community, I want to get the role in which he got invited. Is there any API provides such info? If not, then is there any way to get users with roles in that specific groups? When I ran https://community.lithium.com/restapi/vc/groups/id/ggg/?restapi.response_format=json It gives the ID of default role. Not all the roles present for that group. How to get this detail as well?Solved133Views0likes1CommentDevs - How do you provide tools to mods to tackle spam?
I am curious as to how other Lithium Communities deal with spammers from a development perspective. Do you create custom tools to identify and ban spammers? How about modules that have the 'unmoderated' flag attached to a message until the mod had come along and read the post? I have had to do a few things on our community to help and I want to bolster it further. The only problem is.. I don't know what else I can do. From an admin point of view: We have the spam filter switched on and mods check the spam folder each day - this is good but sometimes legit posts get caught up in it. I have the ranking system linked to some low level roles that unlock certain things as they rank up (like private messages) We have known spammer email domains added to the ban list with a wildcard. We have enabled the private messages being sent per second set so a user can't send 100 PMs at once with spam. And from a development point of view: I have got a js ajax lookup for IP addresses that will inject the country of origin on any users post and profile I have created a panel that displays all users registered in the last 24 hours that also shows the IP and lookup ajax stuff from before. When a user is banned they are labelled in this list so mods know that they have been dealt with What methods do you adopt to stop the spammers in your community? I only ask because recently we have had a huge influx of spam accounts being created in the last few days. The total amount of spam accounts that were created was 127 and I am trying to come up with ideas for tools to detect such activity and put a stop to it before any damage is done (especially now that our ranking system is currently not working which worked great at the time).jaread837 years agoChampion214Views0likes5Commentshow to configure The Community Plugin software development kit (SDK) with eclipse IDE.
The Community Plugin SDK. The Community Plugin software development kit (SDK) enables developers to create customization in their preferred IDE or text editor (e.g. Eclipse, IntelliJ, Sublime) and to submit their customization to the stage server directly from the command line. Please provide the steps how can we integrate SDK witheclipse IDE.Solved249Views1like5CommentsGoogle Data Studio connector for LSI?
Has anyone explored bringing in LSI data into Google Data Studio? I currently update a Google spreadsheet each week based on LSI, and I just used that spreadsheet to make a nice dashboard in Data Studio. It would be SO nice if I didn't have to update the Google spreadsheet manually. LMK if you have any ideas on how to do this!Solved372Views3likes8CommentsHow to display avatar and login name of the current logged user in a custom document
Hi, I'm new to lithium and I'm try to get my head around something. I'm trying to understand how to query the info of the current user and display it in a freemarker custom component (it's for a custom top menu). I need the first name, last name, login name and avatar. But it's more how to build the query to get the user of the current session. Thanks a lot.Solvedfrardouin7 years agoGuide164Views0likes2CommentsChallenges with Endpoint, Component, and External REST API Request and Variable Declaration
Hello Community! I'm going to do my best to explain my current challenge. First, I'll start with the objective.... We have an external data which stores information about users. The primary key is the user's email address which we can obtain easily by calling the Lithium API endpoint (user.email). Our objective is to leverage specific attributes obtained from the external data store to display information w/n a component. For example, we might mark a customer for 'Enhanced Support' in our external data source and need to show the related support options to them within a custom component. Now the problem... There are various variations of these variables, so using a template (.tmpl) doesn't seem to meet our use case because within these you cannot define an if/then/else or case statement. However, I also can't find how to set variables server-side from within the endpoint (ftl)that make these available to be called from the custom component. I've been able to complete declaring the variables client-side with JS, but, of course, that can't be accessed server-side. I hope this makes sense...now, does anyone have any thoughts on how to workaround/solve this problem?bpliskow7 years agoAdept183Views0likes4Comments