Pull Quotes

By donmc, 21 January, 2012

I wanted to add some CSS to my Drupal sites to provide a cool quotations look for blog posts etc. This is the module that I found that I think does a very good job. Unfortunately, I also need an option to remove the original text from the post - so that ONLY the pull quote is viewable. But that doesn't appear to be available as an option with this module. For most of the time, I really want the quote to be INLINE in the text. Any thoughts on how that could be done would be welcomed - you can comment on it here if you like... What follows is the description of the module from the drupal website at http://drupal.org/project/pullquote

A pull-quote is a quotation or excerpt from an article that is typically placed in a larger or distinctive typeface on the same page, serving to entice readers into an article or to highlight a key topic.

Without the module, authors would need to duplicate the text excerpt.

Functionality

This module automates and simplifies the use of pull-quotes for Drupal, by:

  • removing the need to duplicate excerpts;
  • automatically adding opening and closing quotation marks to the pull quote;
  • leaving the excerpt unchanged in the body text;
  • formatting the pull-quote to match your site's design, using CSS.

To use, simply place intended text excerpt inside a span tag with a class of 'pullquote'. The module then duplicates the text, adds opening and closing quotation marks and formats with an eye-catching design.

Benefits

This has several advantages:

  • the avoidance of duplicated text, makes your work better with screen-readers like RSS, as there is no out of context excerpt duplication;
  • it is easier for less skilled authors to create pullquotes;
  • pull-quotes can be put on the opposite side, simply by adding a different CSS class; and
  • if you later want to change the design of your pull-quotes, you can do so with just one simple change.

Development roadmap

Credits

Thanks to:

  • css-tricks.com for their inspiration;
  • Sun for his code critique during development;
  • lliss and callison for their invaluable coding and co-maintainer contributions.