yii2mod / yii2-cms

Simple CMS extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

page builder

masihfathi opened this issue · comments

is it possible to merge this extension "https://github.com/udokmeci/yii2-kont-trevor" to the core of yii2-cms and we have option to choose between simple editor and this page builder extension?

Hi, I think you can use yii2-kont-trevor package with yii2mod-cms together. You only need to create your own views and override this properties:

I think we should add a property to module.php which points enabling "yii2-kont-trevor" or not and for rendering "yii2-kont-trevor" in view changing
"https://github.com/yii2mod/yii2-cms/blob/master/views/page.php" is necessary. how can i override module.php?

public function actions()
{
    return [
        'page' => [
            'class' => 'yii2mod\cms\actions\PageAction',
            'view'  => 'custom view',
        ]
    ];
}

thanks for replying.