Re: Reversing field value and label
Bert Van Kets <[email protected]>
| Newsgroups | gmane.comp.php.drupal.support |
|---|---|
| Message-ID | <[email protected]> |
Just my $0.02 If the label is changed often, it's actually not a label, but a field. Why not add a "label field" and just concatenate with the value? This removes some code and gives the end user a cleaner interface to change things. Bert On 26/07/14 05:08, Nancy Wichmann wrote: > Thanks all. I ended up doing a preprocess_field() together with a > custom field--list-boolean.tpl.php. It looks good now. > > ------------------------------------------------------------------------ > *From:* Steve Edwards <[email protected]> > ** > Have you thought of a node preprocess function that creates a > variable with the formatted label and output, and then just use > that in your node template? Granted, it requires an override of > the node template in your theme, but this would be a one time > change that would allow the user to change the content to their > heart's content without requiring any changes from you. > > > -- [ Drupal support list | http://lists.drupal.org/ ]