Solved SP Page Builder

PHP code in SP Pagebuilder pages

Asked by Allan Malver 11 months ago Last activity 11 months ago

Is it possible to make a page in SP pagebuilder with raw code - not just html but PHP as well?

Accepted answer

Marked as the solution
Marc Lang

Hi,

basically yes, you can. I did this once for a customer. The trick is to install Sourcerer (plugin) and then put your code in a HTML module and place that into Pagebuilder. It's a bit of a workaround, but I've had no issues with it so far.

Best
Marc

Allan Malver Asked this

Thanks alot. That did it! Now I'll evlaluate if it's easier just to put the code in an article. But I think Module is much better.

Thanks!

1 more reply

Paul Frankowski Senior Staff
11 months ago · edited

Hi Allan.

You have to install first a Module that support custom code (PHP, JS etc.) as always you will find on JED, then just use it thru Module addon.

I have those

info_3626_2025.jpg


For typical use Sourcerer is too heavy (1,8Mb) vs HD AnyCode module (1,6 Kb) or JO Custom (11 Kb) a huge difference, right

Allan Malver Asked this

I'm using Sourcerer but maybee i'll try out the other ones. Thank you for the answer.

Log in to reply.