These are chat archives for luyadev/luya

26th
Jan 2017
agaplus
@agaplus
Jan 26 2017 10:16
I would set a different layout for some pages in kickstart project. In "views" folder i have "cmslayouts"(sidebar.php and others) and "layouts" which contains main.php. Sidebar.php(cmslayouts folder) "extends" the code of main.php(layouts folder) with placeholders. OK, i would set a different layout: for example Sidebar.php(cmslayouts folder) "extends" the code of page.php(layouts folder). how can I do?
Andrey Svetlichniy
@Emericanec
Jan 26 2017 10:20
in controller you can specify which layout you want to use
you can create new layout in layouts folder
and set property in controller or action
agaplus
@agaplus
Jan 26 2017 10:23
i just create a new layout in in layouts folder, but where is the controller where i set the property?
Andrey Svetlichniy
@Emericanec
Jan 26 2017 10:33
i tried do it but i cant :<
you can only create many cmslayouts and set it for each page
@nadar mb you know?
Basil
@nadar
Jan 26 2017 11:31
hmm, true!
So you think it should be possible to define the "main layout" (which is defined in the controller, as @Emericanec already mentioned) for a cms page? This is a good idea indeed! Please create an issue on github so i am going to implement this.
agaplus
@agaplus
Jan 26 2017 15:27
I would define a different "main layout" for a cms page. For Example: Sidebar.php(cmslayout folder) extends Page.php(layouts folder) and Homepage.php(cmslayouts fodler) extends Main.php(layouts folder). Open an issue on github?
Basil
@nadar
Jan 26 2017 15:33
yes please add a new issue, i am going to make a selection dropdown for each page which looks up the @app/views/layouts folder and displays all possible layout files.
agaplus
@agaplus
Jan 26 2017 15:38
OK