Expandable content in the drupal node page (Javascript functionality)?
-
27-02-2021 - |
Pregunta
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!
Solución
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();
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow