I'm using tokens to display fields within a panel. I have the 'Token' custom display enabled in 'Manage Display' for the content type, and I have the label set to 'Above'. However, it's only displaying the value of the field and not the label. Why?

Comments

roryt2000’s picture

Project: Panels » Token
Version: 7.x-3.4 » 7.x-1.x-dev
kenorb’s picture

As per this post:

The labels are not part of the field and are not intended to be. The style renders the field and label separately. In the vast majority of use cases, you do not want the label. If you do, you can rewrite the original field to include the label, or include the label as you like.

kenorb’s picture

kenorb’s picture

Category: Support request » Feature request
kenorb’s picture

Related issues: +#691078: Field tokens

Another revision that gets rid of the need for the _token_field_attach_view() function by using field_view_value() and field_view_field(). This makes it impossible to have tokens with labels or full field rendering. I guess we could add something like [entity:field-name:rendered] if people want that.

Source: #691078-92: Field tokens

kenorb’s picture