Skip to content

Open-Wide/OwPublishAgendaBundle

Repository files navigation

OWPublishAgendaBundle for eZ Publish documentation

image

Extension

OW Publish Agenda Bundle 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

  1. Add PublishAgendaBundle in your project

    • Via 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
  2. Enable the Bundle in your EzPublishKernel.php file:

    <?php
    // ezpublish/EzPublishKernel.php
    
    public function registerBundles()
    {
      $bundles = array(
        // ...
        new OpenWide\Publish\AgendaBundle\OpenWidePublishAgendaBundle(),
      );
    }
  3. 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 folder
      • agenda : Agenda
      • agenda_event : Event
      • agenda_schedule : Event schedule
  4. Add your agenda_folder LocationId in ezpublish/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
  5. 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
  6. 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).

  7. 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'
  8. Import ezpublish.yml configuration in ezpublish/config/ezpublish.yml:

    imports:
        - {resource: @OpenWidePublishAgendaBundle/Resources/config/ezpublish.yml}
  9. Import routing.yml configuration in ezpublish/config/routing.yml:

    agenda:
        resource: "@OpenWidePublishAgendaBundle/Resources/config/routing.yml"
  10. Regenerate the Assetic with the following command:

    $ php ezpublish/console assetic:dump web

Usage

Front Office Calendar View

image

Front Office Calendar Mini View

image

Other

FullCalendar documentation: http://fullcalendar.io/docs/

About

This extension provides a complete system to create and show events in a calendar view in front office via FullCalendar on eZ Publish 5

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •