0

I created a custom plugin that allows the user to save custom text from a predefined list through editors buttons, in the attributes (attribs).

The idea was to give the users an easy way to add a few decorations and visual elements, by entering predefined "tagged" text, that triggers content plugins.

But echoing the attributes text bypasses the content plugins.

How to run the content plugins on the content prepare trigger for this text?

$attrbs = json_decode($this->item->attribs);
echo $attrbs->mygallery;
1

Runnning content plugins on text for the content prepare trigger, you just need to call :

    echo JHtml::_('content.prepare',$attrbs->mygallery);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.