[Qute] how to include templates dynamically #40935
Replies: 2 comments 4 replies
-
/cc @mkouba (qute) |
Beta Was this translation helpful? Give feedback.
-
So if I understand it correctly it's the We cannot change the behavior of the |
Beta Was this translation helpful? Give feedback.
-
Hi everyone ...
I have created different component classes Component1,Component2 and Component3 for convenience and my OneColumnLayoutPage class which I want to show my components in.
The catch is that I want to make this dynamically. The list of component templates will be loaded from "somewhere else", rather then have them hard-coded in HTML template of my OneColumnLayoutPage/index.html
Controller code:
Template code:
Real example of this case would be:
your project has different layout pages with different containers where components can be rendered into:
your application has different components:
Each page layout section can have multiple components in.
In real life project you would create different kind of variations of Page layouts and components that page shows and you really really don't want to change that in the code. You are required to create this dynamically (hence WYSIWYG CMS)
Beta Was this translation helpful? Give feedback.
All reactions