it would be just unbeatable to have token integration for "Link title" and "Link hover title" textfields
having the ability to use referenced node's title, nid, etc (the nid would be nice for tracker whether issues are followed with links like [#123])
then it would be possible to add titles like Add a new issue to project: [title] or Add a new whatever to issue #[nid]

Comments

arhak’s picture

Title: token support for "Link title" and "Link hover title" » token support for "Link title" and "Link hover title" (patch provided)
Status: Active » Needs review
StatusFileSize
new4.63 KB
new4.63 KB

I'm not a token savvy, thus, this is a working patch to be reviewed, but most likely it will need some clean up

arhak’s picture

this patch must consider stop using the 'token' namespace (declaring function theme_token_list) in case this other patch gets committed to token module: #576592: theme_token_list (split theme_token_help in two)

quicksketch’s picture

Status: Needs review » Needs work
arhak’s picture

Title: token support for "Link title" and "Link hover title" (patch provided) » token support for "Link title" and "Link hover title"

well, yeah.. it has TODO marks
but:
- does it work in a desirable manner?
- what would be the areas it needs work?

quicksketch’s picture

Basically it needs the TODOs cleaned up. We shouldn't be using the token module namespace, I doubt that major API change will happen in the Drupal 6 version of the module, so we'd best just make our own theme function. We did the same thing for Flag module, see http://api.lullabot.com/theme_flag_token_help

arhak’s picture

Assigned: Unassigned » arhak

thanks for the clarification

arhak’s picture

Assigned: arhak » Unassigned

actually, I'm gonna be very busy this month
anyone can pick this up, it's pretty much done (I think)

mattiasj’s picture

This would be a great addition, and clearly bring a greater experience to editors. Any progress on this patch?

arhak’s picture

just clean up the code considering what quicksketch pointed at #5

igor.ro’s picture

StatusFileSize
new1.76 KB

We do not need adding new token type.

Here is better solution