proxilog / proxicms-content-bundle
A Symfony Content bundle for ProxiCMS
Installs: 41
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^8.1
- doctrine/doctrine-migrations-bundle: ^3.2
- easycorp/easyadmin-bundle: ^4.3
Requires (Dev)
This package is not auto-updated.
Last update: 2022-08-03 16:01:27 UTC
README
/!\ WARNING, Be aware until the version 1.0.0, some breaking changes can be introduce
This bundle allow you to manage the content for the ProxiCMS.
TODO
- Create the Recipes installation
- better use of migration? (any idea?)
- Create the tests in the bundle (instead of the app side)
Usage
EasyAdmin
It will provide a Content to manage with the possibility to enable the text editor.
Twig
When you get the Content with twig, it will create or get the current one by its identifier.
- Get the Content object with identifier
proxicms_content_obj('identifier')
- Get the value with identifier
proxicms_content_val('identifier')
Installation
This bundle requires PHP 8.1 or higher and Symfony 6.1 or higher.
Step 1: Install the bundle using composer
$ composer require proxilog/proxicms-content-bundle
Step 2: Add the bundle to your bundles.php
// config/bundles.php return [ //.. ProxiCMS\ContentBundle\ProxiCMSContentBundle::class => ['all' => true], ];
Step 3: Add the MenuItem in your Dashboard EasyAdmin
// src/Controller/Admin/DashboardController.php public function configureMenuItems(): iterable { //... yield MenuItem::linkToCrud('Contenus', 'fas fa-pager', Content::class) ->setController(ContentCrudController::class); }
or you can create your own ContentCrudController
and extends this controller.
Step 4: Add the migrations in your app
# config/doctrine_migrations.yaml doctrine_migrations: migrations: - 'ProxiCMS\ContentBundle\Migrations\MySQL0100'