|
|
@ -45,9 +45,9 @@ class Plugin extends PluginBase |
|
|
|
// Enable shortcodes on all pages if requested
|
|
|
|
if (Settings::get('enable_on_render', false)) |
|
|
|
{ |
|
|
|
Event::listen('cms.page.render', function($controller, $content) { |
|
|
|
Event::listen('cms.page.postprocess', function($controller, $url, $page, $dataHolder) { |
|
|
|
|
|
|
|
return \Shortcode::parse($content); |
|
|
|
$dataHolder->content = \Shortcode::parse($dataHolder->content); |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|