[SDK] seeing weird behaviour while updating custom text key via SDK
Hi, I was trying to add a custom text key in community via SDK. I added the key intext.en.properties file and uploaded the plugin. When I did the key search I was able to see it. But I am not able to see it in thetext properties under community text. Next Iadded a custom text key via UI and exported the plugin to see if that gets added to the file "text.en.properties". After export I am able to see it in the file "text.en.properties" however I am not seeing my original text key which I added via SDK. When I searched for the key in the Text key UI search I am able to see it again. This is strange I can not see it the text in SDK plugins nor in UI as part of all text keys but if I search you that specific key I can see that in UI. Let me know if anyone can help me with the issue. Thanks, SachinSolvedsachin8 years agoMentor192Views0likes3CommentsREST API v2 - Rank change date?
Hi everyone, We are scoping some ideas around Rank reporting to answer questions like "How long do users generally stay in the Newbie rank?", "Are users moving through certain parts of our ranking ladder too quickly/slowly?", etc. To do so, I am thinking of using REST API v2 data and am looking for some kind of field like Rank Date, Last Rank Change, something like that which can associate to the user. I can't find anything the documentation, does anyone know if this type of field exists? Thanks! KateSolvedkhill8 years agoMentor140Views1like2CommentsREST API v2 Documentation - registration_data collection fields list
Hi everyone - I am doing some initial learning/scoping on the REST API v2 fields available. I am looking for user registration date and anything else that might be included in the registration collection. When I navigate from the users collection field list > registration_data. I just see a shell page with the error message "the widget could not be displayed" on all sections. Am I looking in the wrong spot? Thank you in advance! KateSolvedkhill8 years agoMentor134Views0likes2CommentsWhere to find the "topic-message" component quilt? (GroupMessagePage)
Trying to figure out where to modify the Group Message display. There's the GroupMessagePage.quilt.xml, but within that there is <add to="main-content"> <component id="topic-message"/> <component id="reply-list"/> </add> I don't see any quilt for "topic-message". Anyone point me in the right direction? SuzieH?SolvedInactive User8 years ago125Views0likes1CommentHow to hide 'Share' button for Anonymous users?
Hi, Is there a way to hide the 'Share' button from posts/blogs/etc, for Anonymous users? Looking for a way to hide the below component by default for unregistered users. <component id="external.widget.add-this" /> Thanks, Srujana.Solvedsrujanayeruvaka8 years agoChampion323Views0likes7Comments[SDK] unable to update the text keys in property file via SDK
Hi, I exported the plugin using SDK and then tried to make changes in existing custom text keys using SDK and was able to successfully push the plugin. However the changes were not getting reflected in the community. When I searched for the text key it showed me old value. Has any one tried it. Let me knowif this is a bug or existing limitation. Thanks, Sachinsachin8 years agoMentor231Views0likes5CommentsHow to do Text replace in email template?
Text key looks like this. footer={communityTitle} sent this message to {Recipient}. Now I have to replace{communityTitle} with the name of the community which is available in the context object. #set ($footer1=$footer.replace("communityTitle",${community.title})) ${footer1} Above piece of code is not working. Any idea why? How can I achieve this?173Views0likes5CommentsArchive old discussion
Hi, I wantto archive the old discussion. Could you please suggest some best practice? As i have done some research in the community and they have suggested. Create new Archive category. Make the category as private. Move the old discussion into that Archive category. Use robots.txt file to add archive category and which help to avoid google indexing. So please confirm me, the steps to follow? Also i need to make that process as automatic and how we can achieve that?jaikumar18 years agoMentor169Views0likes3CommentsKeep topic-message atop Forum Topic Page and sort replies
Hi everyone, On our Forum Topic Page, we have the thread-subject-header and topic-message positioned above the topic's solution and reply lists. When I choose to sort a topic from Newest to Oldest, the topic-message is sent to the end of the page and oddly, the thread-subject-header is left behind on top of the page. I would like to have the "reply-list" sorted newest-to-oldest, but I want to keep the original topic-message on top of the page. Anyone know how this could be achieved? Thanks!Solved168Views0likes2CommentsIs it possible to create a secondary 'report' form
I have been asked by our superusers if its possible to create a seperate report function specifically for them to raise within their circle for further discussion. It would be similar to how the 'report to moderator' works but would just post to a private area that only our superusers and support staff can see. At the moment they do this manually. Is this possible to do via a few custom components/endpoints?jaread838 years agoChampion93Views1like2CommentsMobile Tabs
Hi, I am new to the Lithium community. I started working bug fixes on my new project. In the project we are facing the issue of the Tab navigation showing differently in Android and Iphone. In Android device it's showing one Tab navigation with More tab link. But in Iphone it is showing 2 Tab navigation with More tab link. I need to display all the Tab navigation without more Tab. So how can we achieve this? through configuration or ? Please let me know your suggestion.jaikumar18 years agoMentor142Views0likes4CommentsAdding user ranks to Forum Page message-list component
Hi all, I'm trying to add ranks to the Community Page message-list component. The component comes out-of-box with the user's avatar, but not with the user name or rank. There doesn't seem to be a way to enable user names or ranks in community admin. I imagine the best route would be to find all the avatars on the page without ranks, scrape the user ids off them and loop through the list of ids and use this query to get the rank: <#assign ranking= restadmin("/users/id/${recent.author.id}/ranking/display/left_image/url").value > Then add each rank to it's respective avatar. Is there a better way to do this? Perhaps by digging into the XML and adding the rank there? Any input would be appreciated.202Views2likes6CommentsWhat is the best practice for header and footer?
Hi, What is the best practice for creating the header and footer i.e. where should we place the header and footer 1. in Header/Footer OOTB component?? or 2. in Head/Body Wrappers?? As we have new instance so what would be best practice to follow?? And also why to understand the platform betterly?? Thanks153Views0likes3CommentsOverride Master CSS visited link on Category Pages
All, I'm attempting to create four microsite pages on the community for separatevendors. The tabs on the page are reading the main visited link causing them to be red, how can I override the CSS for these four separateCategory pages? In one case the OEM background for the active tab is red rendering it invisible. I'm attempting to create four microsite pages on the community for separatevendors. The tabs on the page are reading the main visited link causing them to be red, how can I override the CSS for these four separateCategory pages? In one case the OEM background for the active tab is red rendering it invisible. I've got some one page CSS and JS running the tabs for the main component but haven't figured our to over-ride the master template. 1. https://community.brocade.com/t5/OEM-Lenovo-Brocade-Resource-Page/ct-p/OEM-Lenovo-Brocade-Resource-Page - temporarily turned off the active red tab so the site is usable. 2. https://community.brocade.com/t5/OEM-HPE-Brocade-Resource-Page/ct-p/OEM-HPE-Brocade-Resource-Page It's probably obvious, but I'm having a tough time.Solvedjasondmcclellan8 years agoAdvisor186Views0likes4Commentsneed to call a custom endpoint via some other means than the community dns name
I have a need to call a custom endpoint via some other means than the community dns name. Can we call an endpoint viaapi.lithium.com/community and pass in a session key? We will be pointing the existing community name to another name and need to be able to access the community by a name other than the current name during the transition.Solvedwsurguy8 years agoAdept102Views0likes1CommentLithium Training
Hi Folks, We are new to the community help me in finding any training videos to learn the community. --RobertSolvedELITES098 years agoMentor235Views0likes4CommentsAPi for fetching User details
Hi All, I am new to Lithium Community, I am trying to figure out if there is any API provided by lithium community to fetch the user details. When I say users it means users/consumers who are registered with the forum. These users can be active or inactive(those whohaven'tposted/commented anything on the blogs/discussions) on the forums. So can anyone provide me info if any such API exists or if there is any other way to fetch those details? Thanks, Manpreetgandhim8 years agoGuide338Views0likes8CommentsExcluding certain threads from SEO
Hi All, I'm looking at builing a solution to a particular issue in our community that may be applicable to other communites. This arose during a discussion around archiving content and the different types of archival. In some cases we want to exclude content from Search Engineswhile it isn't relevant to allow newer more relevant content to surface but not move that content or archive it in any visible way within the community. Ideally this would involve putting a flag on a topic/thread (root message) which we'd use for checking logic within a custom component. For this example lets say there's a custom field to exclude from seo called exclude_from_seo which is boolean and we set it to true or false using a checkbox on the post/edit page. The custom component would be created with the following logic: Get the ID of the root message for this topic fromfreemarker context, use that to perform a REST call to read metadata/key/exclude_from_seo and store this against a variable we'll call ExcludeFromSEO Logic check using Freemarker IF the value of ExcludeFromSEO = TRUE then we'll insert the required META tags for robots to not index etc ELSE we insert the normal META tags. The custom component would then be inserted into the header for the ForumTopicPage quilt. I'm wondering if anyone else has developed a solution similar to this or if there's a simpler way to achieve the same result?100Views1like1CommentAccessing the endpoint using http.client not working for hidden category
Hi, There are two endpoint.We are accessing a endpoint to other endpoint using "http.client". We are not getting proper response for hidden category. It's working fine for other category.Your help could be appreciated. ThanksSolvedashinde8 years agoGuide243Views0likes5CommentsRequired one custom API which will update/set username, emailid, firstName, lastName of user.
Hello Team, We want to update user details via API. details includes username. emailid, firstName, lastName. Currently we have 4 different API's to update details however we want single API to update it. Is there any custom API/solution available to cluball these 4API & provide single API endpoint to update username, email, first name, last name. The API/solution should return proper HTTP status & response. Thanks.206Views1like5CommentsBulk API call with C#: error 401 or 407
Dear Community I've been looking for quite some time before coming to ask here. I don't know how I can translate the following sample-curl call into appropriate C# code: curl “https://api.lithium.com/lsi-data/v1/data/export/community/testcommunity.prod?fromDate=20140913&toDate=20140916 -H “client-id: safkdndkebbdkkkc” -u “eicncladjiickld:” What I got so far: public string httpGetRequestCommunity (string url) { //set values ////////edit//////// string token = "eicncladjiickld:"; string clientID = "safkdndkebbdkkkc"; //encode username and password in base64 string authenticationEncoded = System.Convert.ToBase64String(System.Text.Encoding.GetEncoding("ISO-8859-1").GetBytes(token)); // Create a request for the URL. WebRequest request = WebRequest.Create(url); // Set the credentials. request.Headers.Add("client-id", clientID); request.Headers.Add("Authorization", "Basic " + authenticationEncoded); // Get the response. WebResponse response = request.GetResponse(); // Get the stream containing content returned by the server. Stream dataStream = response.GetResponseStream(); // Open the stream using a StreamReader for easy access. StreamReader reader = new StreamReader(dataStream); // Read the content. responseFromServer = reader.ReadToEnd(); // Clean up the streams and the response. reader.Close(); response.Close(); return responseFromServer; } Does anyone have sample code on how to connect with C# to the Bulk API? Or can someone help me? :) That would be really great! Regards, SimonTroji8 years agoGuide90Views0likes0CommentsDate format at category level
We have a japanese category and the users in that category want the date format in all posts as 'yyyy-mm-dd' I see an admin setting which is at global level but not at the individual category level, can this be enabled at category level?tsrisudh8 years agoAdvisor156Views0likes4CommentsLithium SSO token for bulk users
Hi, I need to create SSO authentication for bulk users (say 10) using java code. Current implementation says that, for each user we get unique tokens. A normal session key without SSO can be used for many user creation. Is there any way where I can get a single SSO token generated for all the users that have to be created through java??71Views0likes0CommentsAPI call to automate user reports
As we arepreparing for the GDPR, we would need to be able to automate the creation and export of the User reports from the admin console under the Metrics tab. Is there any API call (or other option) that would allow reports to be automatically exported? Thanks in advance. Bentresbe8 years agoAdept165Views0likes2CommentsGet Message Position index in freemarker.
In lithium, there is a component called 'positionInThread' that displays "message X of 100" on the page. is it possible to retreive just the value of X in freemarker (either via context object or rest API), so I can use it in my own custom component?samhigton8 years agoGuide219Views0likes4CommentsRepurposing "Detailed Description" Property to Enhance SEO
There are two "description" fields in the properties sheet for a discussion type node, "Description" and "Detailed Description." The former is displayed on the node's page when built, and also appears as the meta-tag "Description." The "Detailed Description" feeds a text component called "Node Detailed Description," but does not generate a named text string. From an SEO perspective, the way these two behave is backwards. The "Detailed Description" should generated a named text string, which should in turn feed the meta-tag. The "regular" description should propagate to the page as it does, but should not be used for the meta-tag, because what a search engine needs is often radically different from what our viewers need to see on the page. Given that the "Detailed Description" does not propagate to a named text string, is there any way that content can be accessed by a REST call and fed into (for example) the page header via the wrapper?150Views0likes4CommentsShowing related tkb articles
Hi, Is it possible to show related TKB articles perhaps based on labels/tags. Within TKB message main there is this component:<component id="tkb.widget.related-messages-taplet" /> but it doesnt seem to be doing anything. Any ideas? Thanks, Darren.SolveddarrenSP8 years agoMentor214Views1like3CommentsCustom was this helpful? component
Hi, Is it possible to create a custom was this helpful component? I want to style it different as well as change how it acts when you select no. If not possible can you change the "Thanks for your feedback" text? As well as show a custom confirmation message when selecting no and entering/not entering a comment? Thanks, Darren.SolveddarrenSP8 years agoMentor182Views1like3CommentsHow to recompile angular js after altering the page DOM
Our community is enabled with media 4 to use the document viewer (image viewer) functionality. We have a requirement where we need to insert specific tags to the message body when it is displaying on the Forum Topic Page. For that in Jquery, we are pulling message body by using class "lia-message-body-content" and adding new tags, then keeping the modified back to its place by using innerHTML. The problem is when we update the body from jQuery, Lithium Image viewer functionality is not working. To make Lithium image viewer work we are compiling the body to link scope and template together. Code we are using for compilation: var cThread = document.querySelector(".lia-message-body-content"); angular.element(cThread).injector().invoke(function($compile) { var scope = angular.element(cThread).scope(); $compile(cThread)(scope); }); Strangely this was stopped working recently. The scope variable is returning as undefined. Not sure what exactly changed in Lithium structure. Now we are unable to find the scope. Any ideas how to solve this issue?shhouji8 years agoMentor112Views2likes1CommentRole management in custom components
Hi Can anyone help me with role management in custom components. I would like to know the code which i need to add in the component to make a component not viewable for certain users ? Thanks in Advance Thanks, SophiaSolvedSophiaCiocca18 years agoContributor342Views1like5CommentsSingle V1 API to Update all user details (firstName, lastName, email)
Hi, Is there any such v1/v2 api to update all user details (firstName, lastName, email) at once?? As we have to update all details at one also i have seen different api's to update individual field but want single api to do all updation at once. ThanksSolved206Views1like4Commentsaccordion display (script) only showing first board title
Hi everyone, I am trying to build a simple accordion menu for a community but getting into a road block. Script works as it is intended with showing and hiding the board titles but for some reason it only shows the 'first' board and not the subsequent ones. This is the script I am running atm - <@liaAddScript> (function($){ $(document).ready(function(){ $('category.title').click(function(e){ e.preventDefault(); $("Ul#board.title").hide('fast'); $(this).next().not(':animated').slideToggle(); }); }); })(LITHIUM.jQuery); </@liaAddScript> This is a screen shot of the issue I am seeing Can someone direct to as to 'why' this happening? I am currently using apiv1 for the build. Thank youSolvedMach0088 years agoGuide196Views0likes4CommentsDisplay images associated with messages
We're working on a featured content carousel to pull featured messages from different areas of our site. As part of the carousel, we'd like to include the first image associated with each message. I have the SELECT statement and Freemarker <#list> set up to display the other information associated with the featured messages (subject, teaser, view_href, etc.), but I can't figure out how to retrieve the first image associated with each post. I know that you can SELECT images as part of the query, but that only returns an objectInstance. Is there a way to drill into the images object to return the details of a given image? I would have expected that images would have returned an array, and that I could then use images[0] to get the details of the first image. Any help would be greatly appreciated. Here's what I have thus far: <#assign boardID = "discussions"/> <#assign apiVersion = "2.0"/> <#assign featuresQuery = "SELECT id, conversation.featured, conversation.style, conversation.last_post_time_friendly, view_href, subject, author, search_snippet, images FROM messages WHERE conversation.featured = true AND board.id='" + boardID + "'"/> <#assign featuredItems = rest(apiVersion, "/search?q=" + featuresQuery?url + "&restapi.response_style=view").data.items![] /> <ul> <#list featuredItems as features> <li><a href="${features.view_href}">${features.subject}</a><br/> ${features.search_snippet} <#assign imageQuery = "SELECT count(*) FROM images WHERE message.id='" + features.id + "'"/> <br/> <!--Here's where I'm stuck; I'd like to parse details of the first image associated with this message--> ${features.images} </li> </#list> </ul>Solvedjpjonesie8 years agoGuide287Views0likes5CommentsHow can I emulate standard component behavior with my custom component?
I have a custom component created that will display 5 messages on the Community Page, but I need to be able to allow the user to open this component up and display ALL the messages on a separate page. Similar in behavior to how the Latest Posts or Unanswered Topics components have the Greater Than > symbol on the right hand side of the header bar, which is a link to opening that up to its own page. Actually the whole header is a link. I have rooted around the forums and KB and haven't found anything like what I am hoping to accomplish. Has anyone out there done anything like this? It would be nice if there was a sample code repository to peruse for examples. Here are the basics of my custom component. <#assign num = 5 /> <#assign myVAR = true /> <#assign myVAR_messages = "SELECT * FROM messages WHERE myVAR = true AND depth = 0 ORDER by post_time ASC LIMIT "+num /> <#assign myVAR_messages_ALL = "SELECT * FROM messages WHERE myVAR = true AND depth = 0 ORDER by post_time ASC" /> <div class="custom-myVAR-message"> <@component id="forums.widget.message-list-panel" title="Show MyVAR Messages" messages="rest_2.0:/search?q="+myVAR_messages?url style="wide" numMessages="conv:"+num?number /> <@component id="forums.widget.message-list-panel" title="Show ALL MyVAR Messages" messages="rest_2.0:/search?q="+myVAR_messages_ALL?url style="wide" /> </div> The second @component definition is what I believe I'll need for the display all page; I know it doesn't belong there in the div, it's a placeholder for now. Please point me to any examples of this or other resources I might have overlooked. Regards, Dennis126Views0likes2CommentsAdvisory message not coming when posting new content
We have setup a advisory message in admin as below As per the documentation this should be shown when users add content, but i do not see it in ur community, is there anything else we have to do to show this when users are posting any contentSolvedtsrisudh8 years agoAdvisor298Views1like2CommentsCan we filter to documents with multiple labels
I have a document board with multiple labels, i want to enter the page with 2 or more labels selected? Is this possible? For example https://community.lithium.com/t5/Online-Communities-Blog/bg-p/onlinecommunitiesblog/label-name/commentary This will show blogs related to "Commentary" only, i want something similar for more than one label likehttps://community.lithium.com/t5/Online-Communities-Blog/bg-p/onlinecommunitiesblog/label-name/commentary,Lithium+Newstsrisudh8 years agoAdvisor171Views0likes4CommentsREST API extract image from article body
Hi, Is there a way to extract images from an article body using REST API. My aim is to give a summary of recent article in my community dashboard pageby putting the images of recent articles along with article title. The rest api(http://xxxxxxxxxxxxxxxxx.lithium.com/restapi/vc/blogs/id/Blog1/threads/recent?page_size=1&restapi.format_detail=full_list_element) gives me the entire body with images as an html. How can I take the images from that to give it in my page? Thanks, Teena228Views1like6CommentsInviting a user to the community using the Rest API
Hi all, I am looking for a rest call which would allow us to invite users to the community to support an event we have planned. I dont see anything in the API v1 or V2 documentation. Is there anyway to get this so we can embed the invite to community?83Views1like1CommentButton: Jump to top of the site
Hello together, I´m searching for the funktion: Button: Jump to top of the site. Background: If we have Threads with many postings, it's easier to click a button "go to top" then scroll all the way up again. Can we implement this ourselves? Could I get instructions anywhere? If we need to build a button with html/css: Ok - but after that: Where do we have to implement it? Thanks & have a good weekend, Best greetings, AlexSolved103Views0likes1CommentManaging URLs/site navigation for Ideas Exchange
Hey all, We are looking to place a Landing Page in front of our Ideas Exchange. The Landing page comprises of a search bar, copy/details on how our business processes ideas and a feed of top voted ideas. Long story short we are introducing this page to better set/manage end user expectations and best practise use of the channel. From a Studio/Design perspective I'm wondering how to set this up. If this is the URL for the current Ideas node:https://community.hubspot.com/t5/HubSpot-Ideas/idb-p/HubSpot_Ideas What URL should I use/create for the landing page? Note there will be a CTA on this landing page which is 'Browse Existing IDeas' which will lead to :https://community.hubspot.com/t5/HubSpot-Ideas/idb-p/HubSpot_Ideas Appreciate any/all advice - let me know if I can clarify anything or explain further.roisinkirby8 years agoExpert192Views2likes5CommentsSubscribing to pre-defined labels
I need a way to automatically subscribe moderators to some predefined labels *before* they are used. I have an Ideas Exchange set up and all new ideas must include at least one label (product name). I want all moderators for [product name] to automatically receive notification when an idea is posted for the product. ./restapi/vc/boards/id/[board_id]/labels/predefined returns: <responsestatus="success"> <labels/> </response> which is true enough, but the labels aren't listed. If I create dummy ideas using each label, subscribe to the label and then delete the idea... what happens to the label subscription?Solveddementad8 years agoGenius298Views1like3CommentsHow to edit skin properties via the SDK
I am developing our community using the SDK. I notice in Studio, the ability to modify "Max. Avatar width (Message (px))", for example, like this: This seems to result in the image itself being sized this way, rather than being controlled by CSS alone: This means, if I apply CSS to make the image larger, it becomes somewhat blurred, even though the source image is actually larger than 40px x 40px. Is it possible to edit this "Max. avatar width" value through the SDK? The "Skins" folder only contains my custom skin and nothing from the parent "Responsive Peak". Am I looking in the right place?Solved205Views0likes2CommentsIs there an api to get list of Custom Tags?
Hi, We have an option of custom-tags being enabled therefore we want to fetchthe list of custom-tagsin to a custom component so is there any api for the same? Or do we have any such component which has the list of custom-tags?? Thanks211Views0likes6CommentsCan SAML and LithiumSSOClient cookies work simultaneously?
Our company has been using LithiumSSOClient SSO cookies for a long time. We want to phase that out and upgrade to SAML. I know I'll have to contact support to configureSAMLbut I want to be sure that the two options can overlap for a time while we get SAML sorted and an updated website deployed. Follow-up question. Once we're fully migrated to SAML can we choose to have the old SSO cookies option turned off?Seems like it would be a best practice to reduce the attack surface.davidtwamley8 years agoExpert85Views0likes0CommentsDisplay name for migrated users in S.S.O.
In which scenarios, Interstitial page will pop up. Interstitial page is the one which is used to set the display name of the user when he logs in for the first time. We want the interstial page to popup for the migrated users as well as the registered users whenever they login to the community for the first time.shravani8 years agoGuide117Views0likes2Comments