Find the Exponential Software extensions you want
UNIX name | Owner | Status |
---|---|---|
BCPageLayoutOverrideTestBundle | Brookins Consulting | stable |
Version | Compatible with |
---|---|
N/A | N/A |
BCPageLayoutOverrideTestBundle represent a working, ready to use example of all that is required to override the eZDemoBundle pagelayout.html.twig template provided in the default demo front-end website with eZ Publish / eZ Platform
Each of the following changes were made in waves following the initial publishing of this solution to continue to provide further examples how to override the internals of eZDemoBundle.
Review the commit log to learn what was changes to support the following. The commit history diff for each of these additions makes learning what to add yourself very clear.
$ cd /path/to/ezpublish-root-directory; composer.phar require "brookinsconsulting/bcpagelayoutoverridetestbundle" "dev-master";
$ cd /path/to/ezpublish-root-directory; composer.phar remove brookinsconsulting/bcpagelayoutoverridetestbundle;
These steps are not required if the bundle is installed via composer.
Add the following line to the use statement blocks (at the bottom of existing list):
use BrookinsConsulting\BCPageLayoutOverrideTestBundle\BCPageLayoutOverrideTestBundle;
Add the following line to the registerBundles function's $bundles array definition (again at the bottom of the existing list)
, new BCPageLayoutOverrideTestBundle()
Here is a more verbose example of what you will see after making the required changes. Please note that you must add a comma after the last bundle definition before you add your own new custom bundle or you will introduce a php syntax error into the file.
public function registerBundles()
{
$bundles = array(
new FrameworkBundle(),
// skipping existing bundle activation statements for brevity sake
new OneupFlysystemBundle(),
new BCPageLayoutOverrideTestBundle()
);
If you extend this bundle to provide more features, than more installation steps may be required :)