PHPackages                             brookinsconsulting/bcpagelayoutoverridetestbundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. brookinsconsulting/bcpagelayoutoverridetestbundle

ActiveLibrary[Templating &amp; Views](/categories/templating)

brookinsconsulting/bcpagelayoutoverridetestbundle
=================================================

An example of how to override the default pagelayout template of the default demo-bundle for eZ Publish / eZ Platform

2102PHP

Since May 12Pushed 11y ago3 watchersCompare

[ Source](https://github.com/brookinsconsulting/BCPageLayoutOverrideTestBundle)[ Packagist](https://packagist.org/packages/brookinsconsulting/bcpagelayoutoverridetestbundle)[ RSS](/packages/brookinsconsulting-bcpagelayoutoverridetestbundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

BCPageLayoutOverrideTestBundle for eZ Publish / eZ Platform
===========================================================

[](#bcpagelayoutoverridetestbundle-for-ez-publish--ez-platform)

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

Additional examples
-------------------

[](#additional-examples)

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](https://github.com/brookinsconsulting/BCPageLayoutOverrideTestBundle/commits/master) 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.

- This solution was also [extended](https://github.com/brookinsconsulting/BCPageLayoutOverrideTestBundle/commit/c8c0324554c815a55ddbc398eed43fb092ea6f9c) to provide an example of the code required to customize template override the eZDemoBundle login.html.twig template
- Later this solution was [extended](https://github.com/brookinsconsulting/BCPageLayoutOverrideTestBundle/commit/e48f57387a3b88c5869300d64e9ff3702eb37a67) to provide an example of the code required to override content\_field templates provided from other bundles, our first example is of the FieldType provided by the NetgenEnhancedSelectionBundle,
- Later this solution was extended to provide an example of the code required to override the eZDemoBundle page\_head\_style.html.twig to customize pagelayout background header image (css and bundle image).

Installation via Composer
=========================

[](#installation-via-composer)

```
$ cd /path/to/ezpublish-root-directory; composer.phar require "brookinsconsulting/bcpagelayoutoverridetestbundle" "dev-master";

```

Uninstall via Composer
======================

[](#uninstall-via-composer)

```
$ cd /path/to/ezpublish-root-directory; composer.phar remove brookinsconsulting/bcpagelayoutoverridetestbundle;

```

Manual Activation
=================

[](#manual-activation)

These steps are not required if the bundle is installed via composer.

- Edit `ezpublish/EzPublishKernel.php`
- 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 :)

# Documentation

* [Composer package](https://packagist.org/packages/brookinsconsulting/bcpagelayoutoverridetestbundle)

* [License](https://github.com/brookinsconsulting/bcpagelayoutoverridetestbundle/blob/master/LICENSE)

* [Forum thread which inspired the pagelayout example](http://share.ez.no/forums/ez-publish-5-platform/best-way-to-use-override-system-in-ez-publish-5#comment86463)

* [Forum thread which inspired the login example extensions](http://share.ez.no/forums/developer/how-to-add-a-login-box-to-the-frontpage-ezpublish-5.4)

* [Related eZ design bundle inheritance documentation](https://doc.ez.no/display/EZP/How+to+create+a+new+design+using+Bundle+Inheritance)

* [Related Symfony bundle inheritance documentation](http://symfony.com/doc/current/cookbook/bundles/inheritance.html)

* [Related eZ bundle inheritance issue possible when overriding DemoBundle](https://jira.ez.no/browse/EZP-23575)

* [Related eZ Authentication documentation](https://doc.ez.no/display/EZP/Authentication#Authentication-AuthenticationusingSymfonySecuritycomponent)

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/fda10bb840bcf345ab87d5ec5bd7c79da0be8858fc1b754db272ca1fc45e49e2?d=identicon)[brookinsconsulting](/maintainers/brookinsconsulting)

---

Top Contributors

[![brookinsconsulting](https://avatars.githubusercontent.com/u/617031?v=4)](https://github.com/brookinsconsulting "brookinsconsulting (8 commits)")

### Embed Badge

![Health badge](/badges/brookinsconsulting-bcpagelayoutoverridetestbundle/health.svg)

```
[![Health](https://phpackages.com/badges/brookinsconsulting-bcpagelayoutoverridetestbundle/health.svg)](https://phpackages.com/packages/brookinsconsulting-bcpagelayoutoverridetestbundle)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

555.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
