Labels verbergen in Views (Drupal)

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen

Drupal Commerce en Drupal 7 nemen het concept van abstracte datatypes en bijbehorende weergave, naar een compleet nieuw niveau. Maar er lijkt een vreemde inconsistentie in te zitten tav. weergave van content in views/displays/whatever:

  • Label bij SKU kun je niet verbergen
  • Label bij Titel kun je niet verbergen.

Oplossing tav. Titel

De titel komt meestal twee keer voor: In het producttype en in de view. Die 'andere' titel is wel aanpasbaar.

Oplossing tav. SKU

Niet: Zo erg is dat meestal niet.

Zie ook

Bronnen

I had the same problem. A Product Display content type always shows SKU and Title of the referenced product with exactly 
these wordings for the label, and the label is always set to be displayed Above. Inline and Hidden are not possible. 
The only built-in alternative is to not display these fields at all, by selecting the Formatter Hidden (instead of Visible). 
This is what I did. I created two custom fields of type Computed instead. This gives you complete freedom on what is 
displayed how.

Verder lijkt dit artikel een oplossing te hebben: De Render API, maar ik weet niet wat dat is.