Forest BB

The digital grapevine of The Forest.
It is currently Fri Apr 18, 2014 11:19 pm

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: event calendar
PostPosted: Sun Jan 24, 2010 10:10 pm 
Offline
User avatar

Joined: Wed Apr 18, 2007 12:02 pm
Posts: 1798
Location: Edinburgh, UK
i'd like to get the event calendar working better. here's some good inspiration.

can't get view arguments to display by both date AND taxonomy term, aaargh.

lynne said adding an event to the Drupal site is way easier than adding one to aecalendar, so it would be good to get it's functionality on the main site, but filtering by what category of event it is would be required.

_________________
hey, if you don't like it, post on the BB (so you can ask about participating for better) | MilkMiruku


Top
 Profile  
 
 Post subject: Re: event calendar
PostPosted: Mon Jan 25, 2010 1:23 pm 
Offline
User avatar

Joined: Sun Nov 23, 2008 10:16 am
Posts: 1111
Location: Edinburgh!
I can sit down and have a look at it with you at some point if you want.

_________________
Mike

Dawnsio 'mlaen i'r gwres prynhawn a rwy'n addo erbyn yfori byddai wedi mynd, hwyl fawr i pawb, hwyl fawr i pawb...


Top
 Profile  
 
 Post subject: Re: event calendar
PostPosted: Tue Jan 26, 2010 11:11 pm 
Offline
User avatar

Joined: Wed Apr 18, 2007 12:02 pm
Posts: 1798
Location: Edinburgh, UK
cool, thanks. web team meet coming up soonish..

_________________
hey, if you don't like it, post on the BB (so you can ask about participating for better) | MilkMiruku


Top
 Profile  
 
 Post subject: Re: event calendar
PostPosted: Tue Jan 26, 2010 11:15 pm 
Offline
User avatar

Joined: Wed Apr 18, 2007 12:02 pm
Posts: 1798
Location: Edinburgh, UK
next tuesday evening good for you?

_________________
hey, if you don't like it, post on the BB (so you can ask about participating for better) | MilkMiruku


Top
 Profile  
 
 Post subject: Re: event calendar
PostPosted: Thu Jan 28, 2010 11:52 am 
Offline
User avatar

Joined: Sun Nov 23, 2008 10:16 am
Posts: 1111
Location: Edinburgh!
Yes.

_________________
Mike

Dawnsio 'mlaen i'r gwres prynhawn a rwy'n addo erbyn yfori byddai wedi mynd, hwyl fawr i pawb, hwyl fawr i pawb...


Top
 Profile  
 
 Post subject: Re: event calendar
PostPosted: Sat Feb 06, 2010 6:47 am 
Offline
User avatar

Joined: Wed Apr 18, 2007 12:02 pm
Posts: 1798
Location: Edinburgh, UK
mike - i was wrong, the date argument in the url uses hyphens to demark the datetime variables (i.e., "2010-02-03").

the path for the test View (event_calendar2) is set to "eventcalendar2/%/%" (%'s being arguments that are passed into the view).

the Arguments for the event_calendar2 view (NOTE: this is for the 'Calendar page' display, not the defaults, just in case) are set to;

"Date: Date (node) Content: Date & Time (field_event_start) - From date
Taxonomy: Parent term"

so http://theforest.org.uk/eventcalendar2/ ... 3/workshop should only display 2 items, but it shows them all and i can't understand where i'm missing a trick.

firstly, in the options for setting an argument to be "Taxonomy: Parent term", it doesn't let one choose from what taxonomy ('Event type' or 'Event location') the term should be from. maybe it's just agnostic and should be able to compute either.

(the difference between "Taxonomy: Parent term" and "Taxonomy: Term" should be moot here - neither taxonomy is set to be hierarchical, and i've tried setting it to both)

if i flip the arguments around ("Taxonomy: Parent term", then "Date: Date (node) Content: Date & Time (field_event_start) - From date") then i get a blank calendar, even when trying to preview with wildcards for both arguments ("all/all")......

but if i override the title of the page in the taxonomy argument options to be "test title - %1, %2", it comes out with "test title - February, 2010, workshop", so it is getting it..

(i tried turning on validation, i.e., so it validates the second argument is an actual taxonomy term, but if it's already getting it but not acting on it then that wouldn't help anyway)

a great overview of Views arguments can be found here

_________________
hey, if you don't like it, post on the BB (so you can ask about participating for better) | MilkMiruku


Top
 Profile  
 
 Post subject: Re: event calendar
PostPosted: Wed Mar 17, 2010 12:47 pm 
Offline

Joined: Sat Mar 13, 2010 7:39 pm
Posts: 31
Hi Milk

I can't find where you've posted about events that go over midnight appearing on two days.
But yes, they do: I've just tested this on a classic calendar view.

It's pretty much by design -- the calendar has no way of knowing that 10pm-2am is fundamentally different to say 3pm-11am (like a 2-day event).
But we can make the theme aware of this; while we're at it we could roll a patch to contribute it back to Calendar module as a feature.


Top
 Profile  
 
 Post subject: Re: event calendar
PostPosted: Wed Mar 17, 2010 2:55 pm 
Offline
User avatar

Joined: Wed Apr 18, 2007 12:02 pm
Posts: 1798
Location: Edinburgh, UK
there was a hack patchthat i tried which was meant to not see an event item as a 2 day thing unless the time crossed 5am on the second date. i didn't get it to work in the end...

n.b. this was only an issue during the fringe when we had events finishing at 1am, though these will return again in a few months..

_________________
hey, if you don't like it, post on the BB (so you can ask about participating for better) | MilkMiruku


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group