Templates used/called by the kernel/error view do indeed have a couple design keys that could be used for override via override.ini(.append.php). Besides the obvious Source filter, it is also possible to use:
For all intents and purposes, however, this is not a viable method of displaying custom error templates because it is not possible to match on a given view.
kernel/error/view.php passes very (very) little useful information to the various error_code templates, so there is nothing natively available in these templates to
use for doing things like for example a switch/case on section.
The best solution at the time of writing is to use $redirect_uri, from which it is possible to extract the module, current node ID, etc.
Based on a summary by Andrew Kelly in Trouble overriding "Access Denied" template (eZ forums)
Article provided by eZpedia
All text is available under the terms of the GNU Free Documentation License
Powered by eZ Publish 6.0.2stable
Hosted by USA eZ Publish Community Partner : Brookins Consulting