werkraummedia/calendar

API for extensions to create calendar

Installs: 30

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

v2.0.0 2024-09-17 13:00 UTC

This package is auto-updated.

Last update: 2024-10-17 13:08:05 UTC


README

Provides:

  • Data (classes) for Year, Month, Week and Day.
  • Controller with action to view Year, Month, Week and Day.

Each day can have foreign data created by a factory. That way extensions or TYPO3 instances can add further data to each day.

Alter Variables

The controller also has an event to alter assigned variables for each action.

Check out Tests/Fixtures/calendar_example/ as an example on how to provide necessary custom setup.

Configuration

Allows to configure default values for arguments if not provided in current request. Each argument is configured below TypoScript settings namespace arguments, e.g.:

tx_calendar_example {
    settings {
        arguments {
            year {
                strtotime = midnight first day of -1 year
                strftime = %Y
            }
        }
    }
}

Supported arguments are: year, month, week and day.