HansSchouten / Laravel-Pagebuilder

A drag and drop pagebuilder to manage pages in any Laravel project
https://www.phpagebuilder.com
MIT License
778 stars 179 forks source link

Block Setting With PHP #92

Open milan-atulyam opened 3 years ago

milan-atulyam commented 3 years ago

Hi, Can we use laravel-widgets in block and run widgets html code in builder front end? kindly share with me how to integrate widgets in pagebuilder blocks. thank you.

how to write php content in block in pagebuilder ?

image

this is my widget code for call widgets in blade file so how i call this in pagebuilder block each widgets in each block.

jeremiahsherrill commented 3 years ago

I am new to this, not sure if it would be a problem, but you could use javascript to call it as an ajax function or just change view.html to view.php ... I tested it, that works.

liujwei7 commented 3 years ago

Hi, I am new to this too, the block is not editable after changed to view.php, it that any way to make it editable?

HansSchouten commented 3 years ago

A view.php is not editable. Only html blocks are editable. PHP blocks are meant to display dynamic data which can be controlled using settings in the sidebar.