Page 3 of 16
1 · 2 · 3 · 4 · 5 · 6 · 7 · 8 · 9

jacmoe :: 31.03.2010 08:02:27
What I meant was:
Other filtering plugins passes arguments, like filter:bugs, etc.
I thought of using a different filter depending on the params passed, but since it's your plugin, maybe you have to suggestions.

And, yes: a follow up article would be really nice! :)
Agota Perez :: 15.06.2010 15:23:47
Hi there, I've been using this plugin for a while now and ran into a little snag.
How do I filter HABTM relations? I use unbindModel hasMany & then bindModel hasOne but can't get the filter to work for the HABTM field.

Here's an examples of the above mentioned.
'conditions'=>array('Brand.geocountry_id ='))
Any help would be much appreciated.

Thanks in advance,
lecterror :: 17.06.2010 14:35:02

I know I'm late with this but here it is anyway..

1. Yes, you can reset the filter. All the filter conditions are kept in your user session. Simply delete the conditions and plugin will have no idea what happened.

2. Yes, you can have custom "presets". Simply create a combo box for "preset selection" and then use the afterDataFilter() callback to setup everything for the selected preset. I hope you understand what I mean, if not feel free to contact me by mail ;)
lecterror :: 17.06.2010 14:42:12
@Agota Perez:

I'll be honest with you, I've never used HABTM to this day, so I honestly don't know what is the difference between a "normal" relation and a HABTM one (I know, it's a shame, isn't it?:)).

What is the error, if you're getting one, when you try to filter a HABTM model? Is the relation properly set up when the filtering occurs?
jl :: 14.07.2010 07:43:07
I'm desparate to get this working -it seems such a useful tool!

However I'm getting this weird error -

Undefined variable: filter [APP/views/leads/index.ctp, line 21]

(leads being my tablename/model/view etc)

I know I must have it wrong somewhere but I can't find the error!

Could you help?