[development] Calendar views filter issue

Karyn Cassio karyn at karyncassio.com
Wed Mar 10 21:32:34 UTC 2010

Oh, so sorry, my bad, it just so happens I work with some amazing 
developers, and Adam Gregory helped me find the solution at work.

To fix this, you need to make sure that the filters set on your main 
view display, and your filters on your attachment are identical. (Not 
necessarily titles, etc.) But definitely parameters, such as fields you 
are filtering on, and values, etc. This will help them match up. So, 
inheritance in this case doesn't work exactly as you would expect.

By default, all calendar view filters are set the same, I had 
over-written many of the values in different views, instead of carrying 
the default display through the view. After matching taxonomy, the 
exposed taxonomy filters worked. For exposed date filters I had to use 
hook_views_query_alter, to alter the date query a bit depending on 
whether the page used the date navigation or the exposed filter.

I sure hope this helps, it certainly helped me.


On 3/9/10 10:35 PM, Scott McLewin wrote:
> Karyn,
> I believe that I have run into a variation of that same behavior.  I 
> found no solution and have had no response to the issue I filed [1] 
> some weeks back.
> If you think we've hit on the same bug and have more to add to the 
> issue please do.
> Scott
> [1] http://drupal.org/node/647480
> On 3/8/2010 1:20 PM, Karyn Cassio wrote:
>> Happy Monday to all,
>> I have an issue that has been plaguing me for a few days now.
>> I am using calendar view, but instead of showing the month in the 
>> calendar grid, I am listing the events for the month out.
>> This works fine, and the date browser Prev, Month, Next, works 
>> perfectly.
>> However, I also want my visitors to be able to filter the events by 
>> month and/or event type.
>> For this I have exposed filters to allow this.
>> However, in the preview, the filters will not effect the output at all.
>> I click an event type, and all event types are returned to me.
>> Select a different month, and all events for the current month are 
>> returned.
>> However, if I copy the derived query to mysql and run it, the results 
>> I expected are returned.
>> Any thoughts as to why I'm not getting the filters to properly effect 
>> the output on either the web page or the preview?
>> Thank you for any thoughts you may have,

More information about the development mailing list