Loading...
June 19, 2010#

Making use of the 404 Error Page in eZ Publish

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

June 8, 2010#

Fetching eZ Publish User Objects with PHP: Part Two

This is the second part of this tutorial to demonstrate how you can access and extract user information from your eZ Publish database using PHP. In this part of the tutorial we will explore how you can use the eZContentTreeNode::subTreeByNodeID() method to pull out user information. This method allows you to perform powerful searches like you can in template fetch statements and so is the most flexible and straightforward way if you want to deal with specific users. In this tutorial we will look at its basic use and some practical examples before we create a cronjob to automate the process.
Continue Reading

June 7, 2010#

Fetching eZ Publish User Objects with PHP: Part One

There are specific cases where you need to pull the eZ Publish information directly in your PHP scripts. In this two part tutorial I will explore how you can extract user information from the CMS. We will also look at creating a cronjob to allow the process to be automated.

In this part of the tutorial, we will look at how you can retrieve individual users from the eZUser class and how you can use the functions of the class to extract all of the information for a specific user. We will then look at some of the functionality available for pulling out users from the eZUser and eZRole classes in eZ Publish.
Continue Reading