-
Notifications
You must be signed in to change notification settings - Fork 2.4k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Dynamic Content Items #4856
Comments
You can query from TaxonomyIndex So essentially you just need to make two pages: |
@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) |
Something you are probably looking for is this #2688 |
@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. |
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. |
@dodyg the liquid page is not an option, as I want to have the nice url ;-)
I will create a ContentType |
Yeah that should work. The other approach is to create a custom module to render taxonomy pages in case they grow too large. |
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 |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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.
The text was updated successfully, but these errors were encountered: