Choose content types

cerber0s - October 12, 2009 - 05:26
Project:Read More link (Drupal 6 and earlier)
Version:6.x-5.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Todd Nienkerk
Status:won't fix
Description

It would be good if you could choose which content types to alter. Or even have different settings per content type (eg 'Read more' for one type and 'Details' for another).

#1

Todd Nienkerk - November 10, 2009 - 05:09
Version:6.x-3.0» 6.x-5.x-dev
Assigned to:Anonymous» Todd Nienkerk
Status:active» postponed (maintainer needs more info)

No new features will be added to the 6.x-3.x branch of this module. Re-filing under 6.x-5.x.

What you're asking for can be achieved by overriding theme_ed_readmore_link() and checking $node->type. I have committed a change to the theme function that gives you direct access to the $node object.

Since what you're asking for is pretty specialized, I'd rather rely on theme overrides instead of complicated administrative interfaces to heavily customize the behavior of the link. Let me know what you think.

#2

Todd Nienkerk - November 24, 2009 - 19:41
Status:postponed (maintainer needs more info)» won't fix

I'm going to mark this issue "won't fix," as the behavior is rather specialized, would require significant changes to the administrative interface, and would make the module more difficult to configure. Additionally, the requested behavior can be achieved by overriding theme_ed_readmore_link() as described above.

 
 

Drupal is a registered trademark of Dries Buytaert.