Download the PHP package onaxis/ezplatform-extra without Composer
On this page you can find all versions of the php package onaxis/ezplatform-extra. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download onaxis/ezplatform-extra
More information about onaxis/ezplatform-extra
Files in onaxis/ezplatform-extra
Package ezplatform-extra
Short Description Extra bundle for eZ Platform
License GPL-2.0-only
Homepage https://github.com/onaxis/ezplatform-extra
Informations about the package ezplatform-extra
Onaxis ExPlatform Extra
Instalation
Using composer:
composer require onaxis/ezplatform-extra
Add the bundle to your application
Routing:
Add the following in your routing.yml file:
This routing file enable the route onaxis_ezplatform_extra.user.selfedit
(/user/selfedit)
Role:
You will have to add the user/selfedit
policy to your users role.
Information
The field user_account.enabled
will never be editable for the user to avoid user disabling himself.
Extra configuration
You can customize the user self edit form creating multiple version of this form.
For example, you could need to create 2 pages:
- A profile edition page
- A password edition page
Example of a customized forms:
The previous configuration enable the following URLs:
- /user/selfedit/profile
- /user/selfedit/account
- /user/selfedit/password
This is how to generate these routes:
To know available fields, use the following command:
php bin/console ezplatform-extra:user-self-edit:form-fields
By default, listed fields correspond to the admin user content type (user) (UserID: 14)
Output example:
To be aware of fields of another content type, just pass a user content id: (A user with this content type must exist in your backend)
php bin/console ezplatform-extra:user-self-edit:form-fields 80
Output example: