Loading...
May 9, 2010#

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

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.
Continue Reading

May 1, 2010#

Useful Debugging in eZ Publish

There are lots of settings and helper functions which can really assist with debugging your eZ Publish site. Here are the key tips I use when I need to work through any issues. These involve making a number of changes to your ini settings to ensure debug/caching is set correctly when developing. One key thing though is to make sure any debug/cache settings you change must be reset when you move your site to production (if you need to check the logs on production, go into the var/logs directory in the root of eZ Publish).
Continue Reading

April 11, 2010#

Creating nodes in PHP with eZ Publish

There are many threads which detail creating objects in PHP but they all seem to do things slightly differently. Many of the posts are very old and out of date and so they use a very convoluted way of creating objects. Since eZ Publish 3.9 there’s been a much better approach to take but it is very well hidden the documentation and forums. Here’s a summary of how you can use it.
Continue Reading

April 10, 2010#

Using standard PHP functions in eZ Publish

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.
Continue Reading

March 27, 2010#

Creating Timed Takeovers in eZ Publish

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.
Continue Reading

March 27, 2010#

Creating a blank page layout template in eZ Publish

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.
Continue Reading