Giter VIP home page Giter VIP logo

phpagebuilder's Introduction

Hi there 👋 I'm Hans Schouten

  • 🚀 Currently working on a platform to deliver and maintain websites with advanced search for the travel industry
  • 🐦 Enjoying nature and developing app.faunamap.nl / FaunaMap app to efficiently track large numbers of wildlife observations
  • 💬 Feel free to ask about advanced search, data processing, GIS, geo visualisation, (dynamic) page builders or travel websites
  • 📫 How to reach me: www.falcosolutions.nl/contact

phpagebuilder's People

Contributors

csch89 avatar demonicious avatar dependabot[bot] avatar ehabamawi avatar hansschouten avatar treborin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

phpagebuilder's Issues

ckeditor add align option

How I can add align options (center, left, right) to ckeditor with your implementation? I tried to tweak your grapjs config (pluginsOpts/gjs-plugin-ckeditor/options/toolbar) I had not success
thanks

Problem with laravel 8 i think

Hi there i jsut isntall your package with a fresh laravel 8 and i did all the setup steps but for some reason i keep geting a page not found when i access the /admin there is any i can render that page just caling a view or a class, Thanks.

Unclear integration between generated PHP files and blade files

Hi Hans,

Is there any integration bridge between generated .PHP file and .blade.PHP file. We found it that generated PHP files can’t be connected to Laravel models as core PHP files doesn’t support blade directive. Any comments would be great.

Many Thanks!

Class 'PHPageBuilder\PHPageBuilder' not found

Hello Team,

While i am integrating this plugin getting error Class 'PHPageBuilder\PHPageBuilder' not found and also getting

Class 'PHPageBuilder\Repositories\PageRepository' not found

image

image

image

image

Included both the classes in controller and appserviceprovider but then also it populate errors.

Page not found

Hi,
thanks for sharing your work.

I'm running it on a ubuntu server 18.04.

I'm not sure, where my fault is, but i only get a blank page with the text "Page not found". At the root of the domain and also on /admin.
First i forgot to copy the confing.php into the webroot folder. But after i did, run the .sql file and edited the config it seems, that i've everything done, you described.
What could be the problem?

Example blocks and some info

Hi,
I just found your package and really congratulations.

Is possible to have a full layout with more example blocks as your screenshot for reference ?

Than there is some question that I would to make because I didn't find anything in doc.

  • In website manager there is Menu what is that ?

  • In page builder there is a tab settings but I don't find any reference in the doc.

  • a view.php ot editable in Editor I suppose for create block NO static HTML content maybe using a framework or with dynamic data from db, it's correct ?

I tried to add a new folder in theme but I can't see in Website Manager Layout Select need to add in config.php ? How ?

Thanks you!

Cache issue "Call to a member function invalidate() on null "

i have updated to 0.18.0 and was not able to save changes.. error is:

Call to a member function invalidate() on null {"userId":1,"exception":"[object] (Error(code: 0): Call to a member function invalidate() on null at /home/ploi/mypage/vendor/hansschouten/phpagebuilder/src/Page.php:177)

after uncommenting this line it worked again.

cannot load sql script into mariadb

OS: CentOS7
db: Your MariaDB connection id is 11
Server version: 5.5.64-MariaDB MariaDB Server
Try to load mycreate-tables.sql into web database
mysql -u user -p web < create-tables.sql
ERROR 1293 (HY000) at line 11: Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause

PHPageBuilder don't start

Hi
I use Debian GNU/Linux 9 , with MariaDB
Server version: 10.1.44-MariaDB-0+deb9u1 Debian 9.11
and PHP version

php -v
PHP 7.4.5 (cli) (built: Apr 19 2020 08:42:37) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.5, Copyright (c), b

When try to acces PHPageBuilder got this error

Warning: require_once(/var/www/html/PHPageBuilder/phpagebuilder/src/Core/helpers.php): failed to open stream: No such file or directory in /var/www/html/PHPageBuilder/index.php on line 10

Fatal error: require_once(): Failed opening required '/var/www/html/PHPageBuilder/phpagebuilder/src/Core/helpers.php' (include_path='.:/usr/share/php') in /var/www/html/PHPageBuilder/index.php on line 10

Getting error in localhost server

I'm not able to go to the admin interface in the localhost server. I use WAMP as my local server and I installed as said in the readme file I ave also installed the boiler plate as said. Please help with this issue I already went through issues but nothing works

how can i drag one element into another?

hey guys,
i am trying to integrate this plugin into custom php website, but one element darg into another is not working. Like if i want to drag a button into col block then button is not adding inside col element.

Is there any setting variable thats enable or disable this feature? I checked https://grapesjs.com/ demo page and same works in their demo page.

Please help me

Page not found

Successfully installed with composer. Manage to enter website manager and create a page but failed to load pagebuilder with error "page not found". Please help.

Using Blade Templates and Adding Menu

Hi Really like your work somthing i was looking for!!
But can you please tell me how i can use Blade Templates or How can i render Modules in Blade Views and How to add Custome Menu ? Is it supported yet ? If Yes can you please explain how can i do it?

Loading pagebuilder

All are setup but when I edit a page, I have a pagebuilder loader loading endless, I have no error, is grappejs need to be setup ? or its need some template libraries ? thanks

Error on the local server

Hi! An error appears on the local server.
Warning: require(D:\OSPanel\domains\ppb.test\src\Core/../PHPageBuilder\PHPageBuilder.php): failed to open stream: No such file or directory in D:\OSPanel\domains\ppb.test\src\Core\helpers.php on line 302

Fatal error: require(): Failed opening required 'D:\OSPanel\domains\ppb.test\src\Core/../PHPageBuilder\PHPageBuilder.php' (include_path='.;d:/ospanel/modules/php/PHP_7.3;d:/ospanel/modules/php/PHP_7.3/PEAR/pear') in D:\OSPanel\domains\ppb.test\src\Core\helpers.php on line 302

Show blank page when url with www.

For the non www url pages are work well. but when i type the www version of the domain name it shows the empty page.. app url is set to non www version.. Any idea to fix it.
Thank you..

CSS inside the block

Hello! Please tell me if it is possible to load a separate css into a block so that it fits in the HEAD?

For example, the file: themes/demo/blocks/intro/view.html

<head>
<link href="[theme-url]/public/party/css/party_intro.css "rel= "stylesheet">
</head>

<div class= "block-intro">...block content...</div>

so that <link...> is compiled inside HEAD

Create Tutorial

Hi dear,
Please create complete tutorial of this without tutorial we can't create this project it's may help us thanks.

styles and scripts are lost

here is my block's content

<style type="text/css">
    #bac-carousel-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-inedx: -1;
    }
    .bac-carousel-item {
        background: center center/cover no-repeat;
        z-index: 0;
        width: 100%;
        height: 100%;
        position: absolute;
        -webkit-transition: 1.3s opacity;
        transition: 1.3s opacity;
        opacity: 0;
    }

    .bac-carousel-item.active {
        opacity: 1;
    }
</style>


<div id="bac-carousel-wrapper">
    <div class="bac-carousel-item active" style="background-image: url('/images/slide-bg1.jpg');"></div>
    <div class="bac-carousel-item" style="background-image: url('/images/slide-bg2.jpg');"></div>
    <div class="bac-carousel-item" style="background-image: url('/images/slide-bg3.jpg');"></div>
</div>

<script type="text/javascript">
    try {
        const bacCarouselItems = document.querySelectorAll(".bac-carousel-item");
        let itemNum = 1;
        setInterval(() =>{
            if(itemNum == bacCarouselItems.length) {
                itemNum = 0;
                bacCarouselItems.forEach(item => item === bacCarouselItems[itemNum] ? bacCarouselItems[itemNum].classList.add("active") : item.classList.remove("active"));
                itemNum = 1;
            } else {
                bacCarouselItems.forEach(item => item === bacCarouselItems[itemNum] ? bacCarouselItems[itemNum].classList.add("active") : item.classList.remove("active"));
                itemNum++;
            }
        }, 10000);
    } catch {}
</script>

Seems my scripts are removed from blocks on save.
Is that neccesary? I need custom script for some blocks, how should I add them correctly to block?

Also GrapesJS moved my inline styles to external style but neither new IDs nor classes are not used


<div id="bac-carousel-wrapper" class="IDKHLQN54ECOJFT1">
    <div class="bac-carousel-item active IDKHLQN54PVQJPB2"></div>
    <div class="bac-carousel-item IDKHLQN54TE7U8Q3"></div>
    <div class="bac-carousel-item IDKHLQN54WJ6MQX4"></div>
<style>
    #ieeou{background-image:url('/images/slide-bg1.jpg');}
    #izso2{background-image:url('/images/slide-bg2.jpg');}
    #ijyki{background-image:url('/images/slide-bg3.jpg')
</style>



Configure settings for a block

I am trying to create a block to manage sliders.https: //getbootstrap.com/docs/4.0/components/carousel/
How could I configure the settings of this block so that when selecting the block it allows me to indicate how many images and their urls. Right now if I define 3 images in the block, it allows me to change the image by clicking on each one ...
Could you use a file such as config.php to indicate what settings will this block allow?

multi-user functionality

Hi Hans!

Need your advice

My goal is to add your builder functionality independently to all of my users on my current laravel project

My thoughts was to add an extra column user_id into pages table

Which class will be easier to extend/replace to implement multi-user functionality?

Changing default behavior of pagebuilder router

RIght now, All routing in laravel is handled by pagebuilder router. Because of that, routes specified in routes/web.php are not working any more,

Is there any way to change the default behavior of pagebuilder router when route has specific prefix in the url.
And the pages created in pagebuilder will render only when route has prefix.

for e.g -
prefix => 'editor/'
to access admin page => '/editor/admin'
saved pages in pagebuilder => '/editor/pagedirectory'

Error creating the page

Finally, I was able to launch the Manager. But the following error occurred when creating the page:
url: site/admin?route=page_settings&action=create

Fatal error: Uncaught PDOException: SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '0000-00-00 00:00:00' for column 'created_at' at row 1 in D:\OSPanel\domains\ppb.test\src\Core\DB.php:106 Stack trace: #0 D:\OSPanel\domains\ppb.test\src\Core\DB.php(106): PDOStatement->execute(Array) #1 D:\OSPanel\domains\ppb.test\src\Repositories\BaseRepository.php(61): PHPageBuilder\Core\DB->query('INSERT INTO pag...', Array) #2 D:\OSPanel\domains\ppb.test\src\Repositories\PageRepository.php(51): PHPageBuilder\Repositories\BaseRepository->create(Array) #3 D:\OSPanel\domains\ppb.test\src\Modules\WebsiteManager\WebsiteManager.php(59): PHPageBuilder\Repositories\PageRepository->create(Array) #4 D:\OSPanel\domains\ppb.test\src\Modules\WebsiteManager\WebsiteManager.php(32): PHPageBuilder\Modules\WebsiteManager\WebsiteManager->handleCreate() #5 D:\OSPanel\domains\ppb.test\src\PHPageBuilder.php(245): PHPageBuilder\Modules\WebsiteManager\WebsiteManager->handleRequest('page_settings', 'create') #6 D:\OSPanel\domains\ppb. in D:\OSPanel\domains\ppb.test\src\Core\DB.php on line 106

Demo URL

Hello, Can you provide a demo URL ?

instantiated Block style change

When I drag and drop a block called 'Content01', then I style its background color for exemple, if I drag and drop a new 'Content01' block, the instantiated new block inherit the background color of the first instantiated Content01 block. When I change the background color of any Content01 block, it changes all the two Content01 blocks. Is it possible to have customs change to each instantiated block ?

"composer require hansschouten/phpagebuilder" brokes laravel project

tested on laravel 6

  1. composer require hansschouten/phpagebuilder succesfully installs phpagebuilder

  2. open any page containing CSRF token

this code in blade template
{{ csrf_field() }}

produces
&lt;input type=&quot;hidden&quot; name=&quot;_token&quot; value=&quot;BGWtUp7p7lY6fJQMlAAT2vRhlWc0PvVC3vCL7o9j&quot;&gt;

removing hansschouten/phpagebuilder fixes CSRF double encoding

bad thing that the phppagebuilder library brokes CSRF whenever not used anywhere in laravel, just added via composer

Block Settings

I've a block folder with a view.html and a config.php with the following code

return [
    'title' => 'Text',
    'category' => 'General',
    'icon' => 'fa fa-edit'
];

How to add block Settings?

image

Thanks

add default collapsed category

is it possible to add any option into config.php of the block to prevent auto-expand the category of the block (not to add gjs-open class)?

Page not found

Hi! I did it according to the documentation, but I have: Page not found. How can I solve this problem?

Blocks are missing?

Just deployed your Laravel package on clean Laravel

having this in edit window
image

am I missing something?
your screenshot looks much better (much blocks on the left)
image

Class 'PHPageBuilder' not found!!!

Hey!! First, this is an amazing package, but I am unable to integrate it into my existing project, it is giving me an error when I am creating my controller and I don't know what is causing this error!! Please can you guide me on what is causing this?

Theme

Hey, did you have a Themes/demo folder to up? thanks

Add SEO tags to pages

How can I edit page data such as Title, meta tags, description and other tags before ?
Is it possible to do this for any block?

block content is not editable

I have a block with content

<div class="wrapper address-wrapper">
    <div class="address-item">
        <div class="address-item-title">City</div>

"City" word is not editable inside pagebuilder. Should I wrap it with some tag? which one?

Integrating in php projects

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.

Adding images to blocks panel instead of icons

Thanks for this package, so far it looks great. I just can't figure out how to get image thumbnails on my blocks instead of icons? Images like the ones that you have in your example screenshot.
Screen Shot 2021-02-03 at 9 47 45 am

block thumb

I dont understand how you return the block thumb :
phpb_theme_asset('block-thumbs/' . md5($this->blockSlug) . '/' . md5(file_get_contents($this->getViewFile())) . '.jpg');

is it auto generated by a library I missed ? else not Can I add a thumb filename in block config ?:
return [
'title' => 'Content01',
'category' => 'Contents',
'thumb' => 'Content01.jpg',
];

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.