From f7ef4e0350edcbf70587e051c19edeb447b0457b Mon Sep 17 00:00:00 2001 From: ccauw Date: Tue, 16 Apr 2013 16:21:23 +0300 Subject: [PATCH] [*] BO : Add block "override_form_extra" in helper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [*] BO : Add block "override_form_extra" in list_header.tpl {if !$simple_header}
{block name="override_form_extra"}{/block} In AdminXxxxController, If we display list which are filtered by "variable" like index.php?controller=AdminXxxx&variable=val&token=... When using pagination or columns filters, the controller is called without our variable. There are two methods to retrieve our variable: cookie or form Post. To use the second opportunity, we need to put hidden input "variable" in the form. So we need à block in the form to override. --- admin-dev/themes/default/template/helpers/list/list_header.tpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/admin-dev/themes/default/template/helpers/list/list_header.tpl b/admin-dev/themes/default/template/helpers/list/list_header.tpl index 1a821e4f6..b8df4bd49 100644 --- a/admin-dev/themes/default/template/helpers/list/list_header.tpl +++ b/admin-dev/themes/default/template/helpers/list/list_header.tpl @@ -80,6 +80,9 @@ {if !$simple_header} + + {block name="override_form_extra"}{/block} + {/if}