Add option to change or remove 'more' link in blocks

two2the8 - February 6, 2009 - 03:00
Project:Delicious
Version:6.x-1.2
Component:User interface
Category:feature request
Priority:normal
Assigned:two2the8
Status:needs review
Issue tags:more link, views
Description

I'm working on a site for which we don't need the 'more' link displayed in our delicious blocks. All we need is to display 3 items from delicious that match the tags for a given node (which is accomplished using the super-handy hook_delicious example... thanks!)

While we *could* just change css to display:none for this link, I thought it might be better to give users some control over it: ie, what it's called, and whether it displays at all. I poked around in the module and came up with what I hope is an okay solution. I've attached a patch that adds a setting at admin/settings/delicious to change the term used for the 'more' link. If left blank, it disappears entirely.

Maybe not the most elegant solution, but somehow it feels better than just setting this not to display in css.

AttachmentSize
delicious_more_link.patch1.33 KB

#1

Narno - March 1, 2009 - 21:00

Create your block with Views module (http://drupal.org/project/views) for more flexibility, Delicious module (6.x-1.x-dev) is compatible with it.

 
 

Drupal is a registered trademark of Dries Buytaert.