frontend_action_error

Adds custom content to error pages in frontend.

Blog

Input (passed by reference)

$params array Request parameters returned by method waRequest::param().
… your plugin code …

Output

{$frontend_action_error.%plugin_id%.nav_before}
Custom content above main (central) part of page.
{$frontend_action_error.%plugin_id%.footer}
Custom content under main (central) part of page.
{$frontend_action_error.%plugin_id%.head}
Extra HTML code in HEAD section HEAD; e.g., for including CSS or JavaScript files.
{$frontend_action_error.%plugin_id%.sidebar}
Custom elements in navigation section.
Blog

Plugin code example

PHP

public function frontendActionError($params)
{
    waLog::log(print_r($params, true), 'blog/myplugin/frontend-action-error.log');
    return array(
        'nav_before' => 'Custom navigation content',
        'footer' => 'Custom footer content',
        'head' => 'Custom HTML code for HEAD section',
        'sidebar' => 'Custom sidebar content',
    );
}