LiveWhale CMS

Welcome, Guest Login

Support Center

Our documentation is moving: docs.livewhale.com

Please check docs.livewhale.com for the most up-to-date LiveWhale CMS and LiveWhale Calendar documentation. The below legacy documentation will remain available as a reference until the documentation migration is complete.

Limit summary length with onWidgetFormat

Last Updated: Feb 27, 2014 04:52PM PST

Do you find that some site editors are entering summaries well beyond a desirable word length? You can compose a shorter version of the summary, ellipsis in tow, with this small application module.

Once in place, this module creates a new short_summary widget format value, or allows you to replace the existing summary with a shortened version.

Find the code in this Gist: https://gist.github.com/mckelvey/9262848
Depending on which you choose, place this module in a folder called “short_summary” or “summary” in your LiveWhale backend /client folder and adapt it as needed.

This is just one example of how to modify widget variables (the values the will be inserted into a widget) prior to actual insertion. You can use similar means to alter any variable in any widget type, even limiting it to certain areas of the site, by person, ip address or any other factor available at the time of output.

eb8f96c071020d8b0923da726d6cab65@livewhale.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete?b_id=4256