Extension: | OW Publish Agenda Bundle v1.1 |
---|---|
Requires: | eZ Publish 5.3.x |
Author: | Open Wide http://www.openwide.fr |
This extension provides a complete system to create and show events in a calendar view in front office via [FullCalendar](http://fullcalendar.io/).
This eZ Publish extension is provided as is, in GPL v3 (see LICENCE).
Add
PublishAgendaBundle
in your projectVia composer
Add the bundle in your
composer.json
{ "require": { "open-wide/ezpublish-agenda-bundle": "dev-master" } }
Via a submodule
mkdir -p src/OpenWide/Publish git submodule add https://github.com/Open-Wide/OwPublishAgendaBundle.git src/OpenWide/Publish/AgendaBundle
Enable the Bundle in your
EzPublishKernel.php
file:<?php // ezpublish/EzPublishKernel.php public function registerBundles() { $bundles = array( // ... new OpenWide\Publish\AgendaBundle\OpenWidePublishAgendaBundle(), ); }
Create the following classes using the content package in
Package
directory or using [OWMigration](https://github.com/Open-Wide/OWMigration):- In the class group
Agenda
agenda_folder
: Agendas folderagenda
: Agendaagenda_event
: Eventagenda_schedule
: Event schedule
- In the class group
Add your
agenda_folder
LocationId inezpublish/config/config.yml
:parameters: # LocationId of Agenda ezsettings.default.open_wide_publish_agenda.agenda_folder.location_id: ... # Nb of element per page ezsettings.default.open_wide_publish_agenda.paginate.max_per_page: 10
Create contents on back-office with the following structure:
- agenda_folder
- agenda
- agenda_event
- agenda_schedule
- agenda_schedule
- agenda_schedule
- agenda_event
- agenda_schedule
- agenda
- agenda_event
- agenda_schedule
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
).Add this bundle on your assetic bundles array in
ezpublish/config/config.yml
:# Assetic Configuration assetic: bundles: [ OtherBundle, OpenWidePublishAgendaBundle ] ... assets: glyphicons-halflings-regular-eot: inputs: '@OpenWidePublishAgendaBundle/Resources/public/fonts/glyphicons-halflings-regular.eot' output: 'fonts/glyphicons-halflings-regular.otf' glyphicons-halflings-regular-ttf: inputs: '@OpenWidePublishAgendaBundle/Resources/public/fonts/glyphicons-halflings-regular.ttf' output: 'fonts/glyphicons-halflings-regular.ttf' glyphicons-halflings-regular-woff2: inputs: '@OpenWidePublishAgendaBundle/Resources/public/fonts/glyphicons-halflings-regular.woff2' output: 'fonts/glyphicons-halflings-regular.woff2' glyphicons-halflings-regular-svg: inputs: '@OpenWidePublishAgendaBundle/Resources/public/fonts/glyphicons-halflings-regular.svg' output: 'fonts/glyphicons-halflings-regular.svg' glyphicons-halflings-regular-woff: inputs: '@OpenWidePublishAgendaBundle/Resources/public/fonts/glyphicons-halflings-regular.woff' output: 'fonts/glyphicons-halflings-regular.woff'
Import ezpublish.yml configuration in
ezpublish/config/ezpublish.yml
:imports: - {resource: @OpenWidePublishAgendaBundle/Resources/config/ezpublish.yml}
Import routing.yml configuration in
ezpublish/config/routing.yml
:agenda: resource: "@OpenWidePublishAgendaBundle/Resources/config/routing.yml"
Regenerate the Assetic with the following command:
$ php ezpublish/console assetic:dump web
FullCalendar documentation: http://fullcalendar.io/docs/