Pages

Thursday, April 15, 2010

Customize Drupal's 'read more' teaser link placement on Drupal 6


Here's a standalone module that provides the handy customization described at AngryDonuts.com. You can see it in use on this site.
It offers administrator options (at admin/settings/ed_readmore) to enable / disable the tweak, and control placement of the read more link.
You can tweak your css file to provide greater control over the read more link formatting. For example, I use this to prevent the read more link wrapping when it's at the right margin:
span.read-more { white-space: nowrap; font-weight:bold; font-style:italic;} 

Compatibility

The module is designed to work with Drupal 4.7, Drupal 5, and Drupal 6, running PHP4 or PHP5.
Usage notes
Install ed_readmore.module as usual: create a modules/ed_readmore directory, unpack the files there. Then, enable the ed_readmore module.
Visit the admin/settings/ed_readmore page and configure the options. Be sure to check off the options that enable moving the 'read more' link (these are enabled by default in later versions.)

Now hosted on Drupal.org

This module now has a home on Drupal.org: http://drupal.org/project/ed_readmore

No comments:

Post a Comment