Adding folder of mixed assets via SDK
Can a folder structure containing mixed assets be added via SDK toweb/html/assets ? I am trying with a DataTables package. Similar to: Folder -.js files -.css files -Folder --Folder ---.js files --Folder ---.png files --Folder ---.css files You date download the exact package I'm trying to add via sdk from DataTables here:https://datatables.net/download/builder?dt/dt-1.10.16 When I try a dryrun I get [gulp] Error in plugin 'submit-plugin': Error: [UPLOAD_FAIL] Some error occurred in uploading the plugin. Please contact your administrator for further details. Plugin upload failed Confirmed I can upload an image asset successfully before this attempt. Thanks for your help. Update: I thought this may be due to using node 8.11.1 instead of an accepted version listed in the sdk prerequisites, so I uninstalled node and reinstalled 8.3.0, (along with the sdk and gulp). Problem still persists...Solvedmarco557 years agoGenius222Views0likes4CommentsComponent for top-viewed posts within the current node?
Hi community! I'm thinking of creating a top-viewed posts component for our forums (to place on each board's home page and perhaps also on the right rail of individual thread pages; could be top-viewed all time or top-viewed last 30 days), but I'm not quite sure how to do it. Before I dive in, I am wondering if any of you have built such a thing and would care to share your code or give me some pointers. Thanks!131Views0likes4CommentsCounting list output
Really hoping somebody can help. I'm pulling in the number of unread posts in a threadusing the following: SELECT user_context.read FROM messages This gives me a nice list of booleans, I've used ?then(x,y) to convert the booleans into either 0 (read) or 1 (unread). Using a list I'm running through each message from the LiQL query and printing the result. So far I'm ending up with a series of 1's for unread messages and nothing for read messages. What I'd like to do is add all of the outputs together so I can display something like '4 New' as opposed to '1 1 1 1 New'. I feel like I've trawled FreeMarker endlessly with no joy beyond converting the boolean to a number. Here's what I'm working with: <#list> <#assign var1 to get each user_context.read result /> <#assign var2 to convert these to a number /> ${var2} </#list> I've tried storing the number in var each time and incrementing it, but I end up with '2' then every time, it doesn't add up the actual instances of 1, just adds its value to itself again. I'm sure I'm missing something really obvious, would really appreciate some input. N.B. I know there's a read messages piece in API v1, I'm trying to stick with using v2 if possible as everything else I've built is using v2 so that's what I'm familiar with right now.Kev_B7 years agoAdvisor146Views0likes4CommentsStandalone Registration Modal
We are using the login modal on our community and within this you can open the registration modal. However, we would like to seperate these so it's clearer for the user to to open either the "Login" or the "Register" modal from the community page. Any ideas on how to get the "user-registration-form" to display without having to click through the login modal?Solved303Views0likes7CommentsList of Lithium jQuery events
Using events like thisis very powerful in custom code: $(document).on('LITHIUM:lightboxOpenEvent', function () { // do stuff } Is there a comprehensive list of these jQuery events? One we'd like to know about now is something like "groupJoinSuccess" - does that exist? I suppose I could try to search through the bundled JS but haven't tried that yet. Thanks! cc:SuzieH,JohnDttadej7 years agoAdvisor158Views0likes2CommentsHow to sort messages by views
Hi, I want to sort the messages by views for result of following API. rest('/boards/id/${board.id}/search/messages?solved=false&restapi.format_detail=full_list_element&restapi.response_style=view&restapi.response_format=json') Is there a way to do in V1 specifically. We can convert it to v2 but v2 is taking too long time. Thanks.Solved129Views0likes2Comments500 or template model error while trying to make external API request in endpoint.
Hello, I am trying to make an external API request from an endpoint. It is just a simple GET request that returns JSON. I am following the example in the developer documentationhttps://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=freemarker#l::%7B%22p%22:%22%2Frefer%2FcontextObjects%22,%22h%22:%22%23httpClientResponse%22%7D I either receive a 500 error or <p>lithium.coreapi.webui.template.models.HttpClientResponseTemplateModel$Error@6370ead8</p> My code is <#assign response=http.client.request("https", "stats.nba.com", "/stats/boxscore").json().get()/> <#if response?? && response.hasError> <p>${response.error}</p> <#else> <p>success</p> </#if> any help is much appreciated!Solveddylan_moberg7 years agoContributor168Views0likes2CommentsFreemarker "date" to Unix timestamp?
Hi ya'll! I'm attempting to implement a snippet of Javascript code within my community's page wrapper; the snippet requires the user's registration date in 10-digit-timestamp form. I'm able to getuser.registrationTime via Freemarker, but this is a string formatted like: "April 9, 2018 12:19:18 PM". Does anyone know how to convert this to a seconds-since-Epoch timestamp? I've searched Google / the Freemarker documentation but haven't found the info I need. Thanks! - Caroline198Views0likes5CommentsHow to change the pagination
Hi, Could you please advise me, how can i change the pagination and which will be used in other page of lithium. For example, i looking intouse the search page pagination into unread post page. Because in search page pagination, displaying the number of records in the result set, andalso displays number of starting (from) and ending(to).jaikumar17 years agoMentor171Views0likes3CommentsReply icon is not visible on forum page
Hello, Reply icon (prior to message subject) is not visible on forum page, whereas other icons such as solved, escalated,moved topic are visible. Is there any setting required to visible reply icon?? Thanks, Bhaktibhakti7 years agoGuide104Views0likes3CommentsOptions menu: one component to rule them all regardless of conversation-style? Or, differences b/t?
Is there a a way to add an options menu to custom quilts that always puts the right menu regardless of conversation style? Or do they have to match each exactly? <quilt> <add to="some-part"> <component id="an-options-component"/> </add> </quilt> So far, I have found: blog-article-options board-options community.widget.page-options group-options idea-options menu-bar menu-bar-without-options thread-options tkb-options Are there differences amongst these that are more than just the limitations of each conversation style? Where can I find this documented? Thanks!Inactive User7 years ago122Views0likes3CommentsGetting redirect into error page
Hi, I'm just facing the issue, when i try to access the homepage, and it automatically redirects into Error page(/t5/errors/error404page). I checked in the version tab in studio, and there is no version changes. Could you please guide me, how we can resolve this issue.Solvedjaikumar17 years agoMentor304Views0likes8CommentsIncluding Javascript files with JQuery dependancy
We've been able to find documentation on how to use Lithium's included JQuery library inline using: <@liaAddScript> and that works a treat, but despite quite a lot of searches on the Community we're struggling to find out how we might include an external Javascript file that has JQuery as a dependancy, and have it use the included Lithium JQuery... so for example: <script src="${asset.get('/html/assets/off-canvas.js')}" type="text/javascript"></script> Whenever we do that we either get a "JQuery not defined" message or "jQuery is not a function". Is that because we would have to modify the included file to work with Lithium's JQuery? And is the alternative to include our own JQuery? Thanks Nathansnaffle7 years agoExpert325Views1like9CommentsAPI call for pending group requests?
This count isrendered in the group-stats component but I cannot find an API call to get this number. My objective is to make it easier to see a count of how many group requests are pending.. right now thepending/requests tab has no count and renders even if there aren't any pending requests. My next idea would be to render the group-stats widget and just grab the text with Javascript, however the group-stats component is not rendering on the GroupMembersPage for me, only the GroupPage.ttadej7 years agoAdvisor98Views0likes1CommentDebugging email templates
Hi, We are trying to debug Digest_subscription_notification email template. As it gets sent out by the platform only daily or weekly, is there any possibility to either trigger it manually (using the content from the community) or mock the data objects that get passed to it?arthur_7 years agoGuide95Views0likes1CommentDeveloper Documentation for Non-Responsive Skin
Hi guys, Could you please show me, where exactly can I find the following developer documentation for Non-responsive skin? skin architecture skin structure skin default out of the box CSS Styles components codestyle, codebook, etc. Thanks!Myko_P7 years agoExpert70Views0likes1CommentRecent post quilts
Hi, We are trying to modify recent post cards onForumPage,TkbPage,IdeaExchangePage and BlogPage sections. Unfortunately it appears that only Idea page card's quill is available in studio (asIdea Message Item). Are Forum, TKB and Blog page recent post card quilts actually exposed? So far I have tried to find them, but as naming isn't always consistent in Community, maybe I'm overlooking something. Also, if those quilts are not available; is it something that Lithium'ssupport can expose or it's off limits? Thank you very much for your advice!Solvedarthur_7 years agoGuide312Views0likes8CommentsHow to retrive info from query string and pass into component in Lithium
Hi Support Team, I have tried to check how component in Lithium queries data for 4 pages above. There is an issue need to get advise from Lithium support. Scenario: Once we access URL as below http://community.digi.com.my/t5/Blog/bg-p/11112222 http://community.digi.com.my/t5/Reviews/bg-p/Reviews http://community.digi.com.my/t5/Let-s-Inspire/bg-p/LetsInspire http://community.digi.com.my/t5/New-Digi/bg-p/NewAtDigi We want to get last part of URL in this case is "Reviews" and then pass that parameter to component name "recent-blog-posts" And in component we will get parameter by using code as below <#assign category = http.request.parameters.name.get("category", "") /> Question: Where should check that component is used in admin of Lithium? How can we parse parameter from URL after /bg-p and then pass that parameter to componentrecent-blog-posts? 11112222 Reviews LetsInspire NewAtDigi Thanks, Mickeykiettuongwork7 years agoContributor142Views0likes4CommentsLITHIUM.CommunityJsonObject
When i saw view source for a page in my community theWeb-trackingobject is as below, but i am not able to see other references of web trackeras mention in the table ? What i need to do to see all the references variables in the WebTracking object. "WebTracking" : { "Activities" : { }, "path" : "Community:Lithosphere/Category:Dev Nation/Board:Developer/Message:codes/custom content for video widget" }, WebTracking.Activities Activity object. Captures activity such as posting, editing, and replying to messages WebTracking.Activities. SearchTerm Search text WebTracking.Activities. UserMessageEvent Possible Values: tracking.message.draft tracking.message.new tracking.message.reply tracking.message.edit WebTracking.Activities. UserMessageEventId Message ID activity took place on WebTracking.Activities. UserRegistration Login of user who registered65Views0likes0CommentsHow to add tooltip?
Hi, We are just looking into add tooltip in some of the page labels. For that i have added script in the component and, which get attached respective HTML tags into the specific label. The below code added into the labels, <span class="HelpIcon"> <a class="lia-link-navigation help-icon lia-tooltip-trigger" id="link_18" href="#"><img class="lia-img-icon-help lia-fa-icon lia-fa-help" alt="Some text" aria-label="Help Icon" id="display_0" src="/skins/images/0920E85D2B8661AC2570D4C45EA5CD7E/base/images/icon_help.png"></a> </span> After the code added the icon not working as expected, and i identified the render jquery tooltip not getting added into the page LITHIUM.RenderedScripts = [ "jquery.tools.tooltip-1.2.5.js", "Tooltip.js", "Entry.js", "jquery.tools.tooltip-1.2.5.js", "Tooltip.js", "Entry.js", "jquery.tools.tooltip-1.2.5.js", "Tooltip.js", ]; and this script LITHIUM.Tooltip({"bodySelector":"body#lia-body","delay":30,"triggerSelector":"#link_16","tooltipContentSelector":"#link_17-tooltip-element .content","position":["bottom","left"],"tooltipElementSelector":"#link_17-tooltip-element","events":{"def":"focus mouseover,blur mouseout"}}); So could you please guide me, how can we apply these additional code into the page?jaikumar17 years agoMentor101Views0likes0CommentsHo to identify the Component usage
Hi, We arelookinginto identify the component usage by the community members. For example, the components like Bookmarks, My subscription, My friends and etc are enabled and not sure how many of them using. So could you please suggest any method available to identify the component usage?Solvedjaikumar17 years agoMentor119Views0likes2CommentsFiltering out the replies from recent solutions Rest Api
Hello, This is a very urgent issue. Any help will be greatly appreciated. I have been trying to filter out the replies which are being retrieved when i try https://community-name/restapi/vc/boards/id/board-id/posts/recent?xslt=json.xsl&restapi.response_style=view&page_size=10 Can someone please suggest how to add a parameter here which will not retrieve any replies in the result set.Solved209Views0likes4CommentsHow can I make the Private Messages : Inbox breadcrumb clickable?
Hello! I've noticed that when I'm reading a specific private message, I'm not able to easily navigate back to the full inbox via the breadcrumb - see screenshot. Is there a way I can make the end of the breadcrumb clickable? Thanks, ya'll!121Views0likes4CommentsLocal javascript development strategies?
Our team is trying to develop a solution to dev javascript locally. I don't think there is a solution for developing the@liaAddScript Javascript/jQuery in Freemarker files locally because that is bundled during deployment. I'm more interested in standalone files in web/html/assets/js or src/ - we have files in both places (one is a bundle and the others are standalone files). We'd like todo something like this: Serve up files from a local port Manipulate the DOM to remove the static file includes from the hosted site and replace with the local versions Watch file changes and reload accordingly We're working on this now, but I'd be interested to hear if others have found a good solution. My initial thoughts are that it will require a number of npm packages and some hacks to the way the @includeScript function works in dev environments. Any input is appreciated! Thanksttadej7 years agoAdvisor124Views1like1CommentHow to invite non-community members to a Group
Not covered in this documentation:https://community.lithium.com/t5/Groups/Invite-or-add-members-to-a-group/tac-p/426566 There is an email template called 'group_external_invite' mentioned here (https://community.lithium.com/t5/Developer-Knowledge-Base/Email-template-context-objects/ta-p/75924) How does one use this feature?Solvedttadej7 years agoAdvisor225Views0likes4CommentsGet default sort property for TKB articles
Hi, Admin section allowscommunity managers to setdefault sorting for articles on a TKB page. Is there possibility toextract this option using API call or context objects? So far I tried to look through documentation and available options in admin_settings.xml, but unfortunatelynothing came up. Later hassection.article_sort_order parameter available, but it always returnsmostRecent as its value, even if, for example, default sorting is set to manual. Thank you very much for your advice!Solvedarthur_7 years agoGuide149Views0likes2CommentsFeatured blog component
Is there an OOB component to show only featured blogs in a category, we want to add this to our category and board pages. The OOB Featured content picks from the entire community and does not restrict to the current category. So is there another option or we have to build a custom component?tsrisudh7 years agoAdvisor138Views1like4CommentsSearch with keyword that contains an apostrophe
I am trying to retrieve posts using the V2 Rest Api (GET) and if users enter an apostropheas the keyword search term the API does not retrieve results. I have tried encoding and escaping the apostrophe but with no success. Has anyone come across this before? e.g. https://api.lithium.com/community/2.0/nepep88636/search?q=SELECT%20id%2C%20subject%2C%20search_snippet%2C%20view_href%2C%20post_time%20FROM%20messages%20WHERE%20subject%20MATCHES%20%27keyword%27%20OR%20body%20MATCHES%20%27keyword%27%20AND%20labels.text%20%3D%20%27FAQ%27%20AND%20board.id%20%3D%20%27Knowledge-Base%27%20LIMIT%2010%20OFFSET%200 (replace both instances of keyword)endamcnamee7 years agoContributor97Views0likes1CommentAPI 2 not returning user who got role 25 minutes ago
Hi everyone. Curious about this. I added the role Moderator to a user 25 minutes ago, yet, when I use this query it doesn't return that user.. <#assign query = restadmin("2.0","/search?q=" + "SELECT id FROM users WHERE roles.name IN('Moderator') LIMIT 50"?url)/> <#list query.data.items as q> ${q.id}<br/> </#list> Does anyone know how long it takes for the API to catch up, or how long it should take? I think it shouldn't take this long..?172Views2likes5CommentsSolution: Get a list users with recently earned badges
Hi, At the moment, there is no way to get a list of users with earned badges. I've submitted a feature request here. Please vote up the idea if you have this feature to be implemented. In the meantime, I've built a small console application on C# which returns the desired data to me. Find the answer below.SolvedTanyaGorbunova7 years agoAdvisor191Views3likes2CommentsOption to Subscribe Label -- Missing
Therewas an option to subscribe label on thenon-responsive community. See the screenshot: https://prnt.sc/iu7uh6 This option is missing from the new responsive community. See the screenshot: https://prnt.sc/iu7un0 Any help will be appreciated...SolvedHiteshKumar7 years agoExpert190Views1like2CommentsGet list of TKB articles, exlude TKB comments
I am using the following call to retrieve the TKB articles within a particular node: /restapi/vc/boards/id/<BOARDID>/threads However, this returns both the TKB articles and comments (message), and I only want the high-level TKB article (topic). Is there a way to do this or a better API call I can use? Thank you! :cathappy:138Views0likes2CommentsAdd role description to role creation API
Hi. I just noticed that the API call to create a new role doesn't include the option to add a description. I did try adding "&role.description=" to the call, but it had no effect. Would it be possible to add that, or educate me on how to include this in the call? Thanks.118Views0likes1CommentChange Cache-Control settings for an Endpoint
Hi there, we are working on an Endpoint to get an list of messages by an ajax call. A simple way to cache this will be to set the Cache-Controlsetting away from no-cache which is default. Is there any way to change theCache-Controlsetting for an Endpoint? Btw. we are working with the SDK. Thanks Steffen223Views1like4CommentsAbility to disable login field in SSO Registration Form
From what It has been told me, is not currently possible to disable login field in the customer SSO registration form. https://community.lithium.com/t5/Developer-Discussion/Disable-login-field-SSO-Registration-form/td-p/442420 Is it possible to do so ? Because the strange thing is that I have already passed the login value in the SSO Cookie, but when the user get redirected to the SSO registration form, the login field form is enabled and is blank. Does it suppose to be filled with the login value specified in the SSO cookie, or not ? Thankslmitaly7 years agoContributor118Views0likes1CommentHow to customize my settings tab
Hi, We just looking into customize the my settings tab in the community. Here we have to move certain settings option into some specific tab, and also need to update the labels. I just gone through some document, and they have mentioned to access, Studio > Text Editor > Advanced and can see the tabs setting. But i haven't see the options to customize.So please advise me, how we can achieve?Solvedjaikumar17 years agoMentor188Views0likes4Comments