Conditional on feed from Google Calendar #896
Unanswered
danielvivacqua
asked this question in
Ideas
Replies: 2 comments 1 reply
-
Conditional field mapping is an interesting idea! For now, I think the only way to do this would be to split out your all-day events into a separate JSON file, and create a separate feed in Feed Me for that. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Obvioiusly too late to be helpful for OP, but you should be able to do this in the
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I am working on importing Google Calendar events with Feed Me. The main problem we're running into is importing all day events correctly. Entries are being created with post date and expiry date as the Google Calendar events start/end date/times.
However, the Google Calendar JSON uses either start.dateTime for timed events (e.g, 1:00pm – 3:00pm) OR start.date for all-day events.
If the import doesn't find the thing that post/expiry dates are mapped to, it assuming the date/time the entry is imported.
Ideally, we'd like to be able to import feeds with a condition like "if start.dateTime exists, import that as the post date, otherwise use start.date and 12:00am"
Steps to reproduce
<summary>
. Do not set a Default Value.<start/dateTime>
from the JSON. NOTE: Ideally, we would like to make it so that a Google calendar event that is all day uses<start/date>
and automatically gets the time set to "12:00AM", as we have a conditional in the twig that says{% if dateTime == "12:00AM" %} <p>All Day</p> {% endif %}
<end/dateTime>
<id>
from the Google calendar JSON. For Event Link, choose<htmlLink>
from the JSON.Additional info
Beta Was this translation helpful? Give feedback.
All reactions