Welcome, Guest
Username: Password: Remember me

TOPIC: new filter

new filter 15 May 2015 08:21 #12993

  • albert
  • albert's Avatar
  • Offline
  • Senior Member
  • Posts: 70
  • Thank you received: 2
  • Karma: 2
Hi, I have a component already done and i need to add a new filter,
So i created the select on the plural form with the on change Joomla.submit
the id and name of this filter is filter_approved

I go to fork/models on prepareQuery
i do
echo $this->getState('filter_approved'); or
echo $this->getState('filter.approved');

NOTE : I also added to $this->set('filter_vars', array( on the construct

I tried with the other filters and thy work fine
and i get nothing ! probably this variable is filtered somewhere !
Can u help me please?
The administrator has disabled public write access.

new filter 18 May 2015 14:01 #13069

  • Romkabouter
  • Romkabouter's Avatar
  • Offline
  • Elite Member
  • Posts: 310
  • Thank you received: 131
  • Karma: 48
Can you please copy/paste your prepareQuery function?

Did you also create a new filter in the builder?
Last Edit: 18 May 2015 14:02 by Romkabouter.
The administrator has disabled public write access.
Time to create page: 0.056 seconds

Get Started