I have a calendar set up from the template for field collection dates but I also need to show events from a date field on a content type. I can create a second calendar for the content type, but how do I merge all the date fields into one master calendar?

I have searched and searched and I can't quite find the answer to this problem.

thank you!

Comments

tchopshop’s picture

Version: 7.x-3.4 » 7.x-3.x-dev

I have now updated to the dev versions of calendar, date, views, and ctools. I still cannot see how one would combine dates from a node with dates from a field collection in a calendar.

I would appreciate any help. WIlling also to pay for help.

kenholmes’s picture

Issue summary: View changes

I was up against this exact problem, but kept banging away at it until I figured it out. It was complicated and took me days to figure out. I gave up several times. I stayed up way too late. I THINK I have outlined all the steps below....

You need to install the Field Collections Views module.

Then watch these instructions, they helped me a lot:
This gives instructions for making field collections show up in a view.

Field collections don't show up by default because views is looking for nodes, and fields in field collections aren't recognized by views as part of a node. You need to be very explicit with views as to where to find the date field.

  1. Install Field Collection Views module, which will create a "field collection views" view. Clone that, don't edit it directly in case you need to come back to it.
  2. Make sure that the field collection settings in your content type are pointing to the right view (see the video above)
  3. Change the format to Calendar
  4. Create a relationship to the entity that contains the field collection items
  5. Create a contextual filter for the date field in your field collection (this is the part that tripped me up)
  6. create contextual filters for other fields in the content type with the field collection
  7. add those fields to the field section.

Hopefully this will help someone a little bit.

teefars’s picture

Hey, anyone? It's been a long time but I stumbled upon this recently and #2 didn't work. I need the same as OP, one calendar with dates from a content type and dates from a field collection of a content type.

Neslee Canil Pinto’s picture

Status: Active » Closed (outdated)