jlchassaing / gie_eztoolbar
Give the ability to create, edit, delete content from the front end, being logged in but without having to log in back-office
Installs: 72
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:ezplatform-bundle
Requires
- php: ^7.1.3
- ezsystems/doctrine-dbal-schema: ~0.1.2
- ezsystems/ez-support-tools: ~1.0.3
- ezsystems/ezplatform-admin-ui: ~1.5.2
- ezsystems/ezplatform-core: ~1.0.2
- ezsystems/ezplatform-design-engine: ~2.0.0
- ezsystems/ezplatform-standard-design: ~0.2.1
- ezsystems/ezplatform-user: ~1.0.3
- ezsystems/ezpublish-kernel: ~7.5.2
- ezsystems/repository-forms: ~2.5.1
This package is auto-updated.
Last update: 2024-10-29 05:11:09 UTC
README
GieEzToolbarBundle
Ez Platform 2 toolbar bundle
Install
Install by composer
composer require jlchassaing/gie_eztoolbar dev-master
Add to kernel
Load the bundle in app/AppKernel.php at the end of the registerBundles function :
new Gie\EzToolbarBundle\GieEzToolbarBundle(),
Add routing
The routing file must be loaded in app/config/routing.yml file :
_gieeztoolbarRoutes: resource: "@GieEzToolbarBundle/Resources/config/routing.yml"
Build scss
Build the scss with command :
yarn encore dev
Display the toolbar
Add the toolbar edit to the pagelayout.html.twig Place this code where you want to display the toolbar. At the top of the page is recommended, other paces have not been tested yet.
{{ ezToolbar(location is defined ? location : null) }}
Set user rights
If you use and specific user instead of admin you need to set the user policy.
Give the toolbar role policy to a user or a group whit no limitations. Once logged in on the front page with the matching user, the toolbar should appear.
The toolbar will adjust to specific content type creation limitations.
You should add version view rights without any limitation, the toolbar does does not actually deal with version conflicts.
Features
You should be able to create, edit and cancel (create and edit). Many things to do :
-
the create new draft code to edit content is not satisfying. Needs some refactoring.
-
write feature and phpunit testing