Long descriptions - is there a "show more" and "show less" feature


https://forum.kartris.com/Topic6405.aspx
Print Topic | Close Window

By jeffb - Tue 9 Feb 2016
Some of our product descriptions are several paragraphs long.By chance, is there any config setting that will only show X number of letters or words in the description, then a SHOW MORE button to click to show the balance of the description?

Thanks in advance.

By Paul - Thu 11 Feb 2016
Descriptions that show within the category pages (i.e. when viewing multiple products within a category, in normal or extended view where product descriptions show) are automatically truncated using the frontend.products.display.truncatedescription, and HTML is stripped out to ensure formatting is not messed up (truncating text with HTML can result in opened tags without close tags, or tags that start but don't finish renderings parts of the page invisible).

There isn't anything to truncate descriptions within the full product page; I guess it could be done with jquery or with some server side postback removing the truncation.