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
Using Custom PHP Functions in eZ Publish Templates
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
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
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
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
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
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
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
Custom User Authentication in phpBB
One issue with using phpBB for site forums is hooking the forum up to be logged in by your main site login. phpBB 3 allows the creation of a custom authentication plugin. Create a document named “auth_name” where name is what you want the authentication method to be called. Store this in the auth/ folder and then specify in the config table in the database or the Client communication/Authentication settings section of the administration panel.
Continue Reading