Skip to main content
removed "Drupal" and tags from the title
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

Drupal 8: Add custom class according to taxonomy in Views

Source Link
Tony
  • 141
  • 8

Drupal 8: Add custom class according to taxonomy in Views

I have content type car, which has three fields: car model, year model and category (taxonomy term). In taxonomy term, I have three lists: volvo, toyota and BMW.

In the picture below, I have added a custom class called grid-item and besides that I would like to add a category name such as volvo, toyota or BMW. I would able to add category name if replacement patterns has been available :/

enter image description here

In the source code, you guys can see that I have class grid-item and I want to have a category name accoding to cars next to it.

enter image description here