Show views page based on path I have 3 node types: 


category
subcategory 
product


These are all linked using Entity Reference module. All pages have a path (using autopath). What I want to do is show a view depending on the path.

So if I go to categories/category-a/ I want to show all subcategories of that category
Same for the products. I want to show all products referenced based on the path.

I'm trying to make a view with path = categories/%

I set a "contextual-filter: content: nid" - "provide default value" - "raw value from url". But when I visit "categories/category-a/" I see the node with this path. The view isn't shown.

Any idea what's wrong here?
You could try out this Article..

The contextual filter should be "content:nid"

The options should be set as follows...


The Relationship should be your "Entity Reference: Referenced Entity" relationship
Under "When the filter value is NOT available" check "provide default value" and select "Content ID from URL"
Apply changes and save view.