cpsit / t3events-template
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 1
Open Issues: 0
Type:typo3-cms-extension
Requires
- dwenzel/t3events: >=0.31
- typo3/cms: >=7.6.0,<=8.99.99
Requires (Dev)
- nimut/testing-framework: ^1.1
- phpunit/phpunit: ^4.8 || ^5.6
Replaces
- t3events_template: 0.1.0
- typo3-ter/t3events-template: 0.1.0
This package is auto-updated.
Last update: 2024-10-09 22:49:53 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.