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.051 seconds

Let me first state that this is an amazing and fascinating product exactly what I was looking for. In just a few hours (listening to the very well made and clearly understandable videos learning doing) I completed and installed my first component. I am now in the second refining phase. I will make a recommenation in JED. Thanks for the effort in creating such a great product. Incidentally some of the best Joomla extension I use are of French origin !
Giori (Forum)

Get Started