HansSchouten / PHPageBuilder

A drag and drop page builder to manage pages in any PHP project
https://www.phpagebuilder.com
MIT License
739 stars 180 forks source link

Integrating in php projects #48

Closed luison closed 3 years ago

luison commented 3 years ago

Great project. I was wondering if there are any instructions or tips about how to integrate into a php project (not laravel) in such a way that one could isolate the editor to the content area. This is... include a fixed pre-code and post-code after the builder so one could see it integrated within the project styles and only be editing main content area. Thanks.

HansSchouten commented 3 years ago

Hi thanks, yes that is possible by using layouts if I understand your use-case correctly. You could create a layout like here with all your default html and then within the layout paste the <?= $body ?> at the location that should be editable.