Browse Source

move from cms.page.render to cms.page.postprocess for evnet trap

master
Patrick Ward 9 years ago
parent
commit
716b7ff714
  1. 4
      Plugin.php

4
Plugin.php

@ -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);
});
}

Loading…
Cancel
Save