Answer the question
In order to leave comments, you need to log in
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. 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 questionAsk a Question
731 491 924 answers to any question