@mbarde/volto-fullcalendar-block

0.7.0 • Public • Published

volto-fullcalendar-block

Block for Volto to display events from an iCal/ics file in a FullCalendar.

Features

Listing block variation for Plone events

https://user-images.githubusercontent.com/4497578/154287664-6153ae22-27dd-48ed-984a-93817ef70431.mp4

  • Display events within a listing block as calendar
  • In order to display recurrent events, you need to add a catalog index and metadata column:
<?xml version="1.0"?>
<object name="portal_catalog">
    <index name="recurrence" meta_type="FieldIndex">
        <indexed_attr value="recurrence"/>
    </index>
    <column value="recurrence"/>
</object>

More details checkout the following link: https://5.docs.plone.org/external/plone.app.dexterity/docs/advanced/catalog-indexing-strategies.html#adding-new-indexes-and-metadata-columns

Calendar block for remote events

https://user-images.githubusercontent.com/4497578/154287676-295386f9-faac-47e8-b0ef-f017f8c80dde.mp4

  • Specifiy an URL to an .ics/.iCal file -> Contained events are displayed in the calendar using FullCalendars iCalendar plugin

Configure FullCalendar toolbar via block settings

https://user-images.githubusercontent.com/4497578/154287799-eca71fe0-4ce2-4e9d-8921-9729e191f2fc.mp4

Setup

Add volto-fullcalendar-block to your Volto project

  1. Make sure you have a Plone backend up-and-running at http://localhost:8080/Plone

    For example Docker container via command:

    docker run --name plone -p 8080:8080 -e SITE=Plone -e PROFILES="profile-plone.restapi:blocks" plone
    
  2. Start Volto frontend

  • If you already have a volto project, just update package.json:

    "addons": [
        "@mbarde/volto-fullcalendar-block"
    ],
    
    "dependencies": {
        "@mbarde/volto-fullcalendar-block": "*"
    }
  • If not, create one:

    npm install -g yo @plone/generator-volto
    yo @plone/volto my-volto-project --addon @mbarde/volto-fullcalendar-block
    cd my-volto-project
    
  1. Install new add-ons and restart Volto:

    yarn
    yarn start
    
  2. Go to http://localhost:3000

Tests

Expects Volto to run on http://localhost:3000 by default (see cypress.json).

Run tests: yarn cypres:run

Package Sidebar

Install

npm i @mbarde/volto-fullcalendar-block

Weekly Downloads

32

Version

0.7.0

License

MIT

Unpacked Size

59.6 kB

Total Files

26

Last publish

Collaborators

  • mbarde