I think you could put conditional blocks inside a view included by the
default layout:
Then it should be possible to customize the views with user input or
values stored in the database

The view must have the {{ extend "layout.html" }} line

And you can override the layout blocks with {{ block ...}} sentences

The online book covers the use of layout and extending views:

See "Customizing the default layouts" in the Views chapter

It is possible to modify the layout.html view also

On Dec 17, 2:32 am, Joseph Jude <ceph...@gmail.com> wrote:
> What are the ways in which such multiple layouts and choosing one at the
> run time work? Something like wordpress themes? Modifying views/layout fix
> the layout to the one that was deployed. But as in wordpress, if more
> themes are installed how can a different one be chosen?
>
> Thank you,
> Joseph

Reply via email to