Hello,
my use case is a bit special. I want to create a car registry and have some simple filters in it.
I would like that when a user goes to /cars, all of the cars are shown (this is working now). But I would also like to have the continents in the menu so if a user clicks on “Africa”, a new list page is loaded displaying only the cars (aka posts) inside /cars/africa.
Each index.md contains some basic information about the car: color, brand, etc. I would like to use this info to filter so that when a user selects “red” from a dropdown, only the cars whose parameter “color” equals red is shown. That can be achieved, I think, with jmooring’s awesome example in this post: Create a filter by taxonomy terms in the section page
My question is: is possible to have both things working at the same time? Seeing all the cars from all the continents when the user goes to /cars and seeing only the cars in each continent once the user goes to /cars/continent?
This is how my files look like:
├── content
│ ├── cars
│ │ ├── africa
│ │ │ ├── car_name1
│ │ │ │ ├── cover.jpg
│ │ │ │ └── index.md
│ │ │ ├── car_name2
│ │ │ │ ├── cover.jpg
│ │ │ │ └── index.md
│ │ ├── asia
│ │ │ ├── car_name3
│ │ │ │ ├── cover.jpg
│ │ │ │ └── index.md
│ │ │ ├── car_name4
│ │ │ │ ├── cover.jpg
│ │ │ │ └── index.md
│ │ ├── europe
│ │ │ ├── car_name5
│ │ │ │ ├── cover.jpg
│ │ │ │ └── index.md
│ │ │ ├── car_name6
│ │ │ │ ├── cover.jpg
│ │ │ │ └── index.md
│ │ ├── north_america
│ │ │ ├── car_name7
│ │ │ │ ├── cover.jpg
│ │ │ │ └── index.md
│ │ │ ├── car_name8
│ │ │ │ ├── cover.jpg
│ │ │ │ └── index.md
│ │ │ ├── car_name9
│ │ │ │ ├── cover.jpg
│ │ │ │ └── index.md