D
D
Dr_Gonzo2018-03-22 09:18:26
Drupal
Dr_Gonzo, 2018-03-22 09:18:26

How to display the fields of the taxonomy tag on the page, through views?

The site uses taxonomy terms that users add to content. By clicking on any term, we get to its page, where all materials with this tag are displayed using views.
At the top of this page at the moment, only the name of the tag is displayed, I also need to display the picture and description of the tag. As far as I understand, this is done by theming.
Question - what code in the template can display the tag fields (image, description, etc.)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Alexandrov, 2018-03-23
@Dr_Gonzo

1. A block is created, a view, where the relationship will be established with the current (active) taxonomy term from the url.
2. Then the fields that the taxonomy has and are filled with content are selected - description, picture, and so on.
3. This most ready-made block, the view, is embedded in the header area of ​​the view where all the materials are now displayed.
This is implemented from the views box, it is not necessary to get into the code.
Or, for example, smoke this thread
https://www.drupal.org/project/views/issues/1043234

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question