0
votes

I try to make a view which lists all linked sub nodes from a specific menu item. So let's say we have the following a menu:

- Home
- About us
- Modules
  - Module A
  - Module B
  - Module C

I like to be able to get all nodes in a view which are attached to the Modules menu item.

Is there any module which can help me with this? Or does the Views module provide a solution out of the box for that?

1

1 Answers

0
votes

So, assuming you know how to create a view that displays all nodes associated with "Modules", all you need to do is use "Contextual Filters" to do it instead of regular filters.

Regular filters are something that you can either set or allow the user set himself. What you need though is to get this as a parameter from the URL, so each one of those menu links will provide a different filter to the view and just display the nodes you want - and that's what Contextual Filters allows you to.

Hope this helps!