Remove highlight class from messages.search_snippet
Hello all, We have a custom homepage component built that is showing a few latest threads from our Announcement board. Simple stuff. The problem is that the 'search_snippet' is highlighting the text if it's the same as the search query. In our case, the Announcement board is called 'news' and if it finds a word 'news' inside the 'search_snippet', it will be highlighted with the 'lia-search-match-lithium' class. For now, I'm considering removing it manually with the $('.lia-search-match-lithium').removeClass(); As far as I saw, the 'search_snippet' will always return highlighted text. Is there any way around this? Thank you!Solved2.4KViews0likes2CommentsLab / Idea / Unconference Meetup?
I have a couple things on my community backlog that probably require some level of customization - I tend to be looking for stuff in Atlas that already has some traction or headway AND I see lots of "under consideration" ideas AND I see lots of "Did anybody make an XYZ widget in their community..." questions BUT what I haven't yet found (beyond this forum itself) is an available time and place for Devs to get together on their own and either attack a specific common problem OR talk together through a top of mind issue. It could be anything from a KhorosLed affair or even just an Unconference we put on ourselves. Would be REALLY great if there was a vanilla lab stood up to do actual live-action work that participants could then try to leverage in their own environments later. Am I just not finding this yet? Do we need to bootstrap something? BlakeH - has this come up before?1.3KViews10likes26CommentsBuilt a service/status tracker status based on tags
Hello, I am creating a component that only shows based on the tags given to the message. The tags are hidden for non admins by the way. Using Freemarker I have no luck yet in getting/reading the tags or taglist from the current thread. Please help, half answers are also very welcome 🙂 Does anyone have a code snippet that shows how to 'get' the tags of the thread?Solved1.3KViews0likes3CommentsAPI call to post message has blank response
Hi folks. Been using this in an endpoint for many years, but now it returns a blank response, so I can't read if it was successful. <#assign result_post = restadmin("/boards/id/${board_id}/messages/post?message.subject=${msg_subject?url}&message.body=${msg_body?url}")/> If, however, I do a simple $.post('/restapi/vc/boards/id/${board_id}/messages/post?message.subject=subject&message.body=body') then I get a perfectly normal response. Did something change with the v1 API?800Views0likes6CommentsLatest activity not displaying
Hi everyone, Our community has a custom component that displays the trending topics, latest topics, and top liked topics on various tabs. I duplicated the component and scoped it to only display the blog posts for a new category. However, only the trending tab is displaying any content. The latest and top liked tab only shows the spinning loading icon. Here is a snippet of the code for the latest tab. I'm unsure of what more needs to change to get the content to display. <#-- recent --> <section class="custom-tab-content messages_recent" id="custom-community-activity-recent" aria-labelledby="custom-community-activity-recent-label" type="recent" target=".recent-message-list" offset="${messages_to_show}" style="display: none;"> <div class="recent-message-list tabbed-message-list"> <#-- Lazy load the results if the user clicks on the tab. --> </div> <#if messages_all_count gt messages_to_show> <#-- lia view all --> <div class="lia-view-all"> <a href="#" class="load-more-button lia-link-navigation">${text.format("custom-general.load-more")}</a> </div> <#--/lia view all --> </#if> </section> <#--/recent --> Any pointers would be appreciated. Thank you!760Views0likes1CommentWhere do I store a large amount of data, for reference?
Hi folks, planning a custom component which will basically check the user's id against a pre-existing list. I imagine this list could grow into the thousands. What are my options for storing this data/list? One option I use for smaller datasets is a hidden post and simply store it as a comma separated string. Another option might be to store a string in a custom metadata field, I guess? Any ideas how large that could be? (I don't have access to a separate server.)752Views2likes5CommentsKhoros extension for Visual Studio
Hi all, A customer recently pointed us to this Khoros extension for Visual Studio to help with FreeMarker customizations. Note that this isn't produced by Khoros. It looks pretty nice. I Hope Visual Studio users find it helpful. As a reminder, there are a couple of Chrome extensions you might like as well: Lithium Bulk Uploader Lithium Studio Editor Enhancement The code is a bit outdated, but so far, still works in Studio today.700Views1like2CommentsTrying to use occasion_data.status
I have a simple liql query where I'm pulling in all upcoming and ongoing (in progress) events. According to this doc there should be an object for occasion_data.status in the results. It's working within my query "WHERE occasion_data.status IN ('upcoming','ongoing')" but I get a null value if I try to use it in my FreeMarker template (e.g., <#assign eventStatus = listItems.occasion_data.status/>) Anyone know why? Did they miss adding this? Am I reading the doc wrong? Is my code incorrect somewhere?699Views0likes13CommentsRegEx replace hyperlink
I wonder if someone can help me with this one, since I'm having limited success. I'm trying to turn this <a class="cust-a" title="linktitle" href="http://thisismyurl.com" alt="alt here" >link text</a> into this [link text|http://thisismyurl.com] This gets me the link text, but apart from that I'm stuck. And I'd really like to do both of them in one replace, if possible. str?replace("(?i)<a([^>]+)>(.+?)<\\/a>","$2","rgmi")653Views0likes3Comments