Is it possible to add a shortcode to Page class through an extension? So far, my shortcodes are not getting parsed or registered. In my module's _config.php I have:
Page::add_extension('MyPageExtension');
ShortcodeParser::get('default')->register('test_shortcode', array('Page', 'TestShortcode'));
and the extension looks like this:
<?php
class MyPageExtension extends DataExtension {
public function TestShortcode($arguments, $content = null, $parser = null, $tagName) {
.......
no worky :-(