Support Forums

Support Online : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

How to use Plugins in SP Page Builder

Featured Lock Resolved
Morning,

i tryed to use a plugin within SPPB.
I used {mosemap} in AccordionApp and it works. same in RAW HTML-App
But if i want to use f.e. {breezingforms}testformular{/breezingforms} it doesnt work

Syntax tested on a single Articel works fine, so the syntax shouldnt be the problem.
Is there a solution?

6 Answers

sekisback

More than a month ago #Permalink
for better understanding... I insert the syntax for googlemaps plugin as shown in the accordionAddon and the result you can see on the right side
I did the same with breezingforms and it doesnt work

Attachments (1)

  • Unbenannt-1.png
    Unbenannt-1.png 394.8 KB

pepperstreet

More than a month ago #Permalink
Hello sekisback, in general "Content Plugins" do not run inside SP PageBuilder. I assume the {mosmap} syntax is from Reumer's GoogleMap plugin!? This plugin seems to run as a System plugin. It might run in any context, this is an exception (to the rule).

A. ) If you want to show a BF form, you might use the BF module and load it in PageBuilder's J! Module AddOn.
B. ) Or you have to modify/override the Accordion AddOn. You can call a specific plugin or "contentPrepare" function programatically.

Eddie Kominek

More than a month ago #Permalink
Can you offer any guidance on overriding the Text Block AddOn to be able to insert the contentPrepare function? I have a Phoca Download plugin I'd like to call in a few of the text blocks.

pepperstreet

More than a month ago #Permalink
Can you offer any guidance on overriding the Text Block AddOn to be able to insert the contentPrepare function?


Here is the related topic:
https://www.joomshaper.com/forums/text-html-addons-prepare-content-run-plugins
There you should find a link to the GitHub issue and platform. See screenshot and comments for code snippet.

Eddie Kominek

More than a month ago #Permalink
Thank you so much, worked like a charm. For those that search and find this:

Go here and override the addon for whatever you want a plugin in: https://www.joomshaper.com/documentation/joomla-extensions/sp-page-builder#how-to-override-addons

Edit the site.php now in your template folder and change:


$output .= $text;


to'


$output .= JHtml::_('content.prepare', $text);

WSC_Witold_Szymanik

More than a month ago #Permalink
This is a great solution. Everything works correctly in the light version. Unfortunately plugins in the PRO don't load correctly. When I re-install the light versions, everything is ok. (Of course, I remember to exchange copy of the add-on in the template directory)


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 127
Sifat

Sifat

Total Accepted Answers: 89
Toufiq

Toufiq

Total Accepted Answers: 45
Pavel

Pavel

Total Accepted Answers: 6
Sohan

Sohan

Total Accepted Answers: 5

114

Templates

292753

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us