text replaced with image in cck textfield, exposing non working properly
giorez - December 7, 2008 - 00:00
| Project: | Content Construction Kit (CCK) |
| Version: | 6.x-2.x-dev |
| Component: | Views Integration |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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 instead human readable text
can anyone help me... I'm also ready to pay for any solution
| Attachment | Size |
|---|---|
| exposed.png | 61.98 KB |

#1
sorry for my english... I would say:
when I expose filter in views i get code... any chance to get human readable text?
#2
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.
#3
what a pity, there is anyboby (will be payed) to help me in a possible workaround? maybe throught a parallel cck computed field?
#4
Try out the Views Checkboxes module:
http://drupal.org/project/views_checkboxes
Worked for me.
#5
unfortunaly, I'm useing D6, anyone else?
#6
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.