3

This is the Drupal 8 version of the following question: How do I override a taxonomy/term/% list with a view?

In short: You can edit the default, global taxonomy/term/% view, but you can not set custom taxonomy view. For example, /my-custom-category/% will show the default, global view output (not the customized one).

As you can see, the most elegant solution for Drupal 7 was using the Taxonomy Display module. However, it hasn't been ported.

How would you tackle this problem in Drupal 8?

4
  • Disable the default view?
    – No Sssweat
    Commented Jul 21, 2016 at 5:27
  • @NoSssweat Unfortunately, this seems to work only if no term id is given. So /products/ would display my view, but /products/14 would display just a blank content area (while displaying term name in <title>). P.S. Thanks for editing my post.
    – Gugols
    Commented Jul 21, 2016 at 9:26
  • how is your contextual filter set up?
    – No Sssweat
    Commented Jul 21, 2016 at 9:41
  • @NoSssweat I guess I tried to use the same ones as default core taxonomy term view used. However, it seems that I have found the solution - a module called "Taxonomy Views Integrator" which provides with the needed functionality (I posted it as answer).
    – Gugols
    Commented Jul 21, 2016 at 10:59

1 Answer 1

3

Ok, it seems that I have found a solution. A Drupal 8 & 7 module called "Taxonomy Views Integrator" provides ability to set custom view for each vocabulary and/or terms. So far seems to work fine. Link to module - https://www.drupal.org/project/tvi

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.