2017 © Pedro Peláez
 

melisplatform-module melis-cms-slider

Melis Platform slider module

image

melisplatform/melis-cms-slider

Melis Platform slider module

  • Monday, July 16, 2018
  • by melisplatform
  • Repository
  • 5 Watchers
  • 1 Stars
  • 924 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • 7 % Grown

The README.md

melis-cms-slider

MelisCmsSlider provides a full Slider system for Melis Platform, including templating plugins., (*1)

Getting Started

These instructions will get you a copy of the project up and running on your machine.
This Melis Platform module is made to work with the MelisCore., (*2)

Prerequisites

You will need to install melisplatform/melis-cms in order to have this module running.
This will automatically be done when using composer., (*3)

Installing

Run the composer command:, (*4)

composer require melisplatform/melis-cms-slider

See Full documentation on Melis CMS Slider here, (*5)

Database

Database model is accessible on the MySQL Workbench file:
/melis-cms-slider/install/sql/model
Database will be installed through composer and its hooks.
In case of problems, SQL files are located here:
/melis-cms-slider/install/sql, (*6)

Tools & Elements provided

  • Slider Tool
  • Melis Templating Slider Plugin (SliderShow)
  • News with Sliders when MelisCmsNews Module is installed

Running the code

MelisCmsSlider Services

MelisCmsSlider provides many services to be used in other modules:, (*7)

  • MelisCmsNewsService
    Services to retrieve lists of sliders, slider details and save sliders
    File: /melis-cms-slider/src/Service/MelisCmsSliderService.php
// Get the service
$sliderService = $this->getServiceManager()->get('MelisCmsSliderService');
// Get slider by id
$data = $sliderService->getSlider($sliderId);

MelisSlider Forms

Forms factories

All Melis CMS Slider forms are built using Form Factories.
All form configuration are available in the file: /melis-cms-slider/config/app.forms.php
Any module can override or add items in this form by building the keys in an array and marge it in the Module.php config creation part., (*8)

return array(
    'plugins' => array(

        // MelisCmsNews array
        'MelisCmsSlider' => array(

            // Form key
            'forms' => array(

                // MelisCmsNews Properties form
                'MelisTechnologySlider_details_form' => array(
                    'attributes' => array(
                        'name' => 'sliderDetailsForm',
                        'id' => 'sliderDetailsForm',
                        'enctype' => "multipart/form-data",
                        'method' => 'POST',
                        'action' => '',
                    ),
                    'hydrator'  => 'Laminas\Hydrator\ArraySerializableHydrator',
                    'elements' => array(
                        array(
                            'spec' => array(
                                    ...
                            ),
                        ),
                    ),
                    'input_filter' => array(
                        'mcsdetail_id' => array(
                                ...
                        ),
                    ),
                ),
            ),
        ),
    ),
),

Forms elements

MelisCmsSlider provides form elements to be used in forms:, (*9)

  • CmsSliderSelect: a dropdown to select a slider

Listening to services and update behavior with custom code

Most services trigger events so that the behavior can be modified., (*10)

public function attach(EventManagerInterface $events)
{
    $sharedEvents      = $events->getSharedManager();

    $callBackHandler = $sharedEvents->attach(
        'MelisCmsSlider',
        array(
            'meliscmsslider_delete_details_end',
        ),
        function($e){

            $sm = $e->getTarget()->getEvent()->getApplication()->getServiceManager()
            $sm = $e->getTarget()->getEvent()->getApplication()->getServiceManager()
            $params = $e->getParams();

            // Custom code here

        },
    100);

    $this->listeners[] = $callBackHandler;
}

Authors

See also the list of contributors who participated in this project., (*11)

License

This project is licensed under the OSL-3.0 License - see the LICENSE.md file for details, (*12)

The Versions

16/07 2018

dev-master

9999999-dev https://github.com/melisplatform/melis-cms-slider

Melis Platform slider module

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

zf2 module cms melis

16/07 2018

dev-develop

dev-develop https://github.com/melisplatform/melis-cms-slider

Melis Platform slider module

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

zf2 module cms melis

09/07 2018

dev-feature/menu-v2

dev-feature/menu-v2 https://github.com/melisplatform/melis-cms-slider

Melis Platform slider module

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

zf2 module cms melis

31/05 2018

dev-feature/left-menu-update

dev-feature/left-menu-update https://github.com/melisplatform/melis-cms-slider

Melis Platform slider module

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

zf2 module cms melis

03/05 2018
01/03 2018
26/02 2018
15/01 2018

dev-hotfix-dbdeploy

dev-hotfix-dbdeploy https://github.com/melisplatform/melis-cms-slider

Melis Platform slider module

  Sources   Download

OSL-3.0

The Requires

  • php ^5.5 || ^7.0

 

The Development Requires

zf2 module cms melis

12/10 2017

v2.2.1

2.2.1.0 https://github.com/melisplatform/melis-cms-slider

Melis Platform slider module

  Sources   Download

OSL-3.0

The Requires

  • php ^5.5 || ^7.0

 

The Development Requires

zf2 module cms melis

07/08 2017

v2.2.0

2.2.0.0 https://github.com/melisplatform/melis-cms-slider

Melis Platform slider module

  Sources   Download

OSL-3.0

The Requires

  • php ^5.5 || ^7.0

 

The Development Requires

zf2 module cms melis

19/06 2017

v2.1.1

2.1.1.0 https://github.com/melisplatform/melis-cms-slider

Melis Platform slider module

  Sources   Download

OSL-3.0

The Requires

  • php ^5.5 || ^7.0

 

The Development Requires

zf2 module cms melis

16/05 2017

v2.1

2.1.0.0 https://github.com/melisplatform/melis-cms-slider

Melis Platform slider module

  Sources   Download

OSL-3.0

The Requires

  • php ^5.5 || ^7.0

 

The Development Requires

zf2 module cms melis