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 <?php
if (!defined('TYPO3_MODE')) { return array(
die ('Access denied.'); 'ctrl' => array(
} 'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_author',
'label' => 'name',
$GLOBALS['TCA']['tx_terfe2_domain_model_author'] = array( 'searchFields' => 'name,email,username',
'ctrl' => $GLOBALS['TCA']['tx_terfe2_domain_model_author']['ctrl'], '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( 'interface' => array(
'showRecordFieldList' => 'name,email,company,forge_link,username,versions,frontend_user,author_type', 'showRecordFieldList' => 'name,email,company,forge_link,username,versions,frontend_user,author_type',
), ),
...@@ -144,4 +157,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_author'] = array( ...@@ -144,4 +157,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_author'] = array(
), ),
), ),
); );
?>
\ No newline at end of file
<?php <?php
if (!defined('TYPO3_MODE')) { return array(
die ('Access denied.'); 'ctrl' => array(
} 'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_category',
'label' => 'title',
$GLOBALS['TCA']['tx_terfe2_domain_model_category'] = array( 'searchFields' => 'title,description',
'ctrl' => $GLOBALS['TCA']['tx_terfe2_domain_model_category']['ctrl'], '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( 'interface' => array(
'showRecordFieldList' => 'title,description', 'showRecordFieldList' => 'title,description',
), ),
...@@ -81,4 +94,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_category'] = array( ...@@ -81,4 +94,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_category'] = array(
), ),
), ),
); );
?>
\ No newline at end of file
<?php <?php
if (!defined('TYPO3_MODE')) { return array(
die ('Access denied.'); 'ctrl' => array(
} 'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_experience',
'label' => 'date_time',
$GLOBALS['TCA']['tx_terfe2_domain_model_experience'] = array( 'searchFields' => 'comment',
'ctrl' => $GLOBALS['TCA']['tx_terfe2_domain_model_experience']['ctrl'], '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( 'interface' => array(
'showRecordFieldList' => 'date_time,comment,rating,frontend_user', 'showRecordFieldList' => 'date_time,comment,rating,frontend_user',
), ),
...@@ -107,4 +120,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_experience'] = array( ...@@ -107,4 +120,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_experience'] = array(
), ),
), ),
); );
?>
\ No newline at end of file
<?php <?php
if (!defined('TYPO3_MODE')) { return array(
die ('Access denied.'); 'ctrl' => array(
} 'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_extension',
'label' => 'ext_key',
$GLOBALS['TCA']['tx_terfe2_domain_model_extension'] = array( 'searchFields' => 'ext_key',
'ctrl' => $GLOBALS['TCA']['tx_terfe2_domain_model_extension']['ctrl'], '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( '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', '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( ...@@ -249,4 +262,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_extension'] = array(
), ),
), ),
); );
?>
\ No newline at end of file
<?php <?php
if (!defined('TYPO3_MODE')) { return array(
die ('Access denied.'); 'ctrl' => array(
} 'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_media',
'label' => 'title',
$GLOBALS['TCA']['tx_terfe2_domain_model_media'] = array( 'searchFields' => 'title,type,language,source,description',
'ctrl' => $GLOBALS['TCA']['tx_terfe2_domain_model_media']['ctrl'], '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( 'interface' => array(
'showRecordFieldList' => 'title,type,language,source,description', 'showRecordFieldList' => 'title,type,language,source,description',
), ),
...@@ -129,4 +142,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_media'] = array( ...@@ -129,4 +142,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_media'] = array(
), ),
), ),
); );
?>
\ No newline at end of file
<?php <?php
if (!defined('TYPO3_MODE')) { return array(
die ('Access denied.'); 'ctrl' => array(
} 'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_relation',
'label' => 'relation_key',
$GLOBALS['TCA']['tx_terfe2_domain_model_relation'] = array( 'searchFields' => 'relation_type,relation_key',
'ctrl' => $GLOBALS['TCA']['tx_terfe2_domain_model_relation']['ctrl'], '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( 'interface' => array(
'showRecordFieldList' => 'relation_type,relation_key,minimum_version,maximum_version', 'showRecordFieldList' => 'relation_type,relation_key,minimum_version,maximum_version',
), ),
...@@ -113,4 +126,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_relation'] = array( ...@@ -113,4 +126,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_relation'] = array(
), ),
), ),
); );
?>
\ No newline at end of file
<?php <?php
if (!defined('TYPO3_MODE')) { return array(
die ('Access denied.'); 'ctrl' => array (
} 'hideTable' => TRUE,
'tstamp' => 'tstamp',
$GLOBALS['TCA']['tx_terfe2_domain_model_search'] = array( 'crdate' => 'crdate',
'ctrl' => $GLOBALS['TCA']['tx_terfe2_domain_model_search']['ctrl'], ),
'interface' => array( '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', '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( ...@@ -82,4 +82,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_search'] = array(
), ),
), ),
); );
?>
\ No newline at end of file
<?php <?php
if (!defined('TYPO3_MODE')) { return array(
die ('Access denied.'); 'ctrl' => array(
} 'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_tag',
'label' => 'title',
$GLOBALS['TCA']['tx_terfe2_domain_model_tag'] = array( 'searchFields' => 'title',
'ctrl' => $GLOBALS['TCA']['tx_terfe2_domain_model_tag']['ctrl'], '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( 'interface' => array(
'showRecordFieldList' => 'title,extensions', 'showRecordFieldList' => 'title,extensions',
), ),
...@@ -87,4 +100,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_tag'] = array( ...@@ -87,4 +100,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_tag'] = array(
), ),
), ),
); );
?>
\ No newline at end of file
<?php <?php
if (!defined('TYPO3_MODE')) { return array(
die ('Access denied.'); 'ctrl' => array(
} 'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version',
'label' => 'title',
$GLOBALS['TCA']['tx_terfe2_domain_model_version'] = array( 'searchFields' => 'title,description,state,em_category',
'ctrl' => $GLOBALS['TCA']['tx_terfe2_domain_model_version']['ctrl'], '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( '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', '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( ...@@ -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] = ...@@ -23,14 +23,14 @@ $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$extIdent] =
// Domain models and their label / search fields // Domain models and their label / search fields
$models = array( $models = array(
'extension' => array('ext_key', 'ext_key'), 'extension',
'category' => array('title', 'title,description'), 'category',
'tag' => array('title', 'title'), 'tag',
'version' => array('title', 'title,description,state,em_category'), 'version',
'media' => array('title', 'title,type,language,source,description'), 'media',
'experience' => array('date_time', 'comment'), 'experience',
'relation' => array('relation_key', 'relation_type,relation_key'), 'relation',
'author' => array('name', 'name,email,username'), 'author',
); );
// Add entities and value objects // Add entities and value objects
...@@ -43,41 +43,8 @@ foreach ($models as $modelName => $modelConfiguration) { ...@@ -43,41 +43,8 @@ foreach ($models as $modelName => $modelConfiguration) {
// Allow datasets on standard pages // Allow datasets on standard pages
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_terfe2_domain_model_' . $modelName); \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 // Add plugin to new content element wizard
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(" \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig("
mod.wizards.newContentElement.wizardItems.special {\n mod.wizards.newContentElement.wizardItems.special {\n
...@@ -93,4 +60,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_search'] = array ( ...@@ -93,4 +60,3 @@ $GLOBALS['TCA']['tx_terfe2_domain_model_search'] = array (
show := addToList(" . $extIdent . ")\n 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