I've got a view block using the calendar and showing upcoming events.
All the events in the calendar have a date greater than now() so I always have the calendar, in month view, starting with this month. This is what I would expect given that this is just in effect showing a date sorted list of nodes.
I'm getting complaints from the users that when they click on a given event, not in the current month, the mini calendar still shows the current month, which is not the month that the event being viewed is in.
SO, it's September now, so my mini calendar shows September. If I click on an event in November, I want the mini calendar, in a block on the page, to show November.
I'm guessing the answer is in contextual filters, but I've been unable to work out how to get this to work. Any help much appreciated.
Cheers.
Comments
Comment #1
darksnow CreditAttribution: darksnow commentedPerhaps this is more of a general views problem. It's my understanding that views generates the same query and this module just displays the results are a table in calendar format.
That's exactly what's needed here but I think being able to associate the month displayed in the rendered calendar with the current node would be a common use case when this is in a block.
Any ideas?
Comment #2
AdamGerthel CreditAttribution: AdamGerthel commentedI've been trying to do the exact same thing. Date offers contextual filters, but the only values accessible are node created, edited etc. Would be very useful to be able to get the value of a date based on the node being viewed.
Comment #3
krem CreditAttribution: krem commentedI managed to do it following this method and overwritting the mini calendar link
Basically you pass the date as an argument so it can be used by the contextual filter.
I hope it helps ;)
Comment #4
DamienMcKennaPer our discussion in #2613454: Port Date module functionality missing from 8.x core, the D8 branch is no longer going to be worked on, all changes should be made directly to core's datetime module. That said, we appreciate everyone's efforts, so thank you.