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

Real time saver and great Component Builder tool ! I have been developing with J-Cook Pro Component Builder for several months now and can say with all honesty that this product/service is second to none. The product is feature rich and is being improved and added to all the time. Do yourself a favor if you need to build a Joomla! Component then you can do no wrong in trying the product. You will save on time and effort while being able to deliver your project on time. J-Cook pro does the hard work for you you then have the freedom to fully customise the end result for your own needs. 

One word: Awesome.
Edwardcox (JED)
         

Get Started