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.
May be I missed something. I have 1 content type with 2 date fields.
I want a week or a Day calendar with a box stretching form the date field 1 to the date field 2 (in the same day).
This works perfectly when there is 1 field with the starting and the ending value.
But with 2 fields, how can I tell to views to use one field as the starting time, and the second field as the ending time ?
Thx.
Comment | File | Size | Author |
---|---|---|---|
#1 | calendar.patch | 5.42 KB | bneel |
Comments
Comment #1
bneel CreditAttribution: bneel commentedok, after reading the calendar_plugin_row code, this is not possible.
I wrote a patch allowing to use 2 fields. In fact, personnaly, I'm not using a field form the field module, but using a field defined by hook_data_view. But both types of field data works with this patch.
In the Calendar entities parameters, you can choose the starting and the ending fields.
It is not perfect, but it works for me.
Comment #2
Neslee Canil Pinto