Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

new filter 15 May 2015 08:21 #12993

  • albert
  • albert's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 70
  • Thank you received: 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?

Please Log in or Create an account to join the conversation.

new filter 18 May 2015 14:01 #13069

Can you please copy/paste your prepareQuery function?

Did you also create a new filter in the builder?

Please Log in or Create an account to join the conversation.

Last edit: by Romkabouter.
  • Page:
  • 1
Time to create page: 0.093 seconds

Les générateurs de code je les connais presque tous pour les avoir essorés en long en large et en travers ... mais celui ci c'est vraiment un outil formidable de simplicité et d'efficacité !
Marc. (liubov - Forum)

Get Started