Hi all,

I'm interested in having a simple boolean OR for three of my filters in a view. I read a few posts about it including the active issue http://drupal.org/node/118672. This led me to Views Or which unfortunately is still developmental. merlinofchaos on the active issue page says

Your best bet for a work around would be to use the Views API and expose a filter that can do what you need. It's a bit complex but it is possible.

I'm not a Drupal developer but I am a programmer. The view I need is very simple (display node if any of three fields are empty). How big a job is it to do that myself? Could anyone point me at a good starting place to read more?

Many thanks,

Andy

Comments

oddible’s picture

There is a module in development called Q-Views http://drupal.org/project/qviews which is in alpha which will have some ideas for you. You can rewrite the query sent to your view based on View ID / Name. This can create other problems with modules that add to that query (they'll often slip their SQL into the wrong place in your query, breaking it). I found some helpful articles on rewriting views queries - tho in a quick search to see if I could post you a link I couldn't find any offhand.

andyf’s picture

Thanks, I'll investigate that.