Find the Exponential Software extensions you want
UNIX name | Owner | Status |
---|---|---|
BcPageDataBundle | Brookins Consulting | stable |
Version | Compatible with |
---|---|
N/A | N/A |
This bundle implements a solution to provide request persistent variable storage service. Provides a symfony based replacement for the legacy ezpagedata operator.
BC Document Reader is licensed under the GNU General Public License.
The complete license agreement is included in the LICENSE file.
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.
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.
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.
It is also available at http://www.gnu.org/licenses/gpl.txt
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/.
Using BC Document Reader under the terms of the GNU GPL is free (as in freedom).
For more information or questions please contact: license@brookinsconsulting.com
The following requirements exists for using BC Page Data extension:
This solution provides the following twig filter.
Run the following command from your project root to install the bundle:
bash$ composer require brookinsconsulting/bcpagedatabundle dev-master;
Within file ezpublish/EzPublishKernel.php at the bottom of the use statements, add the following lines.
use BrookinsConsulting\BcPageDataBundle\BcPageDataBundle;
Within file ezpublish/EzPublishKernel.php method registerBundles add the following into the $bundles = array( variable definition.
new BrookinsConsulting\BcPageDataBundle\BcPageDataBundle(),
Clear eZ Publish Platform / eZ platfrom caches (Required).
php ezpublish/console cache:clear;
The solution is configured to work virtually by default once properly installed.
You can use the twig filter bc_pagedata within your own twig templates to access persistent variables.
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.
$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' );
}
Some problems are more common than others. The most common ones are listed in the the doc/FAQ.md
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