sunnyjey
Active Member
I am looking to set custom value of list filter with the help of php_event list plugin. Is this possible ?
I have tried to put following codes in onload, preload and other event hooks, but not working. Searched forum and wiki but could not find the solution.
I have tried to put following codes in onload, preload and other event hooks, but not working. Searched forum and wiki but could not find the solution.
Code:
$firstFilterValue = 'pending';
$input = JFactory::getApplication()->input;
$filters = $input->get('fabrik___filter', array(), 'array');
$model->filters['origvalue'][] = $firstFilterValue;
$model->filters['filter'][] = $firstFilterValue;
$model->filters["filter"]['0'] = $firstFilterValue;