cpsit/t3events-template

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 1

Open Issues: 0

Type:typo3-cms-extension

0.1.0 2019-11-21 13:07 UTC

This package is auto-updated.

Last update: 2024-11-09 23:01:17 UTC


README

TYPO3 extension to create event records from templates

This package allows to create event records from templates. It is an extension to the TYPO3 CMS.

Requirements

Installation

To install the TYPO3 Events Template extension in your project, you have to add the repository as a package within your composer.json:

{
    "type": "vcs",
    "url": "git@github.com:dwenzel/t3events_template.git"
}

Install via ExtensionManager or composer:

composer require cpsit/t3events-template

Configuration

Template Enabled Types

In order to use templates a record type has to be enabled. Example:

CPSIT\T3eventsTemplate\Utility\TableConfiguration::registerTemplateEnabledType(
  '1', 
  'event_type,headline,subtitle,teaser,description,content_elements,images,image,files,related,
               sys_language_uid,audience,organizer,genre,venue,keywords,performances,
               l10n_parent, l10n_diffsource,new_until,archive_date,hidden,starttime,endtime,fe_group,categories'
);

This enables the type '1' of table 'tx_t3events_domain_model_event' for template usage and determines which field should be copied when creating an new Event record from template.

Currently this works for table tx_t3events_domain_model_event only.

Hide fields in new records

Fields can be hidden in new records by calling

CPSIT\T3eventsTemplate\Utility\TableConfiguration::hideFieldsInNewRecords(
  'foo', 'bar'
 );

Note: This works only for fields where no display condition has be set or where the current display condition is a string.