luyadev / luya

LUYA is a scalable web framework and content management system with the goal to please developers, clients and users alike.
https://luya.io
MIT License
812 stars 207 forks source link

Change base layout #869

Closed codexdb closed 8 years ago

codexdb commented 8 years ago

Is there a way to assign to every page in a project a different layout than the base layout main (in @app/views/layouts) other than renaming or write a custom controller?

nadar commented 8 years ago

@codexdb The best approach to achieve your goal is by using a very basic layout (maybe just return $content inside the body) file but using different cmslayouts, so you can choose different cmslayout and add layout ability to them.

https://luya.io/en/guide/app-cmslayouts

Does this help?

But there is also an issue for choosing different layouts in cms context: https://github.com/luyadev/luya/issues/863

nadar commented 8 years ago

@codexdb can we close this issue?