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

v1.0 2020-08-17 15:12 UTC

This package is auto-updated.

Last update: 2024-04-29 04:09:30 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

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