List Manager Forum

Pre populating LM Search Box

User moon_858 2013-01-23 16:03:06

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

Moonsoft support 2013-01-23 18:22:18

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 for lt and gt symbols, we paste it this way to avoid the forum strip the code).


// first submit
//submitAjaxForm("show",false,2);

$('filtertext').setProperty('value','ace');
filtraDatos();


Hope this helps, regards

User moon_858 2013-01-23 18:47:59

Hey there, thanks for the quick reply :) Will play with it and report back. Thanks You!

...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!
...
List Manager

Build different lists for your site

Buy now!