Forum


List Manager Support

List Manager support
Forums
No se permite escribir sin estar logado. Por favor, login

Custom Filter Developement 19.02.2015 21:53

Hello !

I want to create a custom filter function.

I put the code below to components/com_listmanager/models/customserverpages_fl.php which works pretty fine this way.

1.)
So now I need to search within the same ID (column) for more than one value.
In other words I need a function which does a search for $valuecustom="xxx" or $valuecustom="yyy" or $valuecustom="zzz"

2.) What pretty ways are there to use the search value from $_GET["search"]
--> $valuecustom=$_GET["search"];
Or do you know another easy way to put some parameters to this script?


Thanks a lot for your help!
Arno.


-----
$valuecustom="Kirchbichl";
$idfieldcustom=1;
//this means the filter is 'equal' to your value
$typecustom=0;
$applyFilters=true;
$query=$this->_buildQuerySelectRecordsApplyFilterView($id, $idfieldcustom, $valuecustom, $typecustom);
$db->setQuery($query);
$arrIntFilter=$db->loadColumn();
$viewfilters=$arrIntFilter;
$filters[]=$arrIntFilter;
$allfilters=array_merge($allfilters,$arrIntFilter);
unset($arrIntFilter);
-----

Re: Custom Filter Developement 20.02.2015 09:49

Hello,

1) This kind of search can't be done with current structure, a new filter type is needed. If you're interested, please place a ticket in helpdesk and we'll give you a quote and delivery time for custom development.

2) Search parameter is part of filter parameter. Filter parameter is a json array of filters objects, so you can't handle it directly as you state above. If you want to add a new condition please add it as well as a ticket for custom changes.

Regards,
Moonsoft Team
www.moonsoft.es
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect

Lo que nuestros clientes opinan de nosotros