[support] Reversing field value and label

Bert Van Kets bertvankets at gmail.com
Sat Jul 26 11:47:55 UTC 2014


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 <killshot91 at gmail.com>
>     **
>     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.
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20140726/01ae80e7/attachment.html 


More information about the support mailing list