Laravel-Pagebuilder icon indicating copy to clipboard operation
Laravel-Pagebuilder copied to clipboard

Block Setting With PHP

Open milan-atulyam opened this issue 3 years ago • 3 comments

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.

milan-atulyam avatar Mar 15 '21 12:03 milan-atulyam

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.

jeremiahsherrill avatar Mar 16 '21 02:03 jeremiahsherrill

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?

liujwei7 avatar May 21 '21 06:05 liujwei7

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.

HansSchouten avatar May 21 '21 11:05 HansSchouten