Replacing FullCalendar View with FullCalendar Block

Created on 19 February 2024, over 1 year ago

I am a current user of the fullcalendar_view module. I use this to publish a 'page' view which display a calendar of upcoming events. I would like to use the latest version of fullcalendar, which requires me to move to this module instead.

I have created the REST view to output the event data. I understand how to use "Block Layout" to place a block within the layout of my theme. What I can't work out is how I would replicate having the calendar as a separate page or node or what have you. If I use "Block Layout" then that could change placement if I ever move to a different theme.

Given that fullcalendar_view is only receiving limited maintenance support, it would be good to understand how to migrate from using it as a page using this module. Or is that not workable?

Thank you in anticipation for your assistance.

💬 Support request
Status

Active

Version

1.0

Component

Miscellaneous

Created by

🇦🇺Australia nicholosophy Brisbane

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @nicholosophy
  • 🇦🇺Australia mingsong 🇦🇺

    A quick thought in my mind is that,

    You can create a content type in which you want the calendar is displayed, for instance, a content type called "Calendar".

    This content type only need the tile and body filed.

    Then you can create a new node of that content type. At this point, you will get a page of that node with the URL(page alia) you want.

    In the block setting, specify the visibility to limit only that page (URL) this block can show up.

    https://www.drupal.org/docs/core-modules-and-themes/core-modules/block-m...

    In terms of replicating between themes, you probably has to manually do that for each theme. Maybe there is another better way to do that.

  • Status changed to Postponed: needs info over 1 year ago
  • 🇦🇺Australia mingsong 🇦🇺
  • Status changed to Closed: works as designed about 1 month ago
  • In terms of this acting as a drop-in replacement for the FullCalendar View module, my suggested implementation would be using Layout Builder + a simple node page, then using Layout Builder, you can place the Fullcalendar Block within it, and have the block configurations managed that way.

    Tokens are also supported (see Add token support for the event URLs Fixed ), so you can may pass specific arguments contextually into the events if necessary.

    This approach provides the most flexibility as it allows you to manage the FullCalendar as you would any other content (e.g. with content moderation whilst providing the ability to easily specify custom URL aliases without necessarily needing to mess around with views configurations).

Production build 0.71.5 2024