Message-ID: <1291788549.3536.1485853527894.JavaMail.confluence@ip-10-127-227-164> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3535_1369119857.1485853527894" ------=_Part_3535_1369119857.1485853527894 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

eZ Publish being built using the Symfony 2 framework, it is poss= ible to benefit from most of its stock feature such as Bundle Inheritance. = You should check out the related sy= mfony documentation.

Bundle Inheritance allows to customize a template from a parent bundle. = This is very convenient to create a custom design for an already existing p= iece of code.

In this cookbook we will create a customized version 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 ezpublish installation):

=20
php ezpublish/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.

 

 

------=_Part_3535_1369119857.1485853527894--