eZ Community » Blogs » Gaetano Giunta

Member since: 30/11/1999

Blog entries
  • Currently 5 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

eZ Publish 5 Coding best Practices

Friday 19 September 2014 12:13

by Gaetano Giunta  | 2 comments

A question often asked by partners / customers / developers is about "what are the best practices for developing eZ Publish 5 projects".

It is true that the community at large does not have the same amount of experience with the new version as it had with the legacy one. Any feedback is thus welcome, such as the excellent one from Donat.

Also, compared to eZ4, Symfony often offers looser guidelines and a more open structure, which might leave developers stranded and development team members in conflict with each other.

Having had the opportunity to participate in a couple of "biggish" projects based on eZ Publish 5, I have made some notes on development practices which helped the teams develop better code faster.

Read on, and please do comment on anything which you feel is missing / inappropriate. This is supposed to be a work-in-progress, not a cast-in-stone manual.

  • Currently 5 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tricks of the trade: "displaying nice error pages" whatever the error is

Friday 18 October 2013 12:05

by Gaetano Giunta  | 0 comments

This is a request I get from customers often enough that I decided to write a blog post about it.

The need is often phrased differently, but it boils down to "how can I show nice error pages for any type of error possibly happening on my site?".

eZPublish, being the flexibility behemot we all know, already supports tweaking the error pages displayed for common cases such as bad urls (404) or access denied.

Still, the problem is a bit more complex than that, and for a really comprehensive solution we will need to complement eZ tweaking with changes to the webserver configuration.

  • Currently 5 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

eZ on Cheap Hosting, episode I - solving the magic_quotes_gpc problem

Saturday 02 February 2013 06:58

by Gaetano Giunta  | 1 comment

This is the first in a series of blog posts dedicated to installing eZ Publish on cheap hosting.

"Cheap hosting" in this context has no strict definition; it is a term used to denote the hosting solutions on shared servers which typically give to the user little control over the configuration of the LAMP stack: no cronjobs, no shell access, no access to php.ini, no choice of storage engine or charset for mysql databases etc...

There are many small quirks with such solutions which can make life of the eZ developer hard - often not documented well if at all in the descriptions of the offer itself. The upside is that they generally can be rented almost for free, making them attractive for the cash-strapped personal-blog type of users. And even if you find one which is really incompatible, it will not make a huge dent in your pocket.

Without further ado, this one concentrates on problems with the php.ini setting "magic_quotes_gpc".

The observable behaviour is: impossibility to add images to rich text fields, quotes in text fields which get replaced by backslash-quote.

Read on for the solution...

  • Currently 3 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Easy mashups with eZPublish part II - solving the same-origin problem for ajax calls

Tuesday 25 September 2012 11:21

by Gaetano Giunta  | 0 comments

In the previous installment of this series, I have shown how easy it is to integrate data coming from external services in your eZ Publish website.

Now, it is time to delve in the possibility of using ajax to access the remote service, and have a look at the same-origin problem and the different tools at our disposal to solve it.

  • Currently 5 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Easy mashups with eZPublish: adding weather data to your pages

Thursday 20 September 2012 11:43

by Gaetano Giunta  | 0 comments

An interesting blog post from mugo web sparked my attention. It was about using the REST API exposed by the http://www.wunderground.com website to add weather info to your site.

I immediately set up to see how hard it would be to implement in eZ Publish the small weather widget they showcased. As expected, it was a matter of minutes :-)

So I got bored, and decided to write a blog post as well, showcasing how to integrate 3rd party webservices into your eZ sites.

Read on for a detailed tutorial...

  • Currently 3 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Load balancing eZ Find for Fun and Profit, part II

Thursday 12 July 2012 06:31

by Gaetano Giunta  | 0 comments

In the previous installment in this series, we showed how to configure eZFind for high-availability.

Now we tackle the problem of load balancing...

  • Currently 5 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Load balancing eZ Find for Fun and Profit

Saturday 07 July 2012 04:19

by Gaetano Giunta  | 4 comments

A common question I encounter in my consulting work is: how can Solr be configured for achieving scalability and high-availability?

There seems to be a lot of confusion around this topic, and the solutions I find deployed vary a lot. Often they are far from optimal, and offer little in both availability and scalability.

I will present here a simple configuration that needs little else than stock Apache and Solr servers to achieve both high-availability scalability. Read on for the details...

  • Currently 5 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

The definitive guide to Cache Block expiry rules

Monday 04 June 2012 10:56

by Gaetano Giunta  | 2 comments

Everyone loves cache blocks, right?

And I am sure everyone here can tell me the difference between usage of  and subtree_expiry and ignore_content_expiry (note for the casual reader: it is: "use the latter if you can, try to addalways use the former when you can not").

But what if I was to ask: "cache block expiration is triggered by content publishing. What happens with all other operations, such as assigning obj state or section?"

Bear with me to find out...

  • Currently 3 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

eZ Publish 4.7, a debugger's best friend

Sunday 25 March 2012 03:13

by Gaetano Giunta  | 2 comments

Why? Simple:

After a long wait, my pull request to enhance the stock looks of the debug output report has been merged: https://github.com/ezsystems/ezpublish/pull/240.

But there's more... read on for the details.

  • Currently 5 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Little Nemo in SlumberCode part 1: can jQuery meet the eZ template language?

Sunday 18 March 2012 12:43

by Gaetano Giunta  | 7 comments

First post in a series of "crazy ideas to explore at nighttime", this is dedicated to a new friend of mine: jQuery.

I never used that framework very much (I remain a backend coder at heart), but having been recently involved in whipping up some interactive and cool-looking web pages, I was impressed by the ease with which it allows to select sets of html elements and retrieve / alter their values.

The next (il)logical step was asking myself: can we reproduce such conciseness and ease of use in the eZ template language, where fetch functions are a staple? After all the "content/list" fetch function is used to select a set of nodes from a tree, with some filters applied. And, hey, nodes have attributes too, just like html elements!

Read on for more senseless drivel, erm, detailed analysis...

You must be logged in to track the activity of this blog!

Proudly Developed with from