I think that we'll be useful if in the settings form, is added a new text field to add a custom class to the link, so it can be use with the popups module or other modules that triggers event of js using classes.

Comments

quicksketch’s picture

You can already target the link, since all node links are given unique classes. I don't see why adding 2 classes would be particularly beneficial.

2ndChanceTech’s picture

Well, modules like Popups, can be set to act on a SPECIFIC class, so you can keep it the same across your site, without having to set it to work on EACH individual link class. This would reduce code in the theme layer and CSS.

I would think that Popups integration or at least something making it more usable would be not only a little beneficial, but VERY.

Think, with popups intergration, which is easy as setting the link class to that configured it popups, and you could create related nodes, without ever leaving the original. (Ex: Write a review of a product, without leaving the product page).

Not to mention, being able to assign custom classes to items is common among various modules.

quicksketch’s picture

Status: Active » Closed (won't fix)

I still think this is exttremely unlikely to be added. As nodereference_url links are already given their own class, I can't see the extensive use of having disparate link classes applied to these particular links. If you really want to add the class, you can do so through hook_link_alter().