Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
6.x-1.0-alpha
Component:
content.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 May 2008 at 05:01 UTC
Updated:
9 Jun 2008 at 12:16 UTC
Comments
Comment #1
coltraneIt works as designed. The label is always displayed outwardly, but the key is stored in the database and used in the node object. This is useful if you wanted a really long label but a shorter key used internally by other modules for example.
If you want peter to show after creating a node then you could not set pann as the label for the field. peter will also show in the select option though.
Comment #2
nadid commentedOh, look's like you are right, sorry. I guess then the problem is not from this module, and probably is from cck blocks module, I will ask there because it is showing the label and not the key in the output, maybe is also by design, but better ask.
Thank you :)
Comment #3
nadid commentedHi,
As I reported here the cck block is doing something weird because it shows the label and not the key when the label in default values is selected. Maybe it is by design also but I would like it behavies diferently, and thats why I've openned this support request.
As you can see in the next issue, im trying to do something to solve make it do what i want it to do.
#264726: Rare behaviour when key|label is set.
The problem is I dont understand why the next line is showing the label and never the key differently as cck does.
I have what I want to show in the $item['value'](the key) var. And I can use it straigth. And it seams like the before code likes to show the label.
Can anybody explain to me what I should do to show the $item['value'] when it is deffined and when it's not show the
If I do
it shows an &.
Thank you.
Comment #4
nadid commentedHi, I close this support request because I just understood what was happening,
As coltrane said it shows the label always if it is defined, so, if I want to show the key i must get it from the database.
Maybe the node object is using the key, but it shows the label.
I think what maked me to missunderstand was the sentence:
"but the key is stored in the database and used in the node object"
I thought it is used and showed but it must be something like used internally, and it isn't showed at all.
Thanks for the help