Closed daunt closed 6 years ago
Good. And in tab shortcodes you can enabled this shortcodes.
The same problem.. It has enabled after all plugin enable.. Only Http auth and helloworld working fine Im check event shortcodes in class view only default core listened
thanks andrey the problem solved..
hey andrey what i missed? im tried follow step by step to using this "shortcodes" even im embbedd into view index of plugin controller
test on frontend
backend config
'bootstrap' => ['log', 'plugins'], 'modules' => [ 'plugins' => [ 'class' => 'lo\plugins\Module', 'pluginsDir'=>[ '@lo/plugins/core', // default dir with core plugins '@lo/shortcodes', // dir with shortcodes pack '@common/shortcodes', // dir with our plugins with shortcodes ] ], ], 'components' => [ 'plugins' => [ 'class' => lo\plugins\components\PluginsManager::class, 'appId' => 2 // lo\plugins\BasePlugin::APP_BACKEND ], 'view' => [ 'class' => lo\plugins\components\View::class, ], ........
frontend config
'plugins' => [ 'class' => lo\plugins\components\PluginsManager::class, 'appId' => 1, // lo\plugins\BasePlugin::APP_FRONTEND, // by default 'enablePlugins' => true, 'shortcodesParse' => true, 'shortcodesIgnoreBlocks' => [ '<pre[^>]*>' => '<\/pre>', //'<div class="content[^>]*>' => '<\/div>', ] ], 'view' => [ 'class' => lo\plugins\components\View::class, ],