The Fullcalendar view module is limiting itself to fields of type timestamp, datetime or daterange.

This is done in FullCalendarViewPreprocess. There is no possibility for a FullcalendarViewProcessor plugin to extend the supported fields.

This is limiting the FullcalendarViewProcessor plugin abilities. For example it seams not feasible to make Smart Date fields work with a FullcalendarViewProcessor plugin #3061341: provide support for Smart Date. I would propose to let the plugin define supported field types via annotation and pass them to FullCalendarViewPreprocess then.

Will try to provide a patch for this.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stefan.korn created an issue. See original summary.

stefan.korn’s picture

Assigned: stefan.korn » Unassigned
Status: Active » Needs review
FileSize
2.69 KB

hopefully this will do it

You will then be able to annotate like that:

/**
 * Smart Date plugin.
 *
 * @FullcalendarViewProcessor(
 *   id = "fullcalendar_view_smart_date",
 *   label = @Translation("Smart date processor"),
 *   field_types = {
 *   "smartdate"
 *   }
 * )
 */

and the field_types from the annotation will be allowed.

mandclu’s picture

Status: Needs review » Reviewed & tested by the community

The provided patch works as intended to allow field types to be defined successfully by other modules.

  • stefan.korn authored 91125f1 on 8.x-3.x
    Issue #3110553 by stefan.korn: Allow FullcalendarViewProcessor plugins...
Mingsong’s picture

Status: Reviewed & tested by the community » Fixed

Good work.

Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

jasonawant’s picture