Forums / Developer / Error handling in templates
Marc-Aurèle Brothier
Tuesday 05 December 2006 7:33:15 am
Hi,
I wish to know in my differents templates if the user is actually forwarded to a kernel error page, or like the login page/log-off. Those pages do not have a node ID.
I need to put some special tags in the header of the page when the user got forwarded on such a page. Is there any global variable that I can fetch to know if there is an error? And when which one (like the value in kernel/error/errors.php file).
The only "way" I found so far is with the $ui_component which returns either "error" or "user", but still I don't wich error (not found, need authentication...)
Betsy Gamrat
Saturday 23 December 2006 8:45:26 pm
Marc-Aurele,
I would use $uri_string.
If that doesn't work, try {$module_result|attribute(show)} at the end of your template. It will show you all the attributes in $module_result.