Some SQL for pulling out usernames and last login dates from the db, most recent first…
Continue Reading
SQL for pulling out recent logins
Turning off the ezinfo “about” view
The ezinfo module provides useful information about your eZ Publish build. Unfortunately though, by default, it provides a public view for any user to view information about your eZ Publish version, and about any extensions you have installed (visit yoursite/ezinfo/about). Although as a developer this is useful it really is less than ideal that this information is available to all but luckily it is easy to turn off.
Continue Reading
Using menu.ini for your tabs and menus
When writing admin based modules in your extensions, the menu.ini is essential for creating the tab you need to access your functionality. This functionality is easy to utilise. There are also a number of settings which make it appear straightforward to create your own .ini based left menu, unfortunately though this is not the case.
Creating Admin Templates in eZ Publish
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.
Continue Reading
Extended Attribute Filters in eZ Publish
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.
Continue Reading
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
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
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
Using Custom PHP Functions in eZ Publish Templates
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.
Continue Reading
Useful eZ Publish Links
Here are some links I’ve come back to quite a few times while developing eZ Publish based sites. Some of the things they tackle are incredibly useful and are hard to track down.
Continue Reading