2134 Results
Custom 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 "T...Solved336Views
Sign in to react to this post3Comments
darrenSP - You can easily update the confirmation message from a text editor.
Below is the text key used for show Thanks for your feedback message.
page.RatingEnumerationDisplay.feedback.success.title
Studio -> Text Editor -> Community Text
Lithium uses the text key for each string appearing in the community. You can search for the string you want to update from there.
https://community.lithium.com/t5/FAQs-email-templates-and-text/About-text-keys/ta-p/109029
https://community.lithium.com/t5/FAQs-email-templates-and-text/Find-text-keys/ta-p/109027
Regarding the custom component for this, there is no POST API call available for helpfulness, you can only perform GET action.
Sign in to react to this post
Free Marker: Any way to know if MyProfilePage was saved.
Hi There... I'm fairly sure I can do a lot of what I want using javascript. However, if possible I rather use Free Marker. Is it possible to know that the MyProfilePage was saved (as when t...Solved649Views
Sign in to react to this post8Comments
- AdamT15 years agoLithium Alumni (Retired)
My apologies.
You'll need to reference the results as so:
<#if activity.results.name.UserUpdated??> ... </#if>
Sorry for the confusion!
Sign in to react to this post
custom code only on 2 pages
...ontext-object/ta-p/9331) to specify a code to run only on two pages (based on URL). Context: we have a remarketing code snippet that we want to fire when a user goes to two specific pages....Solved544Views
Sign in to react to this post4Comments
- rwm11 years agoAdvisor
The page object doesn't support that. Instead, use the http.request context object which does have a url method. Using that along with the Freemarker contains built-in can do what you want. For example:
<#if http.request.url?contains("/t5/path/to/page1") || http.request.url?contains("/t5/path/to/page2")> <code for special pages here> </#if>Sign in to react to this post
3.4KViews
Sign in to react to this post0Comments
Big Data Reduction 2: Understanding Predictive Analytics
...bsp; Michael was voted a 2010 Influential Leader by CRM Magazine for his work on predictive social analytics + its application to Social CRM. He's a blogger on Lithosphere, and you can follow him&n...45KViews
Sign in to react to this post4Comments
2.2KViews
Sign in to react to this post0Comments
2.3KViews
Sign in to react to this post0Comments
LITHIUM.jQuery perform code with 2 seconds lag
Hi all, I have a problem with LITHIUM.jQuery. I want to slightly modify standard Litihum breadcrumbs by using javascript. I created special custom component in Litihum Studio for that. Here is t...Solved573Views
Sign in to react to this post2Comments
- DougS13 years agoKhoros Alumni (Retired)
You could wrap the breadcrumb in a div that is hidden (display:none) and then have your javascript un-hide the div after it has adjusted the breadcrumb.
Another approach you can take is to create a custom breadcrumb, using the freemarker objects we have for working with the breadcrumb (so all your logic is run server-side). Here is information about the freemarker breadcrumb context objects we have:
Method Description Example content.nav.breadcrumb.crumbs returns a list of breadcrumbs for the currently rendering page <#list page.content.nav.breadcrumb.crumbs as crumb> <#-\- do something \-->
content.nav.breadcrumb.css returns the main css class name for the breadcrumb component ${page.content.nav.breadcrumb.css}content.nav.breadcrumb.separator returns the character that is used to separate breadcrumb items ${page.content.nav.breadcrumb.separator}content.nav.breadcrumb.crumbs[i].text returns the localized text of an individual crumb ${page.content.nav.breadcrumb[0].text}content.nav.breadcrumb.crumbs[i].url returns the url to a page if an individual crumb is a link. This may return null, but you can check if it will be a link by calling the .link method ${page.content.nav.breadcrumb[0].url}content.nav.breadcrumb.crumbs[i].isLink returns true if the individual crumb is hyperlinked <#if page.content.nav.breadcrumb[0].isLink>\\ <#-\- do something \-->\\
content.nav.breadcrumb.crumbs[i].wrapperCss returns a css class for the li tag around an individual crumb. Will always return a string (never null, but possibly empty) ${page.content.nav.breadcrumb[0].wrapperCss}content.nav.breadcrumb.crumbs[i].css returns a css class for an individual crumb. Will always return a string (never null, but possibly empty) ${page.content.nav.breadcrumb[0].css}content.nav.breadcrumb.crumbs[i].separatorCss returns a css class for the separator character of an individual crumb. Will always return a string (never null, but possibly empty) ${page.content.nav.breadcrumb[0].separatorCss}content.nav.breadcrumb.crumbs[i].type returns a breadcrumb item type that this individual crumb fits into. Possible return values are as follows (and a breadcrumb will render links in the order below, from top to bottom): - community
- tkb (strange, special type b/c tkb breadcrumb links include a link to a main tkb page for the community)
- container_node
- leaf_node
- message
- pre_page_title
- page_title
${page.content.nav.breadcrumb[0].type}Here is an example of putting all of the above context objects together into a custom breadcrumb:
<div class="${page.content.nav.breadcrumb.css}}"> <ul> <#list page.content.nav.breadcrumb.crumbs as crumb> <li class="${crumb.wrapperCss}"> <#if crumb.link> <a href="${crumb.url}" class="${crumb.css}">${crumb.text}</a> <#else> <span>${crumb.text}</span> </#if> </li> <#if crumb_has_next> <li class="${crumb.separatorCss}"> <span>${page.content.nav.breadcrumb.seperator}</span> </li> </#if> </#list> </ul> </div>Sign in to react to this post