Expandable content in the drupal node page (Javascript functionality)?
-
27-02-2021 - |
Question
I need to display a trimmed version of the content on the node page and upon clicking on a link ("Read More"), the page should expand ? Is there any Drupal Module that implements this functionality ?
Thanks!
Solution
I don't know if there's a Drupal module to wrap it, but you can easily do that using a jQuery plugin like readmore in the node view template.
It's a simple as doing
$(foo).readmore();
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow