Freemarker error when webuisupport to request label
Hey there, the last days I ran into a strange issue. I set up a new Blog and some pre-defined labels to it. Well, as you can imagine, there is no content at this point. So, when I go to the BlogPage quilt (with "label-name" in path), my Freemarker code failed and returns an error: Java method "lithium.coreapi.webui.template.models.NamedValueByNameTemplateModel.get(String)" threw an exception when invoked on lithium.coreapi.webui.template.models.NamedValueByNameTemplateModel object "lithium.coreapi.webui.template.models.NamedValueByNameTemplateModel@50b58b98"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign categoryFilter = webuisupport... [in template "rexroth-hero" at line 31, column 5] ---- The LOC that raises the error, makes use of the webuisupport context object: <#assign labelSelected = webuisupport.path.parameters.name.get("label-name").text /> I already tried to split up my variables a bit more (adding some checks and so on), but the result is still the same. The issue only occurs if there are no messages with the requested label are available. Does anyone of run into the same issue and has an idea how to solve this without setting hard coded labels? Thanks and best regards, ChristianSolvedcike6 years agoChampion195Views0likes6CommentsCustomizing build process with Gulp
Hello, I like to add an additional gulp task to the current build process. Specifically, it would be handy to add an autoprefixer such as: https://github.com/postcss/autoprefixer Is there a suggested method for customizing the build process short of forking the lithium-sdk? Alternatively, any guidance on how other communities handle vendor prefixes would also be appreciated! Thanks91Views1like1CommentNeed custom component to display user's location in Profile Hero
I want to display a user's location in the Profile Hero. I don't see where there is a stock component to display this information, which means I need to create a custom component. I cannot find an example of anything here, or in the KB that would be a good example to work from. I suspect I need something like this: <#assign userLOC=rest( "2.0", "/search?q=" + "SELECT location from users where id = (ID NUM of PROFILE I AM VIEWING) /> <div> $userLOC </div> What do I need to finish that WHERE clause? Can anyone point me to a repository of examples? Regards, DennisSolved345Views0likes8CommentsAPI wildcard?
What I want is to do something like this to return all users with a specific email domain . Obviously this * doesn't work, but it gives you the idea of what I'm looking for. Is there a way to do this with an API call? Some kind of wildcard? https://community.softwaregrp.com/restapi/vc/users/email/*.microfocus.comSolved140Views0likes3CommentsRedirect User to Custom Page instead of Access Denied
Hi, I have a requirement, I have toshow user a custom page or message when they try to access any category which they do not have permission. Please let me know is it possible to redirect to custom page or update Access Denied message. Thanks,150Views2likes3CommentsUnable to get authorization code using V2 oauth2
I'm trying to call Community API v2 in order to: 1. Get an authorization code 2. Which can be used to request access tokens 3. Later be able to make request to v2 API passing the access token as Bearer. All thisfollowing the instructions in theOAuth 2.0 authorization grant flowdocument. Instructions seems pretty straightforward: 1. Make a GET call to the authorize endpoint (I'm using Paw REST client). Making notice that I'm, including both header and url parameter with the client ID which I already created atcommunity admin. I didn't included a redirect url, because I don't need it, this is intended to be a Backendcall. GET /auth/oauth2/authorize?client_id=COMPANY-CLIENT-ID%3D%3D&response_type=code HTTP/1.1 client-id: COMPANY-CLIENT-ID== Host: www.stg.company.com Connection: close User-Agent: Paw/3.1.4 (Macintosh; OS X/10.12.6) GCDHTTPRequest 2. After this call I should get in return as the doctextually says: After you call the authorization endpoint, redirect the member to your client application with the authorization code and tenant ID returned with the response to complete the request. At this point my request does not return what isexpected, instead I'm getting 302 Found response, with the below headers. HTTP/1.1 302 Found Server: Apache X-Frame-Options: SAMEORIGIN Set-Cookie: LiSESSIONID=SOME-SESSION_ID; Path=/; Secure; HttpOnly Set-Cookie: LithiumVisitor=~SOME_COOKIE~VALUE..; Expires=Mon, 13-Sep-2027 21:30:07 GMT; Path=/; HttpOnly Location: https://www.stg.company.com/?response_type=code&redirect_uri=https%3A%2F%2Fwww.stg.company.com%2F%2F&client_id=6XmMCgSBjYo%2F8boYwsEdICuK3O%2FvA5U6Huf%2FjE2kNxw%3D Via: 1.1 varnish Fastly-Debug-Digest: 0e18909eb3f76f7dad7f8262a3c3ed27d2e751a77b5cdad6f72b85e51b13fdb5 Strict-Transport-Security: 608400 Content-Length: 0 Accept-Ranges: bytes Date: Fri, 15 Sep 2017 21:30:07 GMT Via: 1.1 varnish Age: 0 Connection: close X-Served-By: cache-sjc3125-SJC, cache-dfw18639-DFW X-Cache: MISS, MISS X-Cache-Hits: 0, 0 X-Timer: S1505511008.567881,VS0,VE62 Access-Control-Allow-Origin: https://www.stg.company.net So I'm not even able completethis first step successfully. Any suggestion about what am I missing?486Views0likes9CommentsLogo in navigation
I have a top navigation that has our logo and I need to update that logo. Would I do that in studioSolved170Views0likes2CommentsVideos embedded/uploaded to Lithium- can you save them?
I have not been able to find much information on this. Is it possible for any Videos that have been uploaded to lithium to be downloaded/saved? We are migrating our KB, and need to get access to the videos that are uploaded to some articles. Any help would be greatly appreciated.jdelio6 years agoHelper129Views0likes4CommentsCookie banner doesn't show up
Hi folks. Just looking into the OOB cookie banner as mentioned in 18.6, but it's not showing up. Our community has been customized, so I'm wondering if perhaps I'm just missing the component in the header. Would anyone mind sharing what it's called? :)86Views0likes1CommentOverlapping label links
Hey everyone! possibly a basic question here, but im just at a loss as to how to resolve. Ive got a "labels" panel that contains 4 links/ buttons for categories. Ive aligned the panel to its desired location but now the links/ buttons overlap. I found the CSS under labels.scss which seems to alter the label links but any change i make applies to all, and they all overlap each other in the labels panel. My hypothesis is that we have .label-link { the css } , but nothing specifying which link, or separating each link. Im unsure how to obtain that in studio. Ive tried everything i know in the CSS as far as display:, align:, list-style-type:, margins, padding, position, etc. Every CSS alteration I attempt applies to every label link which is great, but nothing ever separates the label links and they remain overlapping. Open to any suggestions for separating label links or buttons within a panel. Thank you in advance!Ringchamp6 years agoGuide68Views0likes1CommentField 'title' does not exist for object 'boards' as a sort constraint
I have tried to get an ordered list of our knowledge base boards with "SELECT id, title FROM boards WHERE root_category.id='knowledgebase' order by title", but I receive the error in the subject line. If I remove "order by title" I get a list of five boards (Yay) but not in alphabetical order (Grr). Who doesn't want to sort things by title (alphabetically) for crying out loud? Why can't I do this? This is the weirdest constraint I have ever heard of. I've been working with databases for more than 30 years and never encountered such a limitation. Does anyone have a work-around because this isREALLY annoying!? Thanks in advance ... PaulSolvedPAULEM6 years agoAdvisor159Views0likes2CommentsSSO Token does not work
Hello, I try to generate SSO token via php library. I already got token but it doesn't work. But I tried to getlithiumSSOfrom cookie by inspect browser and try to get session key via API. It's work. How different between these token? Why I cannot use token from library ? What am wrong? Thank you in advanced.127Views0likes2CommentsConditional based on rank
I'm trying to have a sub-nav with line items dependent on whether a user has the rank of administrator. I've evaluated a LiQL query that evaluates correctly on the homepage, but when you navigate to any other page, the query does not successfully work. <#attempt> <#assign userSearch= user.id /> <#assign rolesQuery= "SELECT rank FROM users WHERE id='${userSearch}'" /> <#assign userData= rest("2.0","/search?q=" + rolesQuery?url) /> <#assign role = userData.data.items[0].rank.simple_criteria.role.id /> <#if role == 't:Administrator'> <#assign navItems = [blog, groups, training, events, faq] /> </#if> <#recover> <#assign navItems = [groups, training, events, faq] /> </#attempt> When I log in, the blog appears in the sub-nav, and then when I go to any page, the subnav omit's the blog item. I've created variables just to see if the query is even working and get "success" on the home page and nothing on any other page. I am new to LiQL and Freemarker so I don't really understand how a query can work on some pages but not others. Any help would be much appreciatedSolvedjcracraft6 years agoGuide157Views0likes3CommentsAPI v2 Problem with ORDER BY multiple fields
SuzieHThe docs@https://lithosphere.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv2&v2.main=usingliql#orderBy say In the ORDER BY block, you can order your query results. Multiple fields (separated by commas) are supported with ORDER BY as of 17.2. Therefore I would assume a query like SELECT id, short_title, view_href, depth, position FROM categories WHERE depth <= 2 AND id IN('<catid_1>', '<catid_2>', '<catid_n>') ORDER BY depth, position ASC should return a collection of categories ordered by a) depth within the community structure (e.g. top level categories first) and b) their position within the community structure on the same level, but I get an error when executing that: { "status" : "error", "message" : "invalid query syntax for SELECT id,short_title,view_href,depth,position FROM categories WHERE depth <= 2 AND id IN (<catid-list>) ORDER BY depth DEFAULT,position ASC", "data" : { "type" : "error_data", "code" : 604, "developer_message" : "You must explicitly set a sort order for ORDER BY clause on field: 'depth'. Order can be 'ASC' or 'DESC' in: SELECT id,short_title,view_href,depth,position FROM categories WHERE depth <= 2 AND id IN (<catid-list>) ORDER BY depth DEFAULT,position ASC", "more_info" : "" }, "metadata" : { } } the community I'm trying that is on v18.6. Any idea what I'm doing wrong here? EDIT: The more general issue here is that the position is not calculated on a per-level (referring to the community structure in Admin) basis, e.g. top level categories in my case have a position of 5 and higher, while the child categories of each top category start with a position of 0 and up, I therefore need a way to sort the result in a hierarchical way, e.g. top level categories first, then child categories, each ordered by their position within the structure. EDIT2: The workaround until this is clarified is to manually sort the response items with FreeMarker, e.g. the second ORDER BY field is used in a ?sort_by built-in: <#assign response = response.data.items?sort_by('depth') /> which preserves the ordering returned by the API (here by position) and then applies the sorting based on the field provided to ?sort_bySolvedluk6 years agoBoss204Views0likes3CommentsDo date constraints work with API v1?
Hi, I'm using API v1 for the first time to pull up some user stats, and I'm trying to constrain these to a date range. I've tried using ?date_start-YYYY-MM-DD&date_end-YYYY-MM-DD at the end of the query URL, but this doesn't seem to work in sorting the results. The one query I'm using isusers/id/{user-id}/posts. Just wondering if anybody has any experience, as the only stuff I can find about date_start / end is referring to using metrics.Kev_B7 years agoAdvisor159Views0likes5Commentsfacebook authentication rest api
Hello, In reply message api or reply private message, They have to use session key in api that I can get from api below. https://community.dtac.co.th/restapi/vc/authentication/sessions/login?user.login=<username>&user.password=<password> But my community open feature to allow user register with their Facebook. How can I authenticate with facebook user for get session key? Thank you in advancedSolved200Views0likes4CommentsAdminFaqPage - can I change the layout/quilt?
I would like to change the page layout for theAdminFaqPage page but I can't find this page in the Pages list. Is it called something else or is it beyond my reach? I can do some stuff with CSS that'll do the job but it would be easier and more consistent if I could simply apply our custom page layout to this page. Iget to this page via the link in the Community Dashboard widget. Anyone know? Thanks in advance ...SolvedPAULEM7 years agoAdvisor174Views0likes3CommentsThere are no reply inbox api?
Hello, I try to using lithium api. I found note path at Community V1 as below to get private message from user. https://community.dtac.co.th/restapi/vc/users/id/<user_id>/mailbox/notes But I cannot find path to reply specify note id. Are there any solutions to reply the note?Solved103Views0likes3Commentsiframe not being displayed
I am an admin and am trying to use an iframe in the Studio to display a company news ticker. I have used iframes in the studio before and was successful. This one however will not work. Here is my code: <iframe width="820" height="150" style="border:none;" src="http://output14.rssinclude.com/output?type=iframe&id=1027440&hash=aad6b6a1ce9b1503a73e103e0b3330e6"></iframe> Here is the direct link to the content:http://output14.rssinclude.com/output?type=iframe&id=1027440&hash=aad6b6a1ce9b1503a73e103e0b3330e6 Here is a link to it working in a fiddle:http://jsfiddle.net/g80s62pa/ I have tried using custom components and adding it to the wrapper page header but still it wont show up. It shows in my code but wont display...see image below. Any help woud be appreshiated.Solved320Views1like5CommentsPulling Community Badges / Stats / Ranks into our existing directory
Hi all, Our business has an agency partner program, our full directory of HubSpot partners can be found here:https://www.hubspot.com/agencies Many of our partners are top contributors on our Community: community.hubspot.com Is it possible to leverage Lithiums APIs to pullthe following Community datapoints onto a partner's profile page: - Badges - Community Stats (specifically Accepted Solutions) - Community Rank Name If so - which API can be used, and how do I know if we have access to it? We have only used the Bulk Data API to date. One challenge to consider is the following: thepartner directory database is built based on the 'Company' object in the CRM. Whereas the Communityprofiles are based on unique user email. Please note:I am not a developer, but will be taking details to our team to scope the project e.g. resources required / time to execute etc. ThanksSolvedroisinkirby7 years agoExpert141Views0likes1CommentAdd author images to standard components
Hi guys, Anyone know if there is a parameter that can be added to standard components that have author columns, so that they display the author image as well as the author name? Such as in the latest threads component: <component id="forums.widget.recent-threads"/> something like <component id="forums.widget.recent-threads" author-image="true" /> or... ?? Thanks, Amber Mitchell P.S. wouldn't it be lovely to have a list of standard component usages and options??mitchellworks7 years agoContributor156Views0likes3CommentsAuto fill the registration_ID once receiving partially registrered email
Hi, I work on a Community where I want to importusers through API or a CSV file. Once a user is pre-created, he receives an email to complete his registration (importpartiallyregistered user created template in the Studio email template). Inthe email (https://XXXXXXX/t5/bizapps/bizappspage/tab/community%3Astudio%3Atext-editor%3Aemail?email=import_partial_reg_user_created&lang=en), there is a link redirecting the user to the registration page, where he cancreate his account. In this email, there is also a registration_id that the user needs to put in the registration form. We would like to put this registration_ID as a parameter in the registration link so that it is auto-filledon the registration form. Would anybody know how to do this? Thanks in advance, Julien.jpierlot7 years agoGuide110Views0likes1CommentAPI call to move group to different category
Hi, I'm working withlilimand we are trying to automate moving groups from one category to another. I've automated moving messages from one board to another and was hoping this would be similarly straightforward. Sadly, it doesn't seem to be. Has anyone done this? Am I missing something? We have a large community with more than few groups that need to be re-categorized due to inactivity and we'd like to take care of these moves programmatically during hours when the community is less active. Thanks! BartSolvedbcraft7 years agoContributor238Views0likes4CommentsAuto redirect to signin page
Hi guys, We are building a private Community. We want to redirect users on a custom page. In the page initializer of the Studio, I added the following code: <#if page.name == 'CommunityPage' > <#if user.anonymous> <# assign redirect_url = '/t5/custom/page/page-id/welcome?locale=en' /> </#if> </#if> Butall unregistered users are always redirected to the following page:https://xxxxx.com/t5/user/userloginpage?redirectreason=notregistered&dest_url=XXXX. Would anybody know how can I avoid this redirection so that the code in the Page initializer goes through? Thanks in advance, Julien.jpierlot7 years agoGuide118Views0likes2CommentsData not displaying on custom content using LIQL
Hi, Very new to Lithium Development. I create a call to return the subject and id of messages where the board id = [my board] In the API browser the JSON result is correct <#assign apiVersion = "2.0"/> <#assign x= rest(apiVersion,"/search?q=" + "SELECT id, subject FROM messages WHERE board.id = '[my board]' "?url) /> <ul> <#list x.data.items as message > <li>message.subject</a></li> </#list> </ul> when i add the custom content to test the results only shows the following: message.subject message.subject message.subject ..... (for all the items ) it does not show the subject I'm obviously doing something wrong, but i followed the examples on the documentation. ThanksSolvedKallie7 years agoGuide171Views1like3Comments(Python) script for the Bulk Data API
Hi all Does anyone have any experience with using Python Request to query the Bulk data API ? On this page there is an example using cURL only. Ideally we would need a script for Python Request, or more info on how to pass the user-id and token. Thanks in advance !RaphaelB7 years agoLithium Alumni (Retired)216Views0likes2CommentsCall to display ideas with a certain status
The issue: On our idea exchanges, we're using the default "Recently Completed Ideas" widget, but we don't want to show ALL ideas marked completed. We only want to display ideas that have the "Delivered" status (which is only one of the statuses with the completed component). What I need: We only want to display ideas that have the "Delivered" status (which is only one of the statuses with the completed component)with the name "Recently Delivered Ideas". I'm looking for an API call to pull a single idea status into a custom component to display on the idea exchange to replace the default "Recently Completed Ideas" component. I've seen discussions here on how to pull status counts using the API, but not how to pull and actually display an idea like the default widget Default currently used and why it doesn't work for us:The default widget shows all ideas that have the COMPLETED status. We have"completed" applied to various statuses: Delivered, Declined, Already Offered, and Archived. We need those set to COMPLETED so no more votes can happen. (Yes, I know you can set that on individual ideas, but we have too many to do that manually)but we don't want them all to show in the widget. I'm not a developer, but I need to have the right api calls before I go to our developer. Is this possible using either v1 or v2? Thanks in advance for any help.Solved215Views0likes3CommentsOpen Search Result Link in New Tab.
Hi, I am using search form component and I want to open search result link in new tab. I have written a jQuery function which adds the target attribute to the result anchor tab, but its still opening in the same window. Please let me know if i need to change any searchcomponent settings to open the link in new tab and also to avoid custom code to do the same. Thanks.289Views0likes8CommentsInclude the ask question button inside the search bar
Hello, I would like to know, how can I include the "Ask question" button inside the search bar and also how can organize my search results depends of the kind content that i have. Like lithosphere done. Hope you can help me ! Thanks!!!97Views0likes3CommentsInclude the profile, mail y notification on the header
Hello, we´re goint to relanch our community and we want to change our header into the same way of the Lithosphere. I would like to know how can I customize and do that my header look like this: Also, how can we handle to include the information here: Hope you can help me . Thanks!82Views0likes1CommentSide content and main content headers
Hello, I have a community page that has a basic layout. I am trying to add a different style to the main content headers and the side-content header but they both have the same class oflia-panel-heading-bar. The look I am trying to achieve for the main top header to be filled with a background color and the side-content header to have no background color. Attached is an image of what the layout currently looks like. So to clarify I want the featured topics to have the dark background and the account info to have no background. Thank you in advance for any help!146Views0likes3CommentsLatest TKB Article to display
Hi, I want to display the latest tkb articles on a page. I know that there is a widget for this but i need to customize it as per the design which cannot be done if i use the widget. Pls let me know how to do this. Which API can i use to get the latest tkb articlesSolved124Views0likes1CommentIs there a local version of Studio we can view things on?
Hey guys. Is there a way we can view the SDK studio plugin locally before submitting the plugin to the studio environment. I have a VMWare Linux CentOS environment but each change can take up to 5-10 mins to submit depending on the day. Are there any suggestions? Otherwise, I will keep editing things directly into the Studio user interface, which takes just as long to save things.Jake_N7 years agoMentor277Views0likes7CommentsHow to put in production a change in the Studio of a stage account
Hello, I did some changes in the studio of my stage in the question of NPS, and now it´s ok. But in production it still appearing with the words very unlikely and very likely. In stage: In production: thanksSolved97Views0likes1CommentRecommend question in the value survey and better responsive view
Please we 're trying to change our value analytics in the stage and then put it production. But please we need to help us with 2 pains 1. We' te going to show the recomment questions but for us it's only should have options from 0 to 9. We did all the changes in the text keys but the option 10 is still appearing. 2. We would like to have some tips to make that our survey looks nice in mobile devices. Add the examples for both cases Hope you can help me. Thanks79Views0likes0CommentsCustom Tag Parameter in APIV2 GET call?
Hi everyone, Just want to make sure I am not missing anything obvious here. Is there a way to call messages and include a custom_tag.text field? I see that you can constraint the APIv2 calls by custom_tag.text, but not that you can add it into the call fields. Going for something like this: SELECT id, custom_tag.text WHERE post_time > [yesterday] Thanks in advance for the help! KateSolvedkhill7 years agoMentor170Views1like2CommentsThe Powered by Lithium button leads a to 500 Internal Server Error :(
Hi guys, this is Frank from the HubSpot Community where Lithium ROCKS. Just wanted to make you aware that your 'powered by Litihum' button URL is leading to a 500 Internal Server Error. (see image) This appears to be happening on the following URL and is impacting all instances -https://www.lithium.com/powered-by-lithium Didn't know where else to report this. Best, Frank www.MFrankJohnson.comSolvedMFJLabs7 years agoAdept246Views0likes7CommentsUnable to push changes from staging to production.
Hi, I was trying to push from staging(Studio) to Prod, but my add to queue button was hidden and i was getting the following message. Studio Publish is disabled because one or more non-studio (internal Lithium) changes have been made on stage that have not been pushed to prod. Please contact your administrator for more information. I have also attached the screen shot. Thanks,Solved149Views0likes1CommentEmail template issue caused by component.content.studio-title (content)
TMLHi Lithium Developers, I am customizing community Email template “You have received a private message” in Studio -> Text Editor -> Email text. After I pasted my customized HTML code in the “HTML Content” field andpushed “Send Email to Self” got the following error message displayed: Sorry, we could not send the email at this time. Please wait a few minutes and try again. The component causing the issue iscomponent.content.studio-title (content). If you have recently made changes to this page or component, please use this link to be taken to the Page Editor in Studio. If this is not the case, please contact your Administrator. And my template is not sending to my Email. What caused this issue and how it can be fixed? Here is the link to the HTML code I am trying to use in my template -https://glitch.com/edit/#!/join/bc431a18-c790-4eee-ba16-6191d76983cc Is there some way to debug email templates to see the line/column number of the code which caused the Velocity engine parser issue? Thanks!SolvedMyko_P7 years agoExpert526Views0likes11Commentshow to pass parameters from one page to another just like get and post method in PHP
Hi, How do i pass parameters from one page to another just like how we pass in classic PHP. We use get and post method to pass values and to retrive we have $_GET and $_POST. Let me know.. I have situation where the parameter passed should be aappended to a query and the respective articles needs to be show. Let me know how i can do this. Thanks in advanceSolved160Views0likes3CommentsIssue in getting the session key.
Hi, i try to use the below url to get the session key for queryingCommunity API V1 calls in community through postman, but i am getting an error responseas below. Need inputs to resolvethe problem. get request : http://community.lithium.com/restapi/vc/authentication/sessions/login?user.login=[USER NAME]&user.password=[PASSWORD] error response : <response status="error"> <error code="504"> <message> Method 'get' is not supported off of node 'authentication_manager.sessions.login'. </message> </error> </response>Solved300Views0likes2CommentsIs there an API to send and receive messages for Lithium Messaging
Hi, My company wants to build a server app thatproxies customers' chat. We want to connect to Lithium Messaging service and send / receive messages at the server. The UI part will be built by us and connect to our server. Does Lithium Messaging have an API for that usecase. Regardsjrash067 years agoContributor150Views0likes2Comments