I am trying to use the built-in "link-title" token as the "title" attribute on the field setup page. By default, if left with basic settings, the title field for each URL does not get added as the title attribute for the link.

Therefore, I tried to set the "Link 'title' Attribute" at the bottom of the field setup page to use this token, to force the attribute to be created on the link element and use the text the user entered as a title for each URL.

However, when saving the node, the link module is only using the last field item's token value and applying it to all of the URLs added in this multiple (Unlimited) values CCK field.

Unless I'm missing something, I see this as a critical bug. Can anyone suggest a patch if so?

Example

Entered as ([Link Title] | [URL]):

Find me on Facebook | www.facebook.com/userX
Follow me on Twitter | www.twitter.com/userX
Join me on LinkedIn | www.linkedin.com/userX/view

Is rendered on the node and in the database as:

<a href="www.facebook.com/userX" title="Join me on Linked In">Find me on Facebook</a>
<a href="www.twitter.com/userX" title="Join me on Linked In">Follow me on Twitter</a>
<a href="www.linkedin.com/userX/view" title="Join me on Linked In">Join me on LinkedIn</a>

Note here all three different links are using the last link's title.

Comments

amaisano’s picture

Issue summary: View changes

Added example

amaisano’s picture

Issue summary: View changes

unrendered HTML

dqd’s picture

Priority: Critical » Normal

Well amaisano, thanks for the report but yes, you are missing something :-) ...

the guidelines for critical bugs. :-)

Please use this only for bugs causing a site crash, a white screen of death, a security risk or sensitive data loss. Since the title tokens are not sensitive datalosses and the rest of the site is still working, this is NOT a critical NOR a major but rather are normal bug.

Thanks for understanding. And feel free to try out patching. ;-) There is always a first time

Greetings

amaisano’s picture

Well I'm a little embarrassed here - apologies for the unnecessary urgency. If I find time one day, I'll look into it, but PHP and I aren't the best of friends. Until then, I'll be on stand-by here, and open to suggestions.

Thanks.

amaisano’s picture

Issue summary: View changes

oops - left HTML markup inside an attribute.

damienmckenna’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Thank you all for your efforts, but I'm sorry to say that the D6 version is no longer supported.