Replies: 8 comments
-
You can query from TaxonomyIndex So essentially you just need to make two pages: |
Beta Was this translation helpful? Give feedback.
-
@dodyg thanks for your hint. But how can I have like a dynamic content item (page) which will be called if you call /winter o /winter/freeride. I'm looking for a way not having to create all these MainOverview and SubOverview pages. ps: do you think taxonomy is the right thing here or should I go for lists (like blog template) |
Beta Was this translation helpful? Give feedback.
-
Something you are probably looking for is this #2688 |
Beta Was this translation helpful? Give feedback.
-
@deanmarcussen thanks! that's exact what I was looking for. As it sounds, it will take still longer until this is released, so for the moment I will probably go the way to build all the pages. |
Beta Was this translation helpful? Give feedback.
-
Ah I got it - the problem you were trying to solve is preserve the nice url structure (/winter/free-ride). If you don't care about this, then you can create a Liquid page that handles these structures via query string e.g.
I would choose Taxonomy if I had your scenario. If you are going to create these pages manually for the routing purposes, I hope you are creating a template and call this template from the pages. |
Beta Was this translation helpful? Give feedback.
-
@dodyg the liquid page is not an option, as I want to have the nice url ;-)
I will create a ContentType |
Beta Was this translation helpful? Give feedback.
-
Yeah that should work. The other approach is to create a custom module to render taxonomy pages in case they grow too large. |
Beta Was this translation helpful? Give feedback.
-
I tried to use modules (https://orchardcore.readthedocs.io/en/dev/docs/reference/core/Modules/) but the issue I had was that the html code I return from there renders as whole page, but I want to write from the module only to the |
Beta Was this translation helpful? Give feedback.
-
To show the real example, I have following menu structure
For this I created a taxonomy as follows:
Then I create ContentItems (Type: ActivityPage) for Freeride Tour1, FreeRide Tour 2, Basic, etc. They all reference the corresponding taxonomy.
Now when I click winter in the menu, I want to show a page which lists all the sub-taxonomies as shown here (call this MainOverview):
Then, when selecting the Freeride example, I want to show all Content-Items with that Taxonomy, in this case (Call this SubOverview)
Question
I could create a MainOverview Page for Winter, Summer, Outdoor and on each Page I select the taxonomy to show.
Then I could create SubOverview Pages where I assign the subtaxonomy (Freeride) and it shows that ActivityPages with that taxonomy.
The Problem: With that is, that if the structure is big, you need to create lots of pages.
I was wondering if there is something more dynamic to build this structure without having to generate a MainOverview Page and SuboverviewPage for each taxonomy.
Beta Was this translation helpful? Give feedback.
All reactions