2017 © Pedro Peláez
 

ezplatform-bundle bcpagedatabundle

BC Page Data bundle for eZ Publish Platform. Provides a symfony based replacement for the eZ Publish Legacy ezpagedata operator's persistent storage.

image

brookinsconsulting/bcpagedatabundle

BC Page Data bundle for eZ Publish Platform. Provides a symfony based replacement for the eZ Publish Legacy ezpagedata operator's persistent storage.

  • Wednesday, March 8, 2017
  • by brookinsconsulting
  • Repository
  • 2 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

BC Page Data

This bundle implements a solution to provide request persistent variable storage service. Provides a symfony based replacement for the legacy ezpagedata operator., (*1)

Version

  • The current version of BC Page Data is 0.1.0, (*2)

  • Last Major update: May 19, 2015, (*3)

Copyright

  • BC Page Data is copyright 1999 - 2015 Brookins Consulting and 2013 - 2015 Think Creative, (*4)

  • See: COPYRIGHT.md for more information on the terms of the copyright and license, (*5)

License

BC Document Reader is licensed under the GNU General Public License., (*6)

The complete license agreement is included in the LICENSE file., (*7)

BC Document Reader is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License or at your option a later version., (*8)

BC Document Reader is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details., (*9)

The GNU GPL gives you the right to use, modify and redistribute BC Document Reader under certain conditions. The GNU GPL license is distributed with the software, see the file doc/LICENSE., (*10)

It is also available at http://www.gnu.org/licenses/gpl.txt, (*11)

You should have received a copy of the GNU General Public License along with BC Document Reader in doc/LICENSE. If not, see http://www.gnu.org/licenses/., (*12)

Using BC Document Reader under the terms of the GNU GPL is free (as in freedom)., (*13)

For more information or questions please contact: license@brookinsconsulting.com, (*14)

Requirements

The following requirements exists for using BC Page Data extension:, (*15)

eZ Publish version

  • Make sure you use eZ Publish version 5.x (required) or higher., (*16)

  • Designed and tested with eZ Publish Community Project 2013.11, (*17)

PHP version

  • Make sure you have PHP 5.x or higher.

Features

Dependencies

  • This solution does not depend on eZ Publish Legacy in any way

Twig operators

This solution provides the following twig filter., (*18)

  • Twig Filter: bc_pagedata - Used within template overrides to access variable content from the persistent (page data) service.

Services

  • The brookinsconsulting.page_data_persistence service can be used to get persistent storage variables or add variables into the request variable persistent storage provided within this bundle.

Installation

Bundle Installation via Composer

Run the following command from your project root to install the bundle:, (*19)

bash$ composer require brookinsconsulting/bcpagedatabundle dev-master;

Bundle Activation

Within file ezpublish/EzPublishKernel.php at the bottom of the use statements, add the following lines., (*20)

use BrookinsConsulting\BcPageDataBundle\BcPageDataBundle;

Within file ezpublish/EzPublishKernel.php method registerBundles add the following into the $bundles = array( variable definition., (*21)

new BrookinsConsulting\BcPageDataBundle\BcPageDataBundle(),

Clear the caches

Clear eZ Publish Platform / eZ platfrom caches (Required)., (*22)

php ezpublish/console cache:clear;

Usage

The solution is configured to work virtually by default once properly installed., (*23)

You can use the twig filter bc_pagedata within your own twig templates to access persistent variables., (*24)

You can use the brookinsconsulting.page_data_persistence service within your own custom PHP code to get persistent storage variables or add variables into the persistent storage., (*25)

$pageDataPersistence = $this->container->get( 'brookinsconsulting.page_data_persistence' );
// Access persistent storage
if ( $this->pageDataPersistence->has( 'document_readers' ) )
{
    $this->documentReaders = $this->pageDataPersistence->get( 'document_readers' );
}
else
{
    $this->set( array(), 'document_readers' );
    $this->documentReaders = $this->pageDataPersistence->get( 'document_readers' );
}

Troubleshooting

Read the FAQ

Some problems are more common than others. The most common ones are listed in the the doc/FAQ.md, (*26)

Support

If you have find any problems not handled by this document or the FAQ you can contact Brookins Consulting through the support system: http://brookinsconsulting.com/contact, (*27)

The Versions

08/03 2017

dev-master

9999999-dev https://bitbucket.org/brookinsconsulting/bcpagedatabundle

BC Page Data bundle for eZ Publish Platform. Provides a symfony based replacement for the eZ Publish Legacy ezpagedata operator's persistent storage.

  Sources   Download

GPL-2.0+

The Requires

 

bundle ez publish platform ez platform page data request persistent storage service solution