Edit / tweak existing links

New Oceans - February 9, 2007 - 13:42
Project:Custom Links
Version:6.x-1.4
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Hi,

Would be great to be able tweaking existing links (user's blog, read more, et cetera). Actually I'm looking for a module that makes it possible to make these links dissapear, move them to another line, or show them in a different order. AFAIK there is no such a module that makes this possible. Custom Links module seems to be very close (just like Read More Tweak module), so I thought: let's try a feature request ;)

Cheers,
Marc

#1

eaton - March 10, 2007 - 22:33
Status:active» postponed

This is probably outside the scope of the project for the time being. It woudl require the use of php snippets to properly handle things, and once you're in that realm, it's probably easiest just to write up a custom module that implements hook_link_alter(). For now, I'm marking it 'postponed', but I'll keep an eye on it and take a look if I figure out a better way. Thanks!

#2

New Oceans - March 11, 2007 - 00:36

No worries mate,
thanks too ;)

Cheers,
Marc

#3

drewish - January 15, 2009 - 17:38
Version:5.x-1.2» 6.x-1.4
Status:postponed» active

talked with eaton on irc about my need to remove links... so once you can remove a link then you could just re-add it with the end result being that you'd edited it.

#4

drewish - January 15, 2009 - 22:51
Status:active» needs review

this is kind of awkward because if you're removing a link there's fields that aren't really relevant.

AttachmentSize
custom_links_117511.patch 9.45 KB

#5

New Oceans - January 15, 2009 - 23:09

Hi Andrew,

You're working on an issue I've started about 2 years ago ;)

To be honest, it has been defined as a feature request,
but it's not very important for me at this time.

Just for info.

#6

drewish - January 15, 2009 - 23:13

cleaned up the admin table. and an indenting issue.

AttachmentSize
custom_links_117511.patch 9.34 KB

#7

drewish - January 15, 2009 - 23:14

new oceans, don't worry i'm scratching my itch not yours ;)

#8

drewish - January 16, 2009 - 01:27

Did some tweaking on UI for entering paths... I'll let eaton be the final judge of that.

The also got the teaser/not teaser bit working.

AttachmentSize
custom_links_117511.patch 13.23 KB

#9

drewish - January 16, 2009 - 02:50

Yuck... so it looks like Zen does two calls to node_links so it can do it's "in Taxonony terms" bit. We might need to implement both hook_link() and hook_link_alter() and to additions in hook_link() and alterations/removals in hook_link_alter(). The downside is that means extra filtering on the $links. I'm almost ready to add a query builder to _custom_links_load_all_links() and have it cache based on the parameters... that or just ditch it and have each consumer load and cache their own rows.

 
 

Drupal is a registered trademark of Dries Buytaert.