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
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

AttachmentSize
exposed.png61.98 KB

#1

giorez - December 7, 2008 - 00:07

sorry for my english... I would say:

when I expose filter in views i get code... any chance to get human readable text?

#2

merlinofchaos - December 16, 2008 - 06:14
Project:Views» Content Construction Kit (CCK)
Version:6.x-2.x-dev» 6.x-2.x-dev
Component:exposed filters» Views Integration
Category:bug report» feature request

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

giorez - December 18, 2008 - 09:03

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

#4

meeotch - December 20, 2008 - 17:31

Try out the Views Checkboxes module:

http://drupal.org/project/views_checkboxes

Worked for me.

#5

giorez - December 20, 2008 - 21:17

unfortunaly, I'm useing D6, anyone else?

#6

prbass - December 21, 2008 - 14:10
Category:feature request» support request
Status:active» closed

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.

 
 

Drupal is a registered trademark of Dries Buytaert.