Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I tryed to use "field collection" module with calendar in views but i didnt get result. I added a relationship to field collection field and an contextual filter to the date field(in field collection) and selected the date field(in field collection) in Fields section.
How can i use "field collection" with the calendar module in views? Thx
Comment | File | Size | Author |
---|---|---|---|
#8 | calendar-using_calendar_w_field_collection-2054895-8.patch | 5.43 KB | Tyler the Creator |
Comments
Comment #1
mibfire CreditAttribution: mibfire commentedAnyone who is facing this problem?
Comment #2
mibfire CreditAttribution: mibfire commentedK, i found the solution. I had to recreate a views choosing the field collection from the calendar template.
Comment #3.0
(not verified) CreditAttribution: commentedspelling
Comment #4
RgnYLDZ CreditAttribution: RgnYLDZ commentedI have a similar problem, I created a calender in views with a date inside a field collection (from templates).
My problem is; I cant seem to get the node title in fields to show up.
After adding a relationship for the field collection I can see the title and some other fields of the node. But they return blank.
What did I possibly wrong ?
Comment #5
caiobianchi CreditAttribution: caiobianchi commentedI'm having the same issue as RgnYLDZ. Thoughts?
Comment #6
caiobianchi CreditAttribution: caiobianchi commentedComment #7
dalemoore CreditAttribution: dalemoore commentedI'm having this issue as well... If I clone the Field Collection Views default view I can show the events with their dates in a FC, but not the nodes of other content types with their dates not in a FC. I've tried fooling with relationships and contextual fields. I'm trying to create a master calendar across content types.
Comment #8
Tyler the Creator CreditAttribution: Tyler the Creator commentedI've also recently run into this issue and created a patch for it. Not sure if this will fix everyone's issues but I'll document my use case below.
I created a View based on Content Revisions. Set the format to Calendar and style to Calendar Entities. My date field is in a multiple delta field collection so I added the relationship to the field collection revision and date contextual filter based on field collection item revision. In the contextual filter I set Provide default value to Current date, Dates to compare to "Only this field" (this depends if you have only 1 date or start/end), Add multiple value identifier to Yes, and checked off my Date field.
Hopefully this is helpful to others and I hope that my patch will also work with Views not based on revisions.
Comment #9
apaderno