Checkbox label as link

pictogram - February 11, 2008 - 21:27
Project:Content Construction Kit (CCK)
Version:5.x-1.x-dev
Component:General
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I have a text_field defined as checkboxes with 2 (allowed) values in it with the format key|value. Multiple values and full html output are set for this field. Here's an example :

in the field definition
value1key|Value1
value2key|Value2

in the edit node window
[X] Value1
[ ] Value2

in the node output
Value1

Nothing really magic there !!!

But I would like to have the output of the checkboxes returned as links pointing to specific nodes which have the key value as name??? I'm using the contemplate module as well to have full control over my output and tried to hack something in it without success. I can't make this work !!!

Maybe there's another way to do what I want but ... ??

Thanks for any help

#1

Onopoc - February 23, 2008 - 18:03

The following worked for me:

Home › Administer › Content management › Content types › my content type - configure

Allowed values list:
0|Do not display
1|Display <a href="http://www.google.ca" target="_blank">www.google.ca</a>

Please find attached screenshots

AttachmentSize
Result.jpg2.66 KB
Solution.jpg34.92 KB
 
 

Drupal is a registered trademark of Dries Buytaert.