Problem/Motivation

Currently the whole calendar logic is based around nodes which is not really great. E.g we have a custom content entity for "tasks" that we would like to sync with an outlook calendar.

Steps to reproduce

Proposed resolution

Add dynamic support for both nodes as content entity types.

Remaining tasks

Update the logic

User interface changes

Extra fields added to the config form

API changes

Some methods might be renamed. Normally this should not impact backwards compatibility.

Data model changes

N/A

Issue fork o365-3295360

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

BramDriesen created an issue. See original summary.

bramdriesen’s picture

Status: Active » Needs review
bramdriesen’s picture

Known limitation, I didn't spend any time on making the "Add node to calendar block" compatible with the new logic as I couldn't see an easy way to easily do this in a dynamic and general way. That being said, it shouldn't be too difficult for people that need this to create a new custom block in your project that basically does the same as this block but for your custom entity.

bramdriesen’s picture

Assigned: bramdriesen » Unassigned
fabianderijk’s picture

Assigned: Unassigned » fabianderijk

I'll test this in the upcoming days. Thanks for the work. Sounds like a good option.

bramdriesen’s picture

Sure, let me know if you have any concerns.

One thing I just was thinking about is that my implementation probably won't work with custom content entities with bundles. Unless the bundles them self would also be shown in the drop down where you select the entity. I didn't test this as I didn't have such content type on my website.

  • fabianderijk committed 310d7ca on 3.0.x
    Issue #3295360 by BramDriesen, fabianderijk: Outlook Calendar - Support...
fabianderijk’s picture

Status: Needs review » Fixed

I've added your patch (and tweaked it a bit) to the dev version of this module. Thanks!

bramdriesen’s picture

Cool! Thanks :)

Status: Fixed » Closed (fixed)

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