Page editor for Park Holidays staff
Page editor for PHAST CMS built using the GrapesJS framework..., (*1)
Run the following commands in the CLI, (*2)
composer require park-holidays-uk/pagebuilder
Add the following to the App config 'providers', (*3)
ParkHolidays\PageBuilder\PageBuilderServiceProvider::class
Don't forget to publish the config and assets.., (*4)
php artisan vendor:publish --provider="ParkHolidays\PageBuilder\PageBuilderServiceProvider" --force
Once config has been published, add the following to the .ENV file and change the values appropriately, (*5)
PAGEBUILDER_DOMAIN=phast.parkholidays.com PAGEBUILDER_URLPREFIX=/pagebuilder PAGEBUILDER_MEDIA_PATH=//parkholidays.s3-website-eu-west-1.amazonaws.com/assets/ PAGEBUILDER_RESIZE_MEDIA_PATH=//parkholidays.s3-website-eu-west-1.amazonaws.com/{w}x{h}/assets/ PAGEBUILDER_ASSET_PATH=/dist/ PAGEBUILDER_FORM_ACTION=/form/handle PAGEBUILDER_FORM_METHOD=POST
When ready run the migrations and seeders, (*6)
php artisan migrate php artisan db:seed --class="ParkHolidays\PageBuilder\Database\Seeds\DatabaseSeeder"
Run the following commands in the CLI, (*7)
composer update
The publish the assets in the same way as the enw installation above. Check for any changes to ENV settings., (*8)
<svg class="gjs-block-svg" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path class="gjs-block-svg-path" d="M22,9 C22,8.4 21.5,8 20.75,8 L3.25,8 C2.5,8 2,8.4 2,9 L2,15 C2,15.6 2.5,16 3.25,16 L20.75,16 C21.5,16 22,15.6 22,15 L22,9 Z M21,15 L3,15 L3,9 L21,9 L21,15 Z"></path> <polygon class="gjs-block-svg-path" points="4 10 5 10 5 14 4 14"></polygon> </svg> <div class="gjs-block-label">LABEL</div
Example.., (*9)
400x250 768w,640x480 1024w,1024x768 1200w
For different trait input types please refer to (https://github.com/artf/grapesjs/wiki/Traits). At present only type text and select is available., (*10)
[ { "type":"select", "name":"NAME", "label":"LABEL", "value": "", "multiple": true, "dynamic_options":true, "options_connection":"CONNECTION", "options_table":"TABLE", "options_text_field":"FIELD", "options_value_field":"FIELD" }, { "type":"text" "name":"NAME", "label":"LABEL", "value": "1" } ]
See also the list of contributors who participated in this project., (*11)