Extension: | OW ServiceBundle v1.0 |
---|---|
Requires: | eZ Publish 5.4.x |
Author: | Open Wide http://www.openwide.fr |
This extension provides a complete system to create and show service in bloc or full view.
This eZ Publish extension is provided as is, in GPL v3 (see LICENCE).
- Add ServiceBundle in your project's composer.json
{
"require": {
"open-wide/ezpublish-service-bundle": "dev-master"
}
}
- Enable the Bundle in your EzPublishKernel.php file:
<?php
// ezpublish/EzPublishKernel.php
use OpenWide\Publish\ServiceBundle;
...
public function registerBundles()
{
$bundles = array(
// ...
new OpenWide\Publish\ServiceBundle\OpenWidePublishServiceBundle(),
);
}
- Create the following classes using the content package in
Package
directory or using [OWMigration](https://github.com/Open-Wide/OWMigration):
- In the class group
Service
- service_folder
- service_link
- In the class group
- Add your event_folder LocationId in
src/symfony/ezpublish/config/config.yml
:
# LocationId of Service folder
open_wide_publish_service:
root:
location_id: ....
# Nb of element per page
paginate:
max_per_page: ...
Create contents on back-office with the following structure:
- service_folder
- service_link
- service_link
Run the legacy bundle install script manually:
$ php ezpublish/console ezpublish:legacybundles:install_extensions
By default, it will create an absolute symlink, but options exist to use a hard copy (–copy) or a relative link (--relative).