Commit ea4fc922 authored by Jens Jacobsen's avatar Jens Jacobsen

[FEATURE] Update the TCA for ext:ter_fe2

parent 94fb21a7
Pipeline #199 passed with stages
in 1 minute and 58 seconds
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
$GLOBALS['TCA']['tx_terfe2_domain_model_author'] = array(
'ctrl' => $GLOBALS['TCA']['tx_terfe2_domain_model_author']['ctrl'],
return array(
'ctrl' => array(
'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_author',
'label' => 'name',
'searchFields' => 'name,email,username',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'versioningWS' => 2,
'versioning_followPages' => true,
'origUid' => 't3_origuid',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden'
),
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ter_fe2') . 'Resources/Public/Icons/author.gif',
),
'interface' => array(
'showRecordFieldList' => 'name,email,company,forge_link,username,versions,frontend_user,author_type',
),
......@@ -144,4 +157,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_author'] = array(
),
),
);
?>
\ No newline at end of file
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
$GLOBALS['TCA']['tx_terfe2_domain_model_category'] = array(
'ctrl' => $GLOBALS['TCA']['tx_terfe2_domain_model_category']['ctrl'],
return array(
'ctrl' => array(
'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_category',
'label' => 'title',
'searchFields' => 'title,description',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'versioningWS' => 2,
'versioning_followPages' => true,
'origUid' => 't3_origuid',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden'
),
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ter_fe2') . 'Resources/Public/Icons/category.gif',
),
'interface' => array(
'showRecordFieldList' => 'title,description',
),
......@@ -81,4 +94,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_category'] = array(
),
),
);
?>
\ No newline at end of file
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
$GLOBALS['TCA']['tx_terfe2_domain_model_experience'] = array(
'ctrl' => $GLOBALS['TCA']['tx_terfe2_domain_model_experience']['ctrl'],
return array(
'ctrl' => array(
'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_experience',
'label' => 'date_time',
'searchFields' => 'comment',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'versioningWS' => 2,
'versioning_followPages' => true,
'origUid' => 't3_origuid',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden'
),
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ter_fe2') . 'Resources/Public/Icons/experience.gif',
),
'interface' => array(
'showRecordFieldList' => 'date_time,comment,rating,frontend_user',
),
......@@ -107,4 +120,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_experience'] = array(
),
),
);
?>
\ No newline at end of file
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
$GLOBALS['TCA']['tx_terfe2_domain_model_extension'] = array(
'ctrl' => $GLOBALS['TCA']['tx_terfe2_domain_model_extension']['ctrl'],
return array(
'ctrl' => array(
'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_extension',
'label' => 'ext_key',
'searchFields' => 'ext_key',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'versioningWS' => 2,
'versioning_followPages' => true,
'origUid' => 't3_origuid',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden'
),
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ter_fe2') . 'Resources/Public/Icons/extension.gif',
),
'interface' => array(
'showRecordFieldList' => 'ext_key,forge_link,last_update,last_maintained,categories,tags,versions,last_version,frontend_user,downloads,repository_url,repository_clone_url,paypal_url,external_manual,expire',
),
......@@ -249,4 +262,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_extension'] = array(
),
),
);
?>
\ No newline at end of file
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
$GLOBALS['TCA']['tx_terfe2_domain_model_media'] = array(
'ctrl' => $GLOBALS['TCA']['tx_terfe2_domain_model_media']['ctrl'],
return array(
'ctrl' => array(
'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_media',
'label' => 'title',
'searchFields' => 'title,type,language,source,description',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'versioningWS' => 2,
'versioning_followPages' => true,
'origUid' => 't3_origuid',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden'
),
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ter_fe2') . 'Resources/Public/Icons/media.gif',
),
'interface' => array(
'showRecordFieldList' => 'title,type,language,source,description',
),
......@@ -129,4 +142,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_media'] = array(
),
),
);
?>
\ No newline at end of file
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
$GLOBALS['TCA']['tx_terfe2_domain_model_relation'] = array(
'ctrl' => $GLOBALS['TCA']['tx_terfe2_domain_model_relation']['ctrl'],
return array(
'ctrl' => array(
'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_relation',
'label' => 'relation_key',
'searchFields' => 'relation_type,relation_key',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'versioningWS' => 2,
'versioning_followPages' => true,
'origUid' => 't3_origuid',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden'
),
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ter_fe2') . 'Resources/Public/Icons/relation.gif',
),
'interface' => array(
'showRecordFieldList' => 'relation_type,relation_key,minimum_version,maximum_version',
),
......@@ -113,4 +126,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_relation'] = array(
),
),
);
?>
\ No newline at end of file
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
$GLOBALS['TCA']['tx_terfe2_domain_model_search'] = array(
'ctrl' => $GLOBALS['TCA']['tx_terfe2_domain_model_search']['ctrl'],
return array(
'ctrl' => array (
'hideTable' => TRUE,
'tstamp' => 'tstamp',
'crdate' => 'crdate',
),
'interface' => array(
'showRecordFieldList' => 'extension_key,title,description,author_list,upload_comment,version_string,state,em_category,software_relation_list,category_list,tag_list,version_uid,extension_uid',
),
......@@ -82,4 +82,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_search'] = array(
),
),
);
?>
\ No newline at end of file
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
$GLOBALS['TCA']['tx_terfe2_domain_model_tag'] = array(
'ctrl' => $GLOBALS['TCA']['tx_terfe2_domain_model_tag']['ctrl'],
return array(
'ctrl' => array(
'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_tag',
'label' => 'title',
'searchFields' => 'title',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'versioningWS' => 2,
'versioning_followPages' => true,
'origUid' => 't3_origuid',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden'
),
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ter_fe2') . 'Resources/Public/Icons/tag.gif',
),
'interface' => array(
'showRecordFieldList' => 'title,extensions',
),
......@@ -87,4 +100,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_tag'] = array(
),
),
);
?>
\ No newline at end of file
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
$GLOBALS['TCA']['tx_terfe2_domain_model_version'] = array(
'ctrl' => $GLOBALS['TCA']['tx_terfe2_domain_model_version']['ctrl'],
return array(
'ctrl' => array(
'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version',
'label' => 'title',
'searchFields' => 'title,description,state,em_category',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'versioningWS' => 2,
'versioning_followPages' => true,
'origUid' => 't3_origuid',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden'
),
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ter_fe2') . 'Resources/Public/Icons/version.gif',
),
'interface' => array(
'showRecordFieldList' => 'title,description,version_number,version_string,upload_date,upload_comment,download_counter,frontend_download_counter,state,em_category,load_order,priority,shy,internal,do_not_load_in_fe,uploadfolder,clear_cache_on_load,module,create_dirs,modify_tables,lock_type,cgl_compliance,cgl_compliance_note,review_state,manual,has_manual,media,experiences,software_relations,author,file_hash,extension_provider,has_zip_file,has_images',
),
......@@ -419,4 +432,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_version'] = array(
),
),
);
?>
......@@ -23,14 +23,14 @@ $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$extIdent] =
// Domain models and their label / search fields
$models = array(
'extension' => array('ext_key', 'ext_key'),
'category' => array('title', 'title,description'),
'tag' => array('title', 'title'),
'version' => array('title', 'title,description,state,em_category'),
'media' => array('title', 'title,type,language,source,description'),
'experience' => array('date_time', 'comment'),
'relation' => array('relation_key', 'relation_type,relation_key'),
'author' => array('name', 'name,email,username'),
'extension',
'category',
'tag',
'version',
'media',
'experience',
'relation',
'author',
);
// Add entities and value objects
......@@ -43,41 +43,8 @@ foreach ($models as $modelName => $modelConfiguration) {
// Allow datasets on standard pages
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_terfe2_domain_model_' . $modelName);
// Add table configuration
$GLOBALS['TCA']['tx_terfe2_domain_model_' . $modelName] = array (
'ctrl' => array (
'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_' . $modelName,
'label' => $modelConfiguration[0],
'searchFields' => $modelConfiguration[1],
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'versioningWS' => 2,
'versioning_followPages' => TRUE,
'origUid' => 't3_origuid',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden'
),
'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/tx_terfe2_domain_model_' . $modelName . '.php',
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/' . $modelName . '.gif',
),
);
}
// Add table configuration for the search index table
$GLOBALS['TCA']['tx_terfe2_domain_model_search'] = array (
'ctrl' => array (
'hideTable' => TRUE,
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/tx_terfe2_domain_model_search.php',
),
);
// Add plugin to new content element wizard
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig("
mod.wizards.newContentElement.wizardItems.special {\n
......@@ -93,4 +60,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_search'] = array (
show := addToList(" . $extIdent . ")\n
}
");
?>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment