Closed (fixed)
Project:
ImageField Extended
Version:
6.x-3.2
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2010 at 15:06 UTC
Updated:
19 Mar 2010 at 12:18 UTC
On the Display Fields page I select Label: Hidden. But the label is not hidden.
Thanks for a useful module! / Henrik
Comments
Comment #1
alan d. commentedWhich part are you referring to? The label on the CCK field, or the internal labels on the ImageField Extended additional fields?
Also, just in case it matters, what versions are you using? I just searched FileField and ImageField for this reference string (FileField drives ImageField which in turn drives IF Extended), and I could not locate a single reference to the string "Hidden"
Comment #2
hs@henrikstrindberg.se commentedWhen defining an ImageField Extended additional field, that field gets a label. This label is hidden on the teaser but printed on the full node. I want it hidden always. Maybe I have missed something but I don't see how to do that.
So if I've got it right this time this is a feature request: to have the possibility to show or hide the labels of the ImageField Extended additional fields.
Thanks / Henrik
(And, yes, I see what you mean: to select label->hidden on the page admin/content/node-type/mytype/display hides the label of the CCK field. I use FileField 6x-3.2, ImageField 6x-3.2).
Comment #3
alan d. commentedGotcha
Two easiest methods are:
1) Via CSS
The FIELDNAME is the CCK fieldname without the "field_" prefix.
For all content types:
For a specific content type:
2) Re-render the additional fields just before rendering them.
The easiest way is via the imagefield-extended-image.tpl.php template. Copy and paste this file into your theme directory, and add the following to the top of the file. You must flush your cache before this new file is registered with the Drupal theme registry.
3) Best, but a bit more complex, override the main formatter theming function. Cut and psate into your themes template.php file.
This one does not render checkboxes (as hidden values) or text elements with titles.
Comment #4
hs@henrikstrindberg.se commentedThanks!
/ Henrik
Comment #5
alan d. commentedI've added a note in the docs to reference this page. Let me know if you had any issues with the above examples.