Skip to content
Snippets Groups Projects
Commit c14fbf09 authored by Paul Ilea's avatar Paul Ilea
Browse files

Merge branch 'feature_mail_layouts' into 'master'

[FEATURE] Add Mail Layouts

See merge request !17
parents 133606f5 62cd5dec
No related branches found
No related tags found
1 merge request!17[FEATURE] Add Mail Layouts
......@@ -51,6 +51,16 @@ call_user_func(
'className' => \SGalinski\SgMail\XClass\Form\FormManagerController::class,
];
// Register FormEngine node type resolvers
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry']['sgMailFieldInformation'] = [
'nodeName' => 'sgMailFieldInformation',
'priority' => 10,
'class' => \SGalinski\SgMail\Form\NodeExpansion\FieldInformation::class,
];
// Datamap process hook
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \SGalinski\SgMail\Hooks\ProcessDatamap::class;
// Cache registration
$registerService = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\SGalinski\SgMail\Service\RegisterService::class
......
......@@ -34,6 +34,7 @@ call_user_func(
'Mail' => 'index, sendTestMail, empty, reset',
'Queue' => 'index, sendMail, export',
'Configuration' => 'index, create, edit, delete',
'Layout' => 'index',
],
[
'access' => 'user,group',
......@@ -46,5 +47,6 @@ call_user_func(
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages(
'tx_sgmail_domain_model_template'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_sgmail_domain_model_layout');
}, 'sg_mail'
);
......@@ -35,6 +35,7 @@ CREATE TABLE tx_sgmail_domain_model_template (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
layout int(11) DEFAULT '0' NOT NULL,
subject text NOT NULL,
extension_key varchar(255) DEFAULT '' NOT NULL,
template_name varchar(255) DEFAULT '' NOT NULL,
......@@ -57,3 +58,24 @@ CREATE TABLE tx_sgmail_domain_model_template (
PRIMARY KEY (uid),
KEY parent (pid)
);
CREATE TABLE tx_sgmail_domain_model_layout (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
crdate int(11) DEFAULT '0' NOT NULL,
cruser_id int(11) DEFAULT '0' NOT NULL,
deleted tinyint(4) DEFAULT '0' NOT NULL,
hidden tinyint(4) DEFAULT '0' NOT NULL,
default tinyint(4) DEFAULT '0' NOT NULL,
sys_language_uid int(11) DEFAULT '0' NOT NULL,
l10n_parent int(11) DEFAULT '0' NOT NULL,
l10n_diffsource mediumblob,
name tinytext NOT NULL,
content text,
PRIMARY KEY (uid),
KEY layout_list (pid,deleted,sys_language_uid)
);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment