EabUniqueDatatypesBundle
Summary
eZ Publish 5/Platform bundle wrapping eZ Unique Datatypes
extension for eZ Publish 4.0., (*1)
This is a collection of common datatypes whose validation has been extended
so to verify their uniqueness within given content object attribute. Otherwise,
these datatypes behave exactly as their prototypes., (*2)
Currently there are two datatypes provided:, (*3)
- Unique string (based on Text line system datatype),
- Unique URL (based on URL system datatype).
Fields using these datatypes can be displayed using the Symfony stack. To edit
them you need to use the legacy stack., (*4)
More documentation, (*5)
Copyright
Portions copyright (C) 2007 mediaSELF.pl
Portions copyright (C) 2015 Enterprise AB Ltd, (*6)
License
Licensed under GNU General Public License 2.0, (*7)
Requirements
Requires eZ Publish 5 or eZ Platform., (*8)
Installation
-
You can use composer to install the bundle. If you have eZ Platform, use version 2:, (*9)
composer require --update-no-dev --prefer-dist "eab/unique-datatypes-bundle":"~2.0"
If you have eZ Publish 5, use version 1:, (*10)
composer require --update-no-dev --prefer-dist "eab/unique-datatypes-bundle":"~1.0"
Or clone the bundle using git:, (*11)
cd src
git clone https://github.com/eab-dev/UniqueDatatypesBundle.git Eab/UniqueDatatypesBundle
-
Edit the file ezpublish/EzPublishKernel.php
, look for the function registerBundles()
and add:, (*12)
new Eab\UniqueDatatypesBundle\EabUniqueDatatypesBundle(),
-
Run (in Windows you should be administrator to create symlinks):, (*13)
php ezpublish/console ezpublish:legacybundles:install_extensions
php ezpublish/console ezpublish:legacy:script bin/php/ezpgenerateautoloads.php
php ezpublish/console cache:clear --no-warmup --env=prod
-
Use eZ Publish's admin interface to add a field using this datatype to a content type and create some content., (*14)
-
Test it in a Twig template using the ez_render
function., (*15)