logo

Palette - Make it Colorful🎨

Palette - Visual Page Builder, no design degree required.

Live Demo Download Palette

Scroll

Need help with Views 3 for Drupal 7

22/02/2025, by Anonymous (not verified)

There is the following task.

 

There is a taxonomy with 2 levels.

I need to create Views for the first level, which I have managed to do 

 

 I created a taxonomy type view and specified the taxonomy vocabulary

and a page appeared. In it, I configured contextual filters (as I understood, this is where the argument is specified) and selected the taxonomy term "parent term" with the default value set to PHP-code result arg(1) 

As a result, I got a list of first-level terms.

 

However, when accessing the links of the first-level terms, I do not get a list of the second level; instead, I immediately see a list of nodes that have the "selected parent"

 

How can I implement a taxonomy view by levels?

For example: a list of first-level taxonomy appears as links

then I need to go down a level. There should be another list, but now of the second level. And then, when clicking on the link of a second-level term, I should see a list of nodes that meet two conditions :)

 

I look forward to your response with anticipation.