Forum
List Manager Support
List Manager supportForums
No se permite escribir sin estar logado. Por favor, login
Pre populating LM Search Box 23.01.2013 16:03
Great component! Love how flexible it is :)
Question about the Search within the header row. Is there an easy way to 'pre-populate' it with a search term?
I.E. take your example here: http://www.moonsoft.es/index.php/en/demo-listmanager-en
How could we change it so the page comes up with 'wall' in the search box and then the results below. I know we could build a list view for each, but we have several dozen and also wanted to allow user to search for other results too.
See here: http://i.imgur.com/3b5OogD.png
Edited by moon_858 - 23.01.2013 16:03
Question about the Search within the header row. Is there an easy way to 'pre-populate' it with a search term?
I.E. take your example here: http://www.moonsoft.es/index.php/en/demo-listmanager-en
How could we change it so the page comes up with 'wall' in the search box and then the results below. I know we could build a list view for each, but we have several dozen and also wanted to allow user to search for other results too.
See here: http://i.imgur.com/3b5OogD.png
Edited by moon_858 - 23.01.2013 16:03
Re: Pre populating LM Search Box 23.01.2013 18:22
Hello,
in older versions we used to have a parameter which worked that way, setting a default search text for the field. When views were added, that parameter was deprecated. In order to get a default text filter being applied without creating views, you will have to introduce a code tweak. You can try this:
edit
joomla\modules\mod_listmanager\tmpl\content.php
and about line 640 you will find // first submit . Comment the next submit line and add the lines below (replace [ and ] for lt and gt symbols, we paste it this way to avoid the forum strip the code).
// first submit
//submitAjaxForm("show",false,2);
$('[?php echo $seed;?]filtertext').setProperty('value','ace');
filtraDatos[?php echo $seed;?]();
Hope this helps, regards
Moonsoft Team
www.moonsoft.es
in older versions we used to have a parameter which worked that way, setting a default search text for the field. When views were added, that parameter was deprecated. In order to get a default text filter being applied without creating views, you will have to introduce a code tweak. You can try this:
edit
joomla\modules\mod_listmanager\tmpl\content.php
and about line 640 you will find // first submit . Comment the next submit line and add the lines below (replace [ and ] for lt and gt symbols, we paste it this way to avoid the forum strip the code).
// first submit
//submitAjaxForm("show",false,2);
$('[?php echo $seed;?]filtertext').setProperty('value','ace');
filtraDatos[?php echo $seed;?]();
Hope this helps, regards
Moonsoft Team
www.moonsoft.es