Hello everyone, having some slight issues with my content being displayed. I've tried a few different methods on the API, to no avail.
_config.php
ShortcodeParser::get('default')->register('Accordion', array('PageExtension', 'AccordionCall'));
This is fine, at least I think it is. It's firing with no issues. Here is my routine in my page extension class. The array was a blank I fed into process() just to get it to shutup (real technical right there).
Long story short, I want it to display my Accordion.ss file. When I use getTemplateContent, it renders it as it's written. As in <% control Accordion %> and so on shows up.
public function AccordionCall() {
$customise = array();
$template = new SSViewer('Accordion');
$item = new ViewableData('Accordion');
return $template -> process($item);
}
Any help would be appreciated :)