Message-ID: <713524197.3212.1485852405338.JavaMail.confluence@ip-10-127-227-164> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3211_2095543632.1485852405338" ------=_Part_3211_2095543632.1485852405338 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html How to create a new design using Bundle Inheritance

How to create a new design using Bundle Inheritance

Due to the fact that eZ Platform is built using the Symfony 2 fr= amework, it is possible to benefit from most of its stock features such as = Bundle Inheritance. You should check out the related Symfony documentation.

Bundle Inheritance allows you to customize a template from a parent bund= le. This is very convenient when creating a custom design for an already ex= isting piece of code.

In this cookbook we will create a customized versi= on of a template from the DemoBundle.

Crea= ting a bundle

Create a new bundle to host your design using the dedicated command (fro= m your app installation):

=20
php app/console generate:bundle
=20

Configuring bundle to inherit from another

Following the related Symfony= documentation, modify your bundle to make it inherit from the "eZDemoB= undle". Then copy a template from the DemoBundle in the new bundle, followi= ng the same directory structure. Customize this template, clear application= caches and reload the page. You custom design should be available.

Know= n limitation

If you are experiencing problems with routes not working after adding yo= ur bundle, take a look at this issue.

 

Relat= ed topics:
------=_Part_3211_2095543632.1485852405338--