Dev
Installation
To install this module
composer require qore/layout
php artisan vendor:publish --tag=qore.layout.db
php artisan vendor:publish --tag=qore.layout.frontend
php artisan tenants:migrate
This module requires a yarn dependency:
cd frontend && yarn add vue-grid-layout
Usage
To use this module
After the module has been enabled, each detail page will have a button icon in the top right corner that links to the layout builder.
By default, only admins will have the required Permission scope for this: ManagesLayout::class
Disabling this module for specific Resources
In your Resource, you may override the function called layoutBuilderEnabled
to return false
.
That will disable the layout builder from being shown on the Resource.
This will not disable saved and published layouts from being shown, you should delete them yourself or unpublish them before enabling this option.
Description
Layout
A layout consists of a name, a minimal screen width to be active, and an optional page title. You can have multiple layouts for different screen sizes. You need to publish a layout before it is active.
Blueprint
A Blueprint is a re-usable content block which you can define yourself.
Elements
Elements are predefined and can be used within blueprints / layouts. For example: Tabs, Label, Line, Title.
Content blocks
Content blocks are pre-defined card / tabs by the back-end. Usually these are logs and relations.