Flexibility in styling User Settings page
We are looking to do some redesigning of our Community and was advised to post my question here. Can any one tell me how flexibile the user settings page is to style (https://community.netapp.com/t5/user/myprofilepage/tab/personal-profile)? For example, must we keep it in the current horizontal tabbed format or can we let's say move the tabs to stack vertically on the side?Solvedallisonn10 years agoGenius328Views0likes13CommentsAPI post syntax
Ive been looking all over the documentation and i cant find an example of an API Post. There are lots of examples of how to construct the URL, but i havent been able to find an examplefor the entire freemarker syntax looking forsomething along these lines <#sometag [stuff] /url/set?value="xyz" [stuff] /> Does anyone know how to do this? thanks!Solved157Views0likes2CommentsGet country by IP address.
Hi, I want to find the country based on IP address of logged in user's machine. I can get IP address using one of this : 1.http://communitydomain/restapi/vc/users/id/useridgoeshere/settings/name/user.last_visit_ipaddress 2.${http.request.remoteAddr} Need to check from which country it is associated. NOTE - We can not use google API. Because it is banned in some countries. Please let me know if there is any way. Thanks, Vishwajeet152Views1like1CommentMessage Search API not returing all messages within a date range
Hi Lithium Experts, I am working on a connector that retrieves all the messages from the Lithium Forum (within a date range) and process it as per the business needs. But when I try to retrieve the messages within a date range, I do not get all the messages that are posted within that date range. For instance, here is one message http://h30434.www3.hp.com/restapi/vc/messages/id/5176193 The above message was posted on 2nd August 2015 <post_time type="date_time">2015-08-02T09:01:56+00:00</post_time> Similarly, there is another message http://h30434.www3.hp.com/restapi/vc/messages/id/5176160 The above message was also posted on 2nd August 2015 <post_time type="date_time">2015-08-02T08:00:28+00:00</post_time> However, when I perform a search on messages through the API, I get only one result. Here is my API call http://h30434.www3.hp.com/restapi/vc/categories/id/Notebook/boards/id/Laptop-Freeze/search/messages?q=date:[1438473600%20TO%201438675205]&sort_by=date&restapi.format_detail=full_list_element&page=1&page_size=1000&restapi.response_format=json&restapi.response_style=view Can you please let me know what I am missing in my API call. Thanks & Regards, Deepak.Sskapid10 years agoContributor87Views0likes0CommentsLithium API V2 - Excluding information from query
Hello, I'm new to the V2 API and Iwould like to know if anyone knows how can i do a query that excludesresults that contain a certain text in the subject/body/etc For example, something like this: SELECT id, subject FROM messages WHERE subjectNOT MATCHES "keyword" Thanks in advance166Views0likes2Comments${page.name} not working on user badges page
Hi Lithium, I have noticed that on some pages, there is no css classname on the body tag for the page name. And freemarker page.name returns empty string. This is a problem. We used ${page.name} a lot, and the classname on body tag a lot for pages. Please fix the bug. Peterpeterlu10 years agoChampion92Views1like1Commentpage.context.user.id not working on user badges page
Hi Lithium, As we always know that on profile page, we can use "page.context.user" this freemarker object. But now I have found that I cannot use this object on user badges page. Is it not supported? I hate to grab the user id from the url, not very nice :) Peterpeterlu10 years agoChampion64Views2likes0CommentsAccess sso_id issues
Hello! I need to access a user's sso_id to pass it to JavaScript for tracking purpose. So far the only way I can see to access it is via the REST API like "/restapi/vc/users/id/65". But the sso_id node goes away when I'm logged in as a regular user instead of an admin. Is that expected? Is there any other way to access the sso_id? Thanks for any help in advance!Solvedrayyu10 years agoAdept157Views0likes2CommentsWhy can I only look for messages across 16 boards at a time?
I'm trying to aggrigate messages across all of the boards in our system. We currently have 18 boards. When I run the query on all 18, it pukes: Freemarker template 'preview' processing failed: MappableContainerException:java.lang.StackOverflowError If I take away any 2 of the boards, it works as expected. Does anyone have any insight into this? Is there an actual limit on items, or is something else messing with my query? <#assign my_board_ids_formatted = "migration,orientation,welcome,data_talk,sales,discussion,customer,team,corporate,filternotifications,moderatordiscussion,product-documentation,abusereports,questionablecontent,pulledcontent,partnerresources,partnerdiscussion,getting-started" /> <#assign recent_messages = rest("2.0","/search?q=" + "SELECT * FROM messages WHERE board.id IN ('${my_board_ids_formatted}') AND depth=0 ORDER BY post_time DESC LIMIT 15"?url).data.items />dustin10 years agoExpert67Views0likes1CommentDisplay community content on extrenal site- should refresh rate be real time or set to some value?
Hello, We are building a building a website that will contain certain pages that will fearture community content ( ex: we want to show latest blog articles on one of the pages) . This will require use of the REST API to pull the content from the Lithium community. I would appreciate your help on the following. We cannot use the ActiveCast Widget because it does not cover all the filter criteria we need to apply for pulling in content. 1. Can we display the content in real time using the REST API. So as soon as there is new content that meets the filter conditions we are using, it would display on our website. If real time is not possible, what is a recommended refresh rate ( should we just cache the content we pulled in and then pull in new content at certain time intervals)? 2. Are there any performance issues with real time updates? 3. What is the best way to handle the case when Lithium does down for some raeson. In this case, does it make sense to cache the content displayed and continue to display it until new content is available? Thanks, Manasa83Views1like1CommentHow to retrieve page number in freemarker?
On the community page, I have created a custom component that lists all of the messages for that board. I am using the default pagination extension and while it allows me to click to any page, the same results show on each page. So I need to incorporate the page offset into the SQLi. I see the page number in the url... ex:http://community.lithium.com/t5/Technology/bd-p/technology/page/2 Is there a way to access this page number with FreeMarker from the url or a context object? This is what I'm starting with... <#assign result_count = 25 /> <#assign pagination_offset = 0 /> // if page_number exists <#assign pagination_offset =page_number * result_count /> // end if <#assign recent_messages = rest("2.0","/search?q=" + "SELECT * FROM messages WHERE board.id IN ('${coreNode.id}') AND depth=0 ORDER BY post_time DESC LIMIT ${result_count} OFFSET ${pagination_offset}"?url).data.items />Solveddustin10 years agoExpert188Views0likes1CommentDisplay components side-by-side
We want to add the Notifications count component to our User Navigation, however, I cannot get theses to display side-by-side -- only on top of each other. Below is what we have now, and an example of what we want. Is this possible to do by editing the XML or another method? Thank you!124Views0likes3CommentsWhat does ActiveCast dispplay if for some reason Lithium is down
Hello, If we include the ActiveCast widget to surface Community content on our external corporate website, I would like to understand what happens if fopr some reason Lithium goes down. What would customers see in the widget? Is there an error message that would display in place of the community content? If there is an issue with the ActiveCast widgets calls to the REST API, what would it display? Any help or guidance would be much appreciated. Thanks, ManasaSolved104Views0likes3CommentsWhy does a v1 API Call to /boards not include groups?
EDIT2/SOLUTION: Yeah, just ignore the rest of the post^^... =) that's when you don't set up your community structure yourself...the groups had the checkbox "hidden from menus" checked in their properties...that's why they don't show up in the /boards call, but interstingly the still do in the /groups/list call...so to make it short, don't make them hidden if you want the groups via /boards API call...sorry for the spam...This "Important: Hidden boards are filtered out of the response by default unless you specifically query the hidden board by its ID (the id field)." fromBoard Resourcebrought me on the right track of what was the problem. SuzieHIt seems that the board resource of the v2 API now supports groups (they show up with the v2 call below when I removed the hidden checkbox, in the KB-Article linked above it says "API v2 does not support review boards or group boards.") I just noticed a quite strange behavior of the Lithium v1 REST API: we can get a list of all boards in the community by calling http://your.community.tld/restapi/vc/boards/nested that returns a list of boards of (almost) all types (by type I mean interaction styles), e.g. forums, blogs, ideas, tkbs, qandas but NOT groups... we can get a list of groups with http://your.community.tld/restapi/vc/groups/list // or just http://your.community.tld/restapi/vc/groups // I prefer the first call though, the response is better structured IMO wherewe will geta list of groups with their respective href urls which look like follows: <group type="group" href="/boards/id/Groupname"> that tells me that a "Group" is actually also a board resource, but probably with a different interaction_style (e.g. "group")...which is confirmed when we call http://your.community.tld/restapi/vc/boards/id/<groupname> which returns a normal board node with interaction_style = group <interaction_style type="string">group</interaction_style> so my question would be, why these boards with interaction_style = group are not listed in the API call that should return all boards? The absence of these boards in the /boards/nested call forces me to make unnecessary API calls and complicate the code =)...any insights in why this is the case would be intersting! EDIT: Just out of curiosity I tried the same with the v2 API Browser: SELECT title,conversation_style FROM boards // I do not output everything to make the response a bit more readable in this test...feel free to replace "title,conversation_style" with "*"... // btw. why is it called "conversation_style" in v2 and "interaction_style in v1? the result is the same...NO groups in the response...luk10 years agoBoss120Views2likes0CommentsLabel editor on Blogs Post Page.
Hi All, On Board's Post Page, label editor looks like this : On Blogs Post Page, it looks like below : There is no "Choose a Label :" functinality. [i.e. list of labels] Is there any setting to make it enable on Blogs Post Page. Let me know if there is any way. Thanks, Vishwajeet142Views0likes4CommentsChange language value
I would like to be able to update a users language preference. I am able to view the preference here: {community url}/restapi/vc/users/id/{user id}/profiles/?profile.language But im having troublefiguring out how to structure the rest call to change the value. After looking through the apidocumentation, i am still a little lost. thanks!!Solved254Views0likes1CommentProduct Mentions
Hi guys We've been playing with Product Mentions and have noticed a few things that are missing that could make this feature much more useful. 1. An API for relationship between Message/Product eg. /messages/id/msgID/products and /products/id/prodID/messages So you can fetch a list of products mentioned in a message and fetch a list of messages where a product is mentioned. 2. When the Product Mention is added to the message body its added like this <a href="http://www.ecohaus.me/productdisplay/nest-protect-smoke-and-carbon-monoxide" rel="nofollow">Nest Protect</a> It would make sense to add a data attribute for the product ID so via the front end you can do more interesting things by calling the product data via the API. (in case we don't want the existing product carousel) <a href="http://www.ecohaus.me/productdisplay/nest-protect-smoke-and-carbon-monoxide" rel="nofollow" data-product="nest-tstat" >Nest Protect< /a> Likewise you could spot this when fetching a message body via the API too. These two simple updates would open up a world of oppurtunities for Product Mentions.137Views6likes0CommentsCollapsible widgets - A code sample
Vincent had great idea over on the Suggest Your Ideas board (http://lithosphere.lithium.com/t5/customer-ideas/Collapsable-widgets/idi-p/27652). I had coded up a demo of this functionality separately but would love to share it with you. The original idea is currently "Uncommitted Candidate" but this one you can have right now if you are comfortable doing a bit of studio work. Since you are reading the developer board, I'm thinking you are. Closed: Open: Step 1: Create a Component In Studio -> Components, create a new component with the following javascript. In this case we are only collapsing the side column modules. We are writing the js using the <@liaAddScript> notation to take advantage of the jQuery library loaded on every Lithium page. <@liaAddScript> ;(function() { jQuery(document).ready(function() { // Slide jQuery("#lia-body .lia-content .lia-quilt-column-side-content .lia-panel .lia-panel-heading-bar-wrapper").addClass("collapsed"); jQuery("#lia-body .lia-content .lia-quilt-column-side-content .lia-panel .lia-panel-heading-bar-wrapper").click(function() { jQuery(this).toggleClass("expanded").toggleClass("collapsed").parent().find('> .lia-panel-content-wrapper').slideToggle("medium"); }); }); })(); </@liaAddScript> Step 2: Add the Component to the Page Go to the Page tab of Studio and place your new component. If you wanted this to only be on a particular page, you would just add it to that page itself. I wanted my code to run on all pages so I added it to the Footer. The footer is added to all 'non-popup' pages so I should be covering it. Step 3: Add Some Style Go to the Community Style tab of Studio and navigate to your community skin. You can get as fancy as you like with the CSS. This will get you started. I added two images to the assets folder that are 24px by 24px so I gave my header bar an extra 30px padding to make room for them. .collapsed {background:url('${asset.get("/html/assets/down.png")}') no-repeat center left; } .expanded {background:url('${asset.get("/html/assets/up.png")}') no-repeat center left; } #lia-body .lia-content .lia-quilt-column-side-content .lia-panel-content-wrapper {display:none;} #lia-body .lia-content .lia-quilt-column-side-content .lia-panel > .lia-decoration-border > .lia-decoration-border-content > div .lia-panel-heading-bar-wrapper .lia-panel-heading-bar { padding: 5px 0 5px 30px;} Step 4: Celebrate!KaelaC10 years agoLithium Alumni (Retired)375Views15likes3CommentsDisplay of Avatar Image in posts shown on an external site
Hello, We are displaying community content on an external website using the REST API ( ex: latest blog articles + some additional criteria) . ActiveCast does not provide all query types we need to support so we are building a custom component that will pull content based on specific criteria using the REST API. Each post we display will have a title, author, date and avatar image. I would appreciate any help/guidance on the following: 1. If a user does not have an Avatar image, then what is passed by the API? Is there a placeholdert image that is assigned to users with no avatar image uploaded? If yes, can you please point me to it so i know what it would look like on our website? 2. Avatar images uploaded by users consist of various aspect ratios? For consistency, is there a way to render the avatar on the website with a standard 1:1 aspect ratio? Thanks, ManasaSolved116Views0likes1CommentDisplay community content on extrenal site- should refresh rate be real time or set to some value?
Hello, We are building a building a website that will contain certain pages that will fearture community content ( ex: we want to show latest blog articles on one of the pages) . This will require use of the REST API to pull the content from the Lithium community. I would appreciate your help on the following. 1. Can we display the content in real time using the REST API. So as soon as there is new content that meets the filter conditions we are using, it would display on our website. If real time is not possible, what is a recommended refresh rate ( should we just cache the content we pulled in and then pull in new content at certain time intervals)? 2. Are there any performance issues with real time updates? 3. What is the best way to handle the case when Lithium does down for some raeson. In this case, does it make sense to cache the content displayed and continue to display it until new content is available? Thanks, ManasaSolved144Views0likes2CommentsCustom popup for Create user name and other profile fields
In one of our communities, we have SSO enabled but have allowed the users to navigate without creating a username, they are not prompted to create a username unless they click on any action buttons such as reply button on posts etc. We are now in the process of implementing a new registration flow where as soon as the user clicks the action button, we show them the popup (A custom pop-up), which will ask them to fill their username and few other details. Now, the query is – Is there any way we can detect the action click of the user and present them with this custom popup? Currently – as soon as user clicks the reply/ action button – they are redirected to the “create a username” page. Our workflow would be: Click reply button > Show pop-up > let the user create login name > proceed to the location. Any thoughts?143Views0likes1CommentEnd of last session
Hi there, I am lookingfor a way to determine when the currently logged in user's last session ended. We want to build a component to list activity since your last visit. I see there islast_visit_time on /users and also on v2 API. But this seems to be updated everytime the user keeps browsing thecommunity within the current session. Is there a way to tell the end time of thelast session thought the current session? Thanks, Suresh114Views0likes2CommentsAPI: Counting all hidden and nested nodes of the community or category
Hi, I want to get a realtime/accurate count of the total # of nodes (hidden + visible) at the community-level or specific category-level. Are there realtime REST APIs to get the total # of nodes (including both hidden and visible) at the community-level or a category-level? Are there realtime REST APIs to get the total # of nested nodes (including both hidden and visible) at the community-level or specific node-level? e.g. /nodes?show_hidden=true returns nodes including hidden, but /nodes/count?show_hidden=true only returns count of visible nodes, likewise /nodes/nested/count?show_hidden=true only returns count of visible nested nodes. Are there alternate flags to include the count of hidden nodes? Thanks! Benbma10 years agoMentor148Views0likes2CommentsCustom count
Hi is there a way to call data from community. I want to make a custom component that will show: - how many overall TOPICS are in community - how many overall POSTS (messages) are in community - how many new posts in 24 hours are posted in community thanks.SolvedPuljac10 years agoMaven248Views0likes4Commentshttp.client.request throwing error for http response codes 400 and 404
Hi, We are usinghttp.client.reques FreeMatker context object to connect with third partyAPI. This FreeMarker context object throwing following error if the reponse coming from third party API contains 400 or 400 error codes. Exception: FreeMarker template error: Method "public final lithium.coreapi.webui.template.models.HttpClientResponseTemplateModel lithium.coreapi.webui.template.models.HttpClientRequestTemplateModel.get() throws freemarker.template.TemplateModelException" threw an exception when invoked on lithium.coreapi.webui.template.models.HttpClientRequestTemplateModel object "lithium.coreapi.webui.template.models.HttpClientRequestTemplateModel@69369a7a". See cause exception. The failing instruction (FTL stack trace): ---------- ==> #assign response = http.client.reques... We even tried capture the error by using the 'response.hasError' method but in vain. Your help could be highly appreciated. Thanks & Regards, Phaniphani10 years agoAdvisor127Views0likes0CommentsLabels on global post page
We have a global "Start a discussion" button which is contextual based on community context, but in most places, it just points to: /t5/forums/postpage/choose-node/true/interaction-style/forum We'd like the label picker to show up on that form in all cases, but I guess when there's no board already chosen for the post, the platform doesn't know which set of label rules to use. Is there a clever way to have the label picker show up after a board is picked? Is this something Lithium PS would have to help with?Tyson10 years agoMentor95Views0likes1Comment"title" not a valid LiQL constraint
I have several categories and their titles are similar to the following "Moderators ABC" "Moderators XYZ" "Moderators 123" I attemted to access them, first by themore direct SELECT title FROM categories WHERE title = "Moderators ABC" and also by SELECT title FROM categories WHERE title MATCHES "Moderators" Both of these queries returned a 604 error that said"'title' is not a valid constraint for the object 'categories'." Does anyone know why title might not be a valid constraint? And what I can do to select all of my Moderators categories? Thanks!Solved304Views0likes1Commentwhat is the lithium-sdk on npm for nodejs?
I'm about to start writing a rest API node module for the Lithium API, and noticed there is a lithium-sdk on NPM. There is noreal readme for the repository and the small note that is there says: Lithium-Klout SDK. I want an easy way to interact with an enterprise Lithium instence, and was hoping this would handle the simple plumbing of getting tokens and possibly wrap API endpoints in methods. Does it do that? If not I'll just create my own :)adskdave10 years agoAdept199Views0likes4Commentsadd role to user via rest API
Hi all, We're running into an issue, that we cant seem to solve. We are trying to add a role to a user via the rest api, which works great on our staging environment, but on production does not work. We have an endpoint with a macro, which is invoked via an ajax call to pass in the neccessary valaues and do the proper error checking. This is the gist of the problem point in our code: <#attempt> <#-- Add the role to the user --> <#assign addRole = restadmin("/roles/id/${roleID}/users/add?role.user=id/${user.id}") /> <#recover> <#-- Provide Generic error message --> {"status": "error","msg": "Something went wrong, please try again, error code 3"} <#return> </#attempt> Im not sure what the issue is, as this works fine in our staging environment, but just not on production. The proper role IDs have been checked as well as user.ids. Just curious if anyone knows of something that we're leaving out for a production envrionment. thanks, TriSolved363Views0likes3CommentsMaking secure connection b/w Custom component and Endpoint using AJAX
Hi All, We are calling an endpoint from a custom component using Ajax. It works fine but we have one query - Is there a way we can authenticate the call at the endpoint that it was made from the custom component only? As the Endpoints can be accessed via browser as well, and by passing parameters, anyone can see the data. Is there a way we can fill this gap? e.g. The profile hover endpoint on lithosphere can be hit directly from browser and you just need to change the user id and you will get the respective results. https://community.lithium.com/lithosphere/plugins/custom/lithium/lithosphere2/profilehovercard?user_id=34691 This is a simple case,but still, is there a way to authenticate the call inside the Endpoint to verify that the source was the custom component and not the direct browser hit?Gursimrat10 years agoLeader145Views0likes2CommentsRestapi call to retrieve timezone
How do I retrieve the timezone settings in restapi for a user?Solvedperk10 years agoAdept265Views0likes1CommentSearch Bar drop down arrow looks different with Firefox
Hello! The search bar drop down arrow looks different on Chrome & Firefox. The drop down arrow looks like this in Chrome. The drop down arrow looks like this in Firefox. I know that is a Firefox issue. I've tried changing the CSS and adding this " -moz-appearance: none" but the arrow disappeared.Has anyone run into this issue before? Any tips on how to fix this? Any help will be greatly appreciated Thank you.Solvedskylinegtr10 years agoMentor117Views0likes2CommentsSign in using twitter/facebook account.
Hi, One quick question. Suppose we want to register for a community. Then usually, we fill allrelevant details and click on register. Can we directly sign in using twitter/facebook account so that there will no need to fill all the details. We just have to enter our twitter/facebook credentials. Is this possible ? What are the steps to achieve it ? Thanks, Mahesh135Views0likes3CommentsAPI command to pull label
Hello Everyone, I’m going to create a label called “Getting Started” in all of the KB’s. I would like to create an API command to pull anything with the label "Getting Started" from ALL KB boards and listing it in the widget. This should be privilege aware. So anything internally flagged this way should only be visible internally. How can I do this? Are there any sample code that I can use to accomplish this? Any help is greatly appreciated. Thanks!skylinegtr10 years agoMentor158Views0likes4CommentsIs there any BULK API call for moving multiple messages to different board?
Hi, I want to move multiple messages from a board to different board. I found a REST call which moves single message. Is there any BULK API call for moving multiple messages to different board? Thanks, Vaishnavivaishnavi10 years agoExpert127Views0likes1CommentQuestions on ActiveCast widget
Hello, I would appreciate some help on the following questions on the ActiveCast widget ( seelink). We would like to display Community content on an external website, and the ActiveCast widget enables that. Is the ActiveCast widget responsive? Can we apply custom styling to the widget so that it matches the theme/brand of our website? Can you provide an example of the widget being used on a website? Is there documentation on the ActiveCast widget aside from what I seehere? Thanks, ManasaSolved149Views0likes2CommentsUse Freemarker in Community Structure / Edit Properties
Under Community Structure, I am trying to add the Name and Description of a forum. Rather than typing plain text, i would like to store that string as a value in a data model and print that value as the Name or Description. I tried putting ${name} and ${desription} into the Name and Description fields, but it prints this as plain text. The website says "${name}" rather than printing the value of ${name} Is there a way to get it to print the value? Thanks!Solved103Views0likes1CommentHow to get view count of a particular page which contains relevant query Sting
Hi, After going through the community API calls, we have found that by using this REST API “http://<community-name>.cisco.com/restapi/vc/boards/id/board-name/metrics” we can get the view count of the particular board/tkb “http://<community-name>.cisco.com/board-name/message-title” and its messages view count. Our requirement is to get the view count of a particular URL such as “http://<community-name>.cisco.com/board-name/message-title?test=data”. What we have observed is even though we append some content to the URL, it is updating in the message view count, but we want to track how many times users visited the Community with URLs containing the relevant query strings such as “test=data”.shhouji10 years agoMentor108Views1like1CommentQuestion on Image display
Hello, We will be leveraging the Community API to pull in content that will be displayed on an external website. We will be displaying the most recent forum posts within a specific category. Each post will display the following: 1. Avatar Image 2. Post title 3. Post date 4. Post Author. If you look at the attachment the Avatar images are of different sizes. Is there a way to get the images in a standard size ( 1:1 aspect ratio)?Here is the link to the Avatar section of the API. Also what is the purpose ofmedia_display_size ( seehttps://community.lithium.com/t5/Community-API/bd-p/developers-rest-api?page=apicall) Thanks in advance for your help. Manasa71Views0likes0CommentsLSW: Intercepting messages pre distribution
I have really no idea where to get started; and this might not be the correct place to ask this question, if so forgive me. I am wondering if there is a way to add a 'hook', 'plugin', 'aspect', whatever you want to call it, that will allow a program to check a message for a certain string before it is allowed to be published on social media. I've poked around through the documentation, but can't find anything that looks like it would work. Does anyone have a recomendation on an API/etc to look at? Thank you, Sethsethmuss10 years agoContributor116Views0likes3CommentsGet hash value from url in freemarker
Hi, How do I get the value after hash (#) from a URL using FreeMarker. E.X.: Page URL = http://community.lithium.com/t5/Support-Forum/bd-p/lisupport#token=12345). How can i get the value of "token"? Is there any FreeMarker context object available like http.request.parameters.name.get? if not could anyone suggest workaround for this in FreeMarker ? Your help could be highly appreciated. Thanks & Regards, Phaniphani10 years agoAdvisor177Views0likes4CommentsList of parameters that can be
Hello, We are looking to build a custom widget that will display Community content on one or more pages of our website. The REST API will need to be used for this. ( we dont want to use the ActiveCast widget becuase we have very specific requirements on the types of posts that we want to display). Looking at the Community API documentation I am not 100% clear what are ALL the parameters available to me to display for each post. For example, we want to show blog posts that are the most popular on the website. Each post should contain the following ( see attachment): Author Avatar- to retreive an display this, do i use the 'AvatarImage'? Can I restrict the size for consistency on the website? Post title- where do I get this from? Can tyou please point me to the link? Author Name- where can i get this from Date- What field contans the post date? Thanks so much! Manasa73Views0likes0CommentsAccordion display for FAQ sections
Hi All, Just thought I'd share a simple customization I did recently.This is very easy to apply, but might be desirable as a visual improvement for some communities. The customization is to display FAQ questions in accordion like format, when only one questions is visible at a time, and some simple effects for hiding / showing questions are applied. What's required to implement: 1. Create a custom component with the following script: (Note added css to the component for this example - ideally should be placed into the skin, but will also work from custom component) Note css applied to div.faq-content li - this helps the smoothness of the expanding section. <style> div.faq-content .faq-question { text-decoration:none; font-size:20px; display:block; } .faq-answer{display:none;} div.faq-content li { position:relative; overflow:hidden; } </style> <@liaAddScript> (function($){ $(document).ready(function(){ $('.faq-question').click(function(e){ e.preventDefault(); $(".faq-answer").hide('slow'); $(this).next().not(':animated').slideToggle(); }); }); })(LITHIUM.jQuery); </@liaAddScript> 2. Add the above custom component to the FAQ Page quilt. and voila! :) Hope somebody finds this useful!KirillY10 years agoLithium Alumni (Retired)336Views15likes1CommentPoll CSS
Hi, Try as I might, I can't find out what the name of the poll component is in CSS so that I can change it. Currently ours in Stage looks like the below, so it must be already in there somehow, but I can't find which part to edit. Any advice is welcome! Thanks, SheenaSolvedSheenaK10 years agoDirector140Views0likes2Comments