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

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started