open-wide / ezpublish-agenda-bundle
For Ez Publish 5, provides a complete system to create and show events in a calendar view in front office via FullCalendar
Installs: 47
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 18
Forks: 1
Open Issues: 0
Language:JavaScript
Requires
- php: >=5.3.3
- symfony/symfony: >=2.3
This package is not auto-updated.
Last update: 2025-03-01 19:32:05 UTC
README
Extension: | OW AgendaBundle v1.1 |
---|---|
Requires: | eZ Publish 5.3.x |
Author: | Open Wide http://www.openwide.fr |
Presentation
This extension provides a complete system to create and show events in a calendar view in front office via [FullCalendar](http://fullcalendar.io/).
LICENCE
This eZ Publish extension is provided as is, in GPL v3 (see LICENCE).
Installation via composer
- Add AgendaBundle in your project's composer.json
{ "require": { "open-wide/ezpublish-agenda-bundle": "dev-master" } }
- Enable the Bundle in your EzPublishKernel.php file:
<?php // ezpublish/EzPublishKernel.php use OpenWide\AgendaBundle; ... public function registerBundles() { $bundles = array( // ... new OpenWide\AgendaBundle\OpenWideAgendaBundle(), ); }
- 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
- event_folder
- event_liste
- event_agenda
- event_date
- In the class group
- Add your event_folder LocationId in
src/symfony/ezpublish/config/config.yml
:
# LocationId of Agenda open_wide_agenda: root: location_id: .... # Nb of element per page paginate: max_per_page: ...
Create contents on back-office with the following structure:
- event_folder
- event_liste
- event_agenda
- event_date
- event_agenda
- event_date
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 your event_folder LocationId in Legacy ini
/settings/override/site.ini.append.php
:
[AgendaSettings] RootFolderNodeId=...
- Add this bundle on your assetic bundles array in
src/symfony/ezpublish/config/config.yml
:
# Assetic Configuration assetic: bundles: [ OtherBundle, OpenWideAgendaBundle ]
- Import ezpublish.yml configuration in
src/symfony/ezpublish/config/ezpublish.yml
:
imports: - {resource: @OpenWideAgendaBundle/Resources/config/ezpublish.yml}
- Import routing.yml configuration in
src/symfony/ezpublish/config/routing.yml
:
agenda: resource: "@OpenWideAgendaBundle/Resources/config/routing.yml"
- Regenerate the Assetic with the following command:
$ php ezpublish/console assetic:dump web
- Configure yours views in
src/symfony/ezpublish/config/ezpublish.yml
:
ezpublish: system: your-siteaccess: location_view: event_folder: template: OpenWideAgendaBundle:full:event_folder.html.twig controller: "agenda.controller.event_folder.view:viewLocation" match: Identifier\ContentType: event_folder event_agenda: template: OpenWideAgendaBundle:full:event_agenda.html.twig controller: "agenda.controller.event_agenda.view:viewLocation" match: Identifier\ContentType: event_agenda event_liste: template: OpenWideAgendaBundle:full:event_liste.html.twig controller: "agenda.controller.event_liste.view:viewLocation" match: Identifier\ContentType: event_liste line: event_agenda: template: OpenWideAgendaBundle:line:event_agenda.html.twig controller: "agenda.controller.event_agenda.view:viewLocation" match: Identifier\ContentType: event_agenda event_date: template: OpenWideAgendaBundle:line:event_date.html.twig controller: "agenda.controller.event_date.view:viewLocation" match: Identifier\ContentType: event_date bloc: event_folder: template: OpenWideAgendaBundle:bloc:event_folder.html.twig controller: "agenda.controller.event_folder.view:viewLocation" match: Identifier\ContentType: event_folder content_view: embed_agenda: event_date: template: OpenWideAgendaBundle:content_view/embed:event_date.html.twig controller: "agenda.controller.event_date.view:viewContent" match: Identifier\ContentType: event_date
Usage
Front Office Calendar View
Front Office Calendar Mini View
Other
FullCalendar documentation: http://fullcalendar.io/docs/