One quarter English
One quarter English

Templates posts

Creating Admin Templates in eZ Publish

August 17th, 2010

Adding your own tabs and content to the CMS is essential for some extensions you build. This enables you to isolate functionality for authorised users and embed this functionality into the back office they are familiar with. This tutorial will cover the basics for creating CMS based views and modules which you can use as a base for your own extensions.
Read the rest of this entry »

Tags: , ,

Extended Attribute Filters in eZ Publish

July 25th, 2010

For a previous article I covered the various ways you can export user data using eZ Publish. In the article, I suggested how you can export all users who have logged in over the previous month using an extended attribute filter. In this article I will cover creating several different Extended Attribute Filters so you can see how they may be implemented in your code.

We’ll start by creating an extension to house our filters followed by building a basic filter to return a list of users who have forgotten their passwords. We will then create a filter to tell us how many/which users have logged in over the past month. We’ll also cover how you can add Extended Attribute Filters to both your template files and your PHP scripts.
Read the rest of this entry »

Tags: , ,

Making use of the 404 Error Page in eZ Publish

June 19th, 2010

For all commercial sites I have worked on in eZ Publish, no site has had a useful error page, despite the fact that using template overrides makes it so straightforward. In this post I will demonstrate how easy it is, showing how a custom 404 page for your site can be made. Our final page will contain a search box and the most popular pages on the site. We will also look at how you can use the eZPublish log to track which requests were not found.
Read the rest of this entry »

Tags: , ,

Using Custom PHP Functions in eZ Publish Templates

May 23rd, 2010

In a previous post, I discussed how to use standard PHP functions within eZ Publish Templates. This article demonstrates how to use custom functions instead using custom Template Operators.
Read the rest of this entry »

Tags: , ,

Preventing Issues between Dev, Stage and Live environments in eZ Publish

May 9th, 2010

If you are reliant on node IDs in your code it can lead to issues when moving your code between your dev, stage and live environments. Since your live site will have content added much more often, node IDs will tend to be much higher on that compared to your dev and stage environments. It is possible to use other alternatives in your override.ini file and in your templates to prevent this from happening.
Read the rest of this entry »

Tags: , ,

Using standard PHP functions in eZ Publish

April 10th, 2010

Although many standard PHP functions are available in eZ Publish (usually with very different names) there are also a large number which are not available. This seems especially to be the case with the templating functionality for Strings. Common PHP tasks such as str_replace are just not available. There are two simple solutions for this.
Read the rest of this entry »

Tags: , ,

Creating Timed Takeovers in eZ Publish

March 27th, 2010

Producing Takeovers can be done simply and easily in the pagelayout of your ez publish site. The $module_result gives you all information you may need. By using the parameters in it you can target individual pages of your site or whole branches and add extra stylesheets and javascript into these pages.
Read the rest of this entry »

Tags: , ,

Creating a blank page layout template in eZ Publish

March 27th, 2010

Every page you visit in eZ Publish uses the PageLayout File to create the structure of the page. For XML or AJAX based content you do not always want this to be the case. To get around it, you can add a new layout without a pagelayout template associated with it.
Read the rest of this entry »

Tags: , ,