These are chat archives for luyadev/luya

24th
Oct 2017
tskodaw
@tskodaw
Oct 24 2017 11:33
Hi, is there any possibility to put derived cms- Block-Template-Files in app/views/luca-module-cms/-any-where to let them override the use of /app/vendor/luyadev/luya-module-cms/src/frontend/views/blocks/*
Basil
@nadar
Oct 24 2017 11:36
hi @tskodaw so you want to disable the default blocks?
or you want to add a location in order to find YOUR blocks?
tskodaw
@tskodaw
Oct 24 2017 11:36
my blocks are fine in my module's folders, problem is the default blocks make some troubles so I wanted do have my own template files
but use the default blocks
Basil
@nadar
Oct 24 2017 11:38
ok i understand, so you want to override only the view files from the default blocks?
tskodaw
@tskodaw
Oct 24 2017 11:38
yes
but so far I understand path-retrieval somewhere the template-files will be resolved like @cms/xyz and Yii has the alias @cms set to app/vendor/luyadev/... I don't want to set @cms to a different path because I am anxious that other files like the Block-Classes could not be retreived then
Basil
@nadar
Oct 24 2017 11:40
we had that feature already, but this ended in a mess, cause when we add or change a variable in the default blocks maybe all your blocks are broken. So in future we will probably remove the default blocks from the cms, and you have to install the blocks from a module, like: luya-bootstrap3-blocks. so everyone can choose the blocks he likes, or start without anyblock and create its own.
I would advice you to create your own blocks, or copy the blocks you like from the cms folder into your application.
tskodaw
@tskodaw
Oct 24 2017 11:41
ok
but for luya release, I guess the blocks should be mature enough to not change them all the time compared to a development version, so perhaps later with 1.0 the feature could come back :)
anyway, thanks
Basil
@nadar
Oct 24 2017 11:45
I know what you mean, but i guess its anyhow better when people decide what they want to use: bootstrap3, bootstrap4 or maybe foundation, so we could provide a repository with blocks, assets, widgets which are matching the given css framework. this is what we are already doing for bootstrap4: https://github.com/luyadev/luya-bootstrap4
tskodaw
@tskodaw
Oct 24 2017 11:46
ah nice, i will take look, thanks