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.
I am unable to find a way to have the calendar events open in the same window. They keep opening new tabs. Would prefer this not to happen.
Comment | File | Size | Author |
---|---|---|---|
#11 | fix-new-event-node-window-3007409-11.patch | 481 bytes | dak5859 |
#8 | Screen Shot 2019-08-07 at 4.23.23 PM.png | 17.68 KB | dak5859 |
#3 | fullcalendar_view-open-new-tab-option-3007409-3.patch | 2.96 KB | eahonet |
Comments
Comment #2
turbogeek CreditAttribution: turbogeek commentedIt's possible to set various calendar options after it has been initialized. I was able to remove the setting that opened it in a new tab as defined in the module (js/fullcalendar_view.js). See more info here: https://fullcalendar.io/docs/dynamic-options
Comment #3
eahonet CreditAttribution: eahonet at CommonPlaces Interactive commentedI ran into the same need. Did not want to open every calendar item in a new tab. Attached is my attempt at a patch that will give you a new checkbox under Fullcalendar View > Settings > Display section with the title "Open entities (calendar items) into new tabs". It defaults to opening in a new tab as is the current behavior, but allows you to uncheck it to have it open in the same tab.
Thank you for pointing me in the correct direction @turbogeek in #2
Comment #4
MingsongThanks for the patch.
I will test and merge it with next release.
Cheers,
Comment #5
mmjvb CreditAttribution: mmjvb as a volunteer commentedPatch provided, so Needs review.
Comment #6
jeremyr CreditAttribution: jeremyr as a volunteer commentedTested the patch, works as described.
Provides a new checkbox in the view format and is checked by default (so that opens in a new window like it always has).
For anyone applying this patch, make sure you run a cache rebuild.
Comment #7
piridium CreditAttribution: piridium as a volunteer commentedTested the patch, too. Works as described. Thanks @eahonet!
Comment #8
dak5859 CreditAttribution: dak5859 commentedI just tested this patch on 8.x-2.2 and when I uncheck the checkbox for opening events in new window it doesn't save that setting. Just remains checked. I also tested in 8.x-2.x-dev version with the same results. I'm on Drupal 8.6.16.
Comment #9
dak5859 CreditAttribution: dak5859 commentedComment #10
dak5859 CreditAttribution: dak5859 commentedCan anyone else confirm this patch is working as expected. Again - when testing this patch on 8.x-2.2 version of this module - the setting was available - but would not allow me to uncheck and save the setting. It remained checked even after save. So event calendar links continue to open event nodes in new windows.
Comment #11
dak5859 CreditAttribution: dak5859 commentedAdding a new patch based on turbogeek's solution in comment #2 above that will resolve this issue as well. This would be used as an alternative patch to #3. Again, when applying the patch provided by eahonet in comment #3 above, the new "Open entities (calendar items) into new tabs" setting was available under Fullcalender view "Display" settings as described, but it would not allow me to uncheck it and save it in my calendar view.
Comment #12
MingsongThanks for the patches and testing work.
The issue raised by dak5859 at #8 is caused by following codes:
It should be replaced with following
Comment #14
DamienMcKennaThis was committed and is available in the 8.x-2.3 release.