I populated checkbox of cck textfield with following values:

alpino|<img src="/sites/default/files/icone/alpino.gif" />
nordico|<img src="/sites/default/files/icone/nordico.gif" />
snowboard|<img src="/sites/default/files/icone/snowboard.gif" />
telemark|<img src="/sites/default/files/icone/telemark.gif" />

when I expose filter in views i get filter with Only local images are allowed. instead human readable text

can anyone help me... I'm also ready to pay for any solution

CommentFileSizeAuthor
exposed.png61.98 KBAnonymous (not verified)

Comments

Anonymous’s picture

sorry for my english... I would say:

when I expose filter in views i get Only local images are allowed. code... any chance to get human readable text?

merlinofchaos’s picture

Project: Views (for Drupal 7) » Content Construction Kit (CCK)
Component: exposed filters » Views Integration
Category: bug » feature

It's not a bug; select boxes can't have HTML inside them. Blame HTML for that.

Maybe there's another way to do it that CCK could do, so I'm marking it a feature request but I feel 95% certain that CCK developers will shrug and say "Sorry, can't fix," unless they have better ideas than I do.

Anonymous’s picture

what a pity, there is anyboby (will be payed) to help me in a possible workaround? maybe throught a parallel cck computed field?

meeotch’s picture

Try out the Views Checkboxes module:

http://drupal.org/project/views_checkboxes

Worked for me.

Anonymous’s picture

unfortunaly, I'm useing D6, anyone else?

prbass’s picture

Category: feature » support
Status: Active » Closed (fixed)

I would suggest using a Taxonomy based approach, and Taxonomy Image: http://drupal.org/project/taxonomy_image rather than CCK for this.

This works with views out of the box, (although of course for the reason mentioned above, you cannot have images in an HTML select element, so it will use the term name instead.

You should be able to get everything else how you need it through theming, no custom coding required.

I'm going to mark this as closed. Giorez - I'll help you with this in your other thread in the forum http://drupal.org/node/347004, rather than cluttering up the CCK issue queue.