O'Reilly logo

eZ Publish 4: Enterprise Web Sites Step-by-Step by Francesco Trucchia, Francesco Fullone

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Customizing our class templates

After creating our template files, it is time to edit the HTML and logic, in order to create our own custom classes (profile) and standard classes (folder, article) views in the issue section that will have a different appearance to the standard layout.

Now, we will look at the code of most complex classes, according to the override rules that we previously created.

Staff profile template

For the Staff class, we'll have two main views: the line view and the full view. We can start from the line view template.

Line template

To modify the template, we must open the extension/packtmedia/design/magazine/override/templates/line/profile.tpl file, and add the following code:

<div class="content-view-line"> <div class="class-profile"> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required