Hello, This is a feature request. Not sure if this is a planned or requested item as I couldn't find it?

The idea is that instead of having only a pre-set class field on the link CCK config page, that you could also make a drop down list for someone to pick from. The text they pick, would get appended to the class. This field would be in addition to, not instead of the existing "custom class field".

The use case is as follows: We have a node that can have different resources [links] in it, some of them are PDFs, others are external links, some are documents... we need a different icon for each "type" but we still need them to be arrangeable together. The drop down would set the necessary class to trigger the correct icon.

Thanks!

Comments

stella’s picture

Status: Active » Needs work
StatusFileSize
new3.67 KB

Attached is a patch that gets you part way there - it adds a textfield where the user can add a css class to the link when editing the node. It wouldn't take too much more work to make it into a drop-down.

stella’s picture

Status: Needs work » Needs review
StatusFileSize
new5.06 KB

Here's another version which gives a drop-down. I'm not sure that this is ready to be committed or anything, but might be of use to some people.

damienmckenna’s picture

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

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