2017 © Pedro PelĂĄez
 

library settings-bundle

Masev SettingsBundle introduce a settings system into eZ Publish 5.x, administration is possible thanks to an interface in legacy admin.

image

masev/settings-bundle

Masev SettingsBundle introduce a settings system into eZ Publish 5.x, administration is possible thanks to an interface in legacy admin.

  • Friday, July 27, 2018
  • by masev
  • Repository
  • 4 Watchers
  • 5 Stars
  • 567 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 10 Versions
  • 1 % Grown

The README.md

MasevSettingsBundle

Masev SettingsBundle introduce a settings system into eZ Publish 5.x, administration is possible thanks to an interface in legacy admin (AngularJS powered). All settings are injected in Symfony container as a parameter. There are compatible with the eZ Publish Config Resolver allowing you the define settings per siteaccess., (*1)

Screenshot of the UI, (*2)

Install

Step 1: Download MasevSettingsBundle using composer

Add MasevSettingsBundle in your composer.json:, (*3)

{
    "require": {
        "masev/settings-bundle": "dev-master"
    }
}

Now tell composer to download the bundle by running the command:, (*4)

``` bash $ php composer.phar update masev/settings-bundle, (*5)


Composer will install the bundle to your project's `vendor/masev/settings-bundle` directory. ### Step 2: Enable the bundle Enable the bundle in the kernel: ``` php /Resources/config/. ```xml <settings xmlns="http://william-pottier.fr/schema/settings" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://william-pottier.fr/schema/settings https://raw.github.com/wpottier/WizadSettingsBundle/master/Resources/schema/settings-1.0.xsd"> <parameter key="category.sub_category.sender_name"> <name>Email sender name</name> <default>Me</default> </parameter> <parameter key="category.sub_category.sender_email"> <name>Email sender address</name> <default>me@my-site.com</default> </parameter> <parameter key="category.sub_category.message"> <name>Message</name> <default></default> <form type="textarea" cols="30" rows="10"></form> </parameter> </settings>

Settings key must have a category and sub_category name to be displayed correctly in the legacy UI., (*6)

Clear the Symfony cache :, (*7)

php ezpublish/console cache:clear

At this step you should be able the define settings in the legacy UI (configuration tab in the eZ Publish Legacy Administration)., (*8)

Step 5 : Query your settings

Now that you have define settings you can query them with the eZ Publish config resolver., (*9)

// Get the 'category.sub_category.sender_name' settings in the current scope (i.e. current siteaccess)
$this->configResolver->getParameter('category.sub_category.sender_name', 'masev_settings');

// You can force siteaccess
$this->configResolver->getParameter('category.sub_category.sender_name', 'masev_settings', 'my_site_access');

In a twig template you can use the getMasevSettings() Twig function., (*10)

The Versions

27/07 2018

dev-master

9999999-dev

Masev SettingsBundle introduce a settings system into eZ Publish 5.x, administration is possible thanks to an interface in legacy admin.

  Sources   Download

GPL-2.0

The Requires

 

by Matthieu SévÚre

23/03 2016

2.3.1

2.3.1.0

Masev SettingsBundle introduce a settings system into eZ Publish 5.x, administration is possible thanks to an interface in legacy admin.

  Sources   Download

GPL-2.0

The Requires

 

by Matthieu SévÚre

22/01 2016

2.3

2.3.0.0

Masev SettingsBundle introduce a settings system into eZ Publish 5.x, administration is possible thanks to an interface in legacy admin.

  Sources   Download

GPL-2.0

The Requires

 

by Matthieu SévÚre

04/01 2016

2.2

2.2.0.0

Masev SettingsBundle introduce a settings system into eZ Publish 5.x, administration is possible thanks to an interface in legacy admin.

  Sources   Download

GPL-2.0

The Requires

 

by Matthieu SévÚre

24/11 2015

2.1

2.1.0.0

Masev SettingsBundle introduce a settings system into eZ Publish 5.x, administration is possible thanks to an interface in legacy admin.

  Sources   Download

GPL-2.0

The Requires

 

by Matthieu SévÚre

27/10 2015

2.0

2.0.0.0

Masev SettingsBundle introduce a settings system into eZ Publish 5.x, administration is possible thanks to an interface in legacy admin.

  Sources   Download

GPL-2.0

The Requires

 

by Matthieu SévÚre

27/10 2015

2.x-dev

2.9999999.9999999.9999999-dev

Masev SettingsBundle introduce a settings system into eZ Publish 5.x, administration is possible thanks to an interface in legacy admin.

  Sources   Download

GPL-2.0

The Requires

 

by Matthieu SévÚre

12/04 2015

1.1

1.1.0.0

Masev SettingsBundle introduce a settings system into eZ Publish 5.x, administration is possible thanks to an interface in legacy admin.

  Sources   Download

GPL-2.0

The Requires

 

by Matthieu SévÚre

14/03 2015

1.0

1.0.0.0

Masev SettingsBundle introduce a settings system into eZ Publish 5.x, administration is possible thanks to an interface in legacy admin.

  Sources   Download

GPL-2.0

The Requires

 

by Matthieu SévÚre

27/01 2015

dev-angular

dev-angular

Masev SettingsBundle introduce a settings system into eZ Publish 5.x, administration is possible thanks to an interface in legacy admin.

  Sources   Download

GPL-2.0

The Requires

 

by Matthieu SévÚre