Here's an implementation of a like/not like filter (mostly just pulled right out of Views 1) and it is set up as an option for the node title to test that it is working right.

I'm going to need the like/not like filter in CCK and also need to be able to filter the node title to get our nodereference autocomplete working, so I went ahead and tried to get it fixed.

CommentFileSizeAuthor
views.patch5.2 KBkarens

Comments

merlinofchaos’s picture

I'm going to rename this to views_handler_filter_textfield since really it's a standard text field filter handler (this is one major way that Views 2 differs from Views 1; how I want to categorize handlers). And I think I will rewrite it to use a method-jump table like the argument handler uses -- that makes it much easier to make a child of and make subtle changes. Actually, it is likely that most base handlers should work that way, but I hadn't thought enough about it. This one has a big enough switch, though, that it seems like a really good idea. I'm trying to get the relationships code done now, and will work on that after. Well, that and lunch.

karens’s picture

OK, I've probably pushed this far enough for now, I'll wait and let you get this working the way you want.

Have a good lunch :)

merlinofchaos’s picture

Status: Needs review » Fixed

Committed. KarenS, could you give this a once and/or twice over to make sure I didn't botch anything? I only tested the equality portion of the filter, tho I didn't muck with the rest of the filtering code at all.

I did add a case sensitivity option (which mysql ignores, heh) which is kind of nifty.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.