I am running Drupal 6.14 and I can't seem to get the link module to output attributes or classes. I have tried it on two separate installs. Am I missing something? This should be applied to the link should it not?

Comments

jcfiala’s picture

This got fixed in the dev release, which hasn't made it's way to an official 2.9 release yet.

narky’s picture

Just to add a bit more information:

The attributes (including classes) showing up seems to be tied to the "Link Target:" option. When link target is set to anything else other than "Default (no target attribute)", AND the checkbox is checked/unchecked in the node edit form, the rest of the attributes below the link target show up properly.

In other words, the '#attributes' array inside the field seems to be created not by default, but only when link target is set (in CCK field edit form), and then the user (un)sets an options (in the node edit form).

At least, that's what seems to be going on from the behavior. I did look at the .module file to verify, but the code didn't look like what I described above. Perhaps I didn't understand it well enough. =) Thanks for the work!

jcfiala’s picture

Status: Active » Closed (duplicate)

This is either fixed in 6.x-2.x-dev, or it's a duplicate of #664990: No Rel-Attribute - I'm going to close this one and redirect any further efforts there.

picardo’s picture

Status: Needs work » Active

This doesn't seem fixed in 6.x-2.x-dev.

picardo’s picture

Status: Closed (duplicate) » Needs work

I just realized that the classes were being cached. After a few hours, cache expired and now I can see them. Maybe some kind of cache buster can be added to fix this?

jcfiala’s picture

Status: Active » Postponed (maintainer needs more info)

Explain what you mean by the classes being cached?

And you can always clear the cache if you're the admin.

dqd’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)