Download the PHP package agence-adeliom/lumberjack-admin without Composer
On this page you can find all versions of the php package agence-adeliom/lumberjack-admin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package lumberjack-admin
[READ-ONLY] Lumberjack Admin
Register WordPress Admin ans ACF block interfaces.
Requirements
- PHP 8.0 or greater
- Composer
- Lumberjack
Installation
Register the service provider into web/app/themes/YOUR_THEME/config/app.php
Usage
Create an admin interface like for Options pages or Custom Post Types
Create your admin class to manage post types :
Create your admin class to manage options :
Check the full class declaration at src/AbstractAdmin.php
Create a ACF Gutenberg block
The twig template attached to this block is views/block/wysiwyg.html.twig
.
Edit Gutenberg settings
Add new categories
Globally disable blocks
disable_blocks
can handle multiple type :
false
mean that all blocks are alloweda regex
you can use a regex to disallow every blocks matching this regex. ex./((core|yoast|yoast-seo|gravityforms)\/\w*)/
a array
you can use a array with wildcards. ex:[ 'core/*', 'yoast/breadcrumb' ]
Globally disable blocks
disable_blocks
can handle multiple type :
false
mean that all blocks are alloweda regex
you can use a regex to disallow every blocks matching this regex. ex./((core|yoast|yoast-seo|gravityforms)\/\w*)/
a array
you can use a array with wildcards. ex:[ 'core/*', 'yoast/breadcrumb' ]
Configure Gutenberg
KEY
can handle multiple type :
- post type including custom post type. ex. post, page, project ...
- template ex. tpl-home.php
- id ex. 150
- post id ex. page-10
Settings
enabled
: Ability to disable gutenberg for the key. true
by default
blocks
: List of allowed blocks. You can allow (ex. acf/text
, acf/*
) or disallow blocks (ex. !core/embed
, !core/*
)
template
: Allow specifying a default initial state for an editor. null
by default. see more
template_lock
: Ability to lock gutenberg for the key. null
by default. see more
License
Lumberjack Admin is released under the MIT License.
All versions of lumberjack-admin with dependencies
rareloop/lumberjack-core Version ^5.0|^6.0
vinkla/extended-acf Version ^13.0
symfony/string Version ^5.4|^6.0
symfony/translation-contracts Version ^3.0