Closed J-Pielage closed 2 years ago
When I insert a quote it adds [App\Objects\Quote id="42"] instead of [Quote type="App_Objects_Quote" id="42"][/Quote]
[App\Objects\Quote id="42"]
[Quote type="App_Objects_Quote" id="42"][/Quote]
Shortcode method I use:
public static function ContentButtonShortCodeMethod($arguments, $content = null, $parser = null, $tagName) { $buttonID = strip_tags($arguments['id']); $button = ContentButton::get()->filter('ID', $buttonID)->first(); if (!empty($button->ID)){ return $button->customise([ 'ContentButtons' => $button ])->renderWith('Shortcodes/ContentButtons'); } }
When I insert a quote it adds
[App\Objects\Quote id="42"]
instead of[Quote type="App_Objects_Quote" id="42"][/Quote]
Shortcode method I use: