/**
  * Adds the newloginbox wizard icon
  *
  * @param	array		Input array with wizard items for plugins
  * @return	array		Modified input array, having the item for newloginbox added.
  */
 function proc($wizardItems)
 {
     global $LANG;
     $LL = $this->includeLocalLang();
     $wizardItems['plugins_tx_ttnews_pi'] = array('icon' => TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('tt_news') . 'pi/ce_wiz.gif', 'title' => $LANG->getLLL('pi_title', $LL), 'description' => $LANG->getLLL('pi_plus_wiz_description', $LL), 'params' => '&defVals[tt_content][CType]=list&defVals[tt_content][list_type]=9');
     return $wizardItems;
 }
 /**
  * Processing the wizard items array
  *
  * @param	array		$wizardItems: The wizard items
  * @return	Modified array with wizard items
  */
 function proc($wizardItems)
 {
     global $LANG;
     $LL = $this->includeLocalLang();
     if (TYPO3_VERSION_INTEGER < 6002000) {
         $extRelPath = t3lib_extMgm::extRelPath('ke_search');
     } else {
         $extRelPath = TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ke_search');
     }
     $wizardItems['plugins_tx_kesearch_pi2'] = array('icon' => $extRelPath . 'pi2/ce_wiz.gif', 'title' => $LANG->getLLL('pi_title', $LL), 'description' => $LANG->getLLL('pi_plus_wiz_description', $LL), 'params' => '&defVals[tt_content][CType]=list&defVals[tt_content][list_type]=ke_search_pi2');
     return $wizardItems;
 }
Esempio n. 3
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$extPath = TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('ke_search');
$extRelPath = TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ke_search');
if (TYPO3_MODE == 'BE') {
    require_once $extPath . 'Classes/lib/class.tx_kesearch_lib_items.php';
}
$tempColumns = array('tx_kesearch_tags' => array('exclude' => 0, 'label' => 'LLL:EXT:ke_search/locallang_db.xml:pages.tx_kesearch_tags', 'config' => array('type' => 'select', 'renderType' => 'selectSingleBox', 'size' => 10, 'minitems' => 0, 'maxitems' => 100, 'items' => array(), 'allowNonIdValues' => true, 'itemsProcFunc' => 'user_filterlist->getListOfAvailableFiltersForTCA')));
// help file
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_kesearch_filters', 'EXT:ke_search/locallang_csh.xml');
// Show FlexForm field in plugin configuration
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi1'] = 'pi_flexform';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi2'] = 'pi_flexform';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi3'] = 'pi_flexform';
// Configure FlexForm field
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_pi1', 'FILE:EXT:ke_search/pi1/flexform_pi1.xml');
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_pi2', 'FILE:EXT:ke_search/pi2/flexform_pi2.xml');
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_pi3', 'FILE:EXT:ke_search/pi3/flexform_pi3.xml');
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', $tempColumns);
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', 'tx_kesearch_tags;;;;1-1-1');
if (TYPO3_MODE == 'BE') {
    TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('web_txkesearchM1', $extPath . 'mod1/');
    TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('web', 'txkesearchM1', '', $extPath . 'mod1/');
}
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi1'] = 'layout,select_key';
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi2'] = 'layout,select_key';
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi3'] = 'layout,select_key';
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:ke_search/locallang_db.xml:tt_content.list_type_pi1', $_EXTKEY . '_pi1', $extRelPath . 'ext_icon.gif'), 'list_type');
<?php

return array('ctrl' => array('label' => 'title', 'default_sortby' => 'ORDER BY title', 'tstamp' => 'tstamp', 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy', 'title' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group', 'delete' => 'deleted', 'iconfile' => TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('direct_mail') . 'res/gfx/mailgroup.gif', 'type' => 'type'), 'interface' => array('showRecordFieldList' => 'type,title,description'), 'columns' => array('title' => array('label' => 'LLL:EXT:lang/locallang_general.xml:LGL.title', 'config' => array('type' => 'input', 'size' => '30', 'max' => '120', 'eval' => 'trim,required')), 'description' => array('label' => 'LLL:EXT:lang/locallang_general.xml:LGL.description', 'config' => array('type' => 'text', 'cols' => '40', 'rows' => '3')), 'type' => array('label' => 'LLL:EXT:lang/locallang_general.xml:LGL.type', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.type.I.0', '0'), array('LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.type.I.1', '1'), array('LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.type.I.2', '2'), array('LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.type.I.3', '3'), array('LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.type.I.4', '4')), 'default' => '0')), 'static_list' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.static_list', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'tt_address,fe_users,fe_groups', 'MM' => 'sys_dmail_group_mm', 'size' => '20', 'maxitems' => '100000', 'minitems' => '0', 'show_thumbs' => '1', 'wizards' => array('suggest' => array('type' => 'suggest')))), 'pages' => array('label' => 'LLL:EXT:lang/locallang_general.xml:LGL.startingpoint', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'pages', 'size' => '3', 'maxitems' => '22', 'minitems' => '0', 'show_thumbs' => '1', 'wizards' => array('suggest' => array('type' => 'suggest')))), 'mail_groups' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.mail_groups', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'sys_dmail_group', 'size' => '3', 'maxitems' => '22', 'minitems' => '0', 'show_thumbs' => '1', 'wizards' => array('suggest' => array('type' => 'suggest')))), 'recursive' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.recursive', 'config' => array('type' => 'check')), 'whichtables' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.whichtables', 'config' => array('type' => 'check', 'items' => array(array('LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.whichtables.I.0', ''), array('LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.whichtables.I.1', ''), array('LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.whichtables.I.2', ''), array('LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.whichtables.I.3', '')), 'cols' => 2, 'default' => 1)), 'list' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.list', 'config' => array('type' => 'text', 'cols' => '48', 'rows' => '10')), 'csv' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.csv', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.csv.I.0', '0'), array('LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.csv.I.1', '1')), 'default' => '0')), 'select_categories' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.select_categories', 'config' => array('type' => 'select', 'foreign_table' => 'sys_dmail_category', 'foreign_table_where' => 'AND sys_dmail_category.l18n_parent=0 AND sys_dmail_category.pid IN (###PAGE_TSCONFIG_IDLIST###) ORDER BY sys_dmail_category.sorting', 'itemsProcFunc' => 'DirectMailTeam\\DirectMail\\SelectCategories->get_localized_categories', 'itemsProcFunc_config' => array('table' => 'sys_dmail_category', 'indexField' => 'uid'), 'size' => 5, 'minitems' => 0, 'maxitems' => 60, 'renderMode' => 'checkbox', 'MM' => 'sys_dmail_group_category_mm')), 'query' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.query', 'config' => array('type' => 'text', 'cols' => '48', 'rows' => '10'))), 'types' => array('0' => array('showitem' => 'type;;;;1-1-1, title;;;;3-3-3, description, --div--;LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.advanced,pages;;;;5-5-5,recursive,whichtables,select_categories'), '1' => array('showitem' => 'type;;;;1-1-1, title;;;;3-3-3, description, --div--;LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.advanced,list;;;;5-5-5,csv'), '2' => array('showitem' => 'type;;;;1-1-1, title;;;;3-3-3, description, --div--;LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.advanced,static_list;;;;5-5-5'), '3' => array('showitem' => 'type;;;;1-1-1, title;;;;3-3-3, description'), '4' => array('showitem' => 'type;;;;1-1-1, title;;;;3-3-3, description, --div--;LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_group.advanced,mail_groups;;;;5-5-5')));
Esempio n. 5
0
    /**
     * Displays a hirarchical menu from tt_news categories
     *
     * @return	string		html for the category menu
     */
    function displayCatMenu()
    {
        $content = '';
        $lConf = $this->conf['displayCatMenu.'];
        $mode = $lConf['mode'] ? $lConf['mode'] : 'tree';
        $this->dontStartFromRootRecord = false;
        $this->initCatmenuEnv($lConf);
        switch ($mode) {
            case 'nestedWraps':
                $fields = '*';
                $lConf = $this->conf['displayCatMenu.'];
                $addCatlistWhere = '';
                if ($this->dontStartFromRootRecord) {
                    $addCatlistWhere = 'tt_news_cat.uid IN (' . implode(',', $this->cleanedCategoryMounts) . ')';
                }
                $res = $this->db->exec_SELECTquery($fields, 'tt_news_cat', ($this->dontStartFromRootRecord ? $addCatlistWhere : 'tt_news_cat.parent_category=0') . $this->SPaddWhere . $this->enableCatFields . $this->catlistWhere, '', 'tt_news_cat.' . $this->config['catOrderBy']);
                $cArr = array();
                if (!$lConf['hideCatmenuHeader']) {
                    $cArr[] = $this->local_cObj->stdWrap($this->pi_getLL('catmenuHeader', 'Select a category:'), $lConf['catmenuHeader_stdWrap.']);
                }
                while ($row = $this->db->sql_fetch_assoc($res)) {
                    $cArr[] = $row;
                    $subcats = $this->hObj->getSubCategoriesForMenu($row['uid'], $fields, $this->catlistWhere);
                    if (count($subcats)) {
                        $cArr[] = $subcats;
                    }
                }
                $this->db->sql_free_result($res);
                $content = $this->getCatMenuContent($cArr, $lConf);
                break;
            case 'tree':
            case 'ajaxtree':
                $catTreeObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('tx_ttnews_catmenu');
                if ($mode == 'ajaxtree') {
                    // todo use pagerenderer
                    $this->tsfe->additionalHeaderData['tt_news_categorytree'] = '
						' . ($lConf['includePrototypeJS'] ? '<script type="text/javascript" src="' . TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('tt_news') . 'Resources/Public/JavaScript/compat/prototype/prototype.js"></script>' : '') . '
						<script type="text/javascript" src="' . TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath('tt_news') . 'Resources/Public/JavaScript/tt_news_catmenu.js"></script>
					';
                }
                $catTreeObj->init($this);
                $catTreeObj->treeObj->FE_USER =& $this->tsfe->fe_user;
                $content = '<div id="ttnews-cat-tree">' . $catTreeObj->treeObj->getBrowsableTree() . '</div>';
                break;
            default:
                // hook for user catmenu
                if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tt_news']['userDisplayCatmenuHook'])) {
                    foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tt_news']['userDisplayCatmenuHook'] as $_classRef) {
                        $_procObj =& \TYPO3\CMS\Core\Utility\GeneralUtility::getUserObj($_classRef);
                        $content = $_procObj->userDisplayCatmenu($lConf, $this);
                    }
                }
                break;
        }
        if ($this->debugTimes) {
            $this->hObj->getParsetime(__METHOD__);
        }
        return $this->local_cObj->stdWrap($content, $lConf['catmenu_stdWrap.']);
    }
<?php

return array('ctrl' => array('title' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_category', 'label' => 'category', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l18n_parent', 'transOrigDiffSourceField' => 'l18n_diffsource', 'sortby' => 'sorting', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'iconfile' => TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('direct_mail') . 'res/gfx/icon_tx_directmail_category.gif'), 'interface' => array('showRecordFieldList' => 'hidden,category'), 'feInterface' => $TCA['sys_dmail_category']['feInterface'], 'columns' => array('sys_language_uid' => array('label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language', 'config' => array('type' => 'select', 'foreign_table' => 'sys_language', 'foreign_table_where' => 'ORDER BY sys_language.title', 'items' => array(array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1), array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)))), 'l18n_parent' => array('displayCond' => 'FIELD:sys_language_uid:>:0', 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent', 'config' => array('type' => 'select', 'items' => array(array('', 0)), 'foreign_table' => 'sys_dmail_category', 'foreign_table_where' => 'AND sys_dmail_category.pid=###CURRENT_PID### AND sys_dmail_category.sys_language_uid IN (-1,0)')), 'l18n_diffsource' => array('config' => array('type' => 'passthrough')), 'hidden' => array('label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden', 'config' => array('type' => 'check', 'default' => '0')), 'category' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_category.category', 'config' => array('type' => 'input', 'size' => '30')), 'old_cat_number' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xml:sys_dmail_category.old_cat_number', 'l10n_mode' => 'exclude', 'config' => array('type' => 'input', 'size' => '2', 'eval' => 'trim', 'max' => '2'))), 'types' => array('0' => array('showitem' => 'sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource,hidden;;1;;1-1-1, category')), 'palettes' => array('1' => array('showitem' => '')));
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_sschhtml5videoplayer_domain_model_subtitle');
return ['ctrl' => ['title' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_subtitle', 'label' => 'track', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => true, 'versioningWS' => 2, 'versioning_followPages' => true, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'delete' => 'deleted', 'sortby' => 'sorting', 'enablecolumns' => ['disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'], 'iconfile' => TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ssch_html5videoplayer') . 'Resources/Public/Icons/tx_sschhtml5videoplayer_domain_model_subtitle.gif'], 'interface' => ['showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, track, static_lang_isocode, selected'], 'types' => ['1' => ['showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, track, static_lang_isocode, selected,--div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,starttime, endtime']], 'palettes' => ['1' => ['showitem' => '']], 'columns' => ['sys_language_uid' => ['exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', 'config' => ['type' => 'select', 'foreign_table' => 'sys_language', 'foreign_table_where' => 'ORDER BY sys_language.title', 'items' => [['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1], ['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0]]]], 'l10n_parent' => ['displayCond' => 'FIELD:sys_language_uid:>:0', 'exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', 'config' => ['type' => 'select', 'items' => [['', 0]], 'foreign_table' => 'tx_sschhtml5videoplayer_domain_model_subtitle', 'foreign_table_where' => 'AND tx_sschhtml5videoplayer_domain_model_subtitle.pid=###CURRENT_PID### AND tx_sschhtml5videoplayer_domain_model_subtitle.sys_language_uid IN (-1,0)']], 'l10n_diffsource' => ['config' => ['type' => 'passthrough']], 't3ver_label' => ['label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', 'config' => ['type' => 'input', 'size' => 30, 'max' => 255]], 'hidden' => ['exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', 'config' => ['type' => 'check']], 'starttime' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', 'config' => ['type' => 'input', 'size' => 13, 'max' => 20, 'eval' => 'datetime', 'checkbox' => 0, 'default' => 0, 'range' => ['lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))]]], 'endtime' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', 'config' => ['type' => 'input', 'size' => 13, 'max' => 20, 'eval' => 'datetime', 'checkbox' => 0, 'default' => 0, 'range' => ['lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))]]], 'track' => ['exclude' => 1, 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_subtitle.track', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('track', ['maxitems' => 1], 'vtt, srt')], 'static_lang_isocode' => ['exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.isocode', 'displayCond' => 'EXT:static_info_tables:LOADED:true', 'config' => ['type' => 'select', 'items' => [['', 0]], 'foreign_table' => 'static_languages', 'foreign_table_where' => 'AND static_languages.pid=0 ORDER BY static_languages.lg_name_en', 'size' => 1, 'minitems' => 0, 'maxitems' => 1]], 'selected' => ['exclude' => 1, 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_subtitle.selected', 'config' => ['type' => 'check']]]];
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_txttnewsM1', 'EXT:tt_news/csh/locallang_csh_mod_newsadmin.xml');
// adds processing for extra "codes" that have been added to the "what to display" selector in the content element by other extensions
include_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'lib/class.tx_ttnews_itemsProcFunc.php';
// class that uses hooks in class.t3lib_tcemain.php (processDatamapClass and processCmdmapClass)
// to prevent not allowed "commands" (copy,delete,...) for a certain BE usergroup
include_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'lib/class.tx_ttnews_tcemain.php';
$tempColumns = array('tt_news_categorymounts' => array('exclude' => 1, 'l10n_mode' => 'exclude', 'label' => 'LLL:EXT:tt_news/Resources/Private/Language/locallang_tca.xml:tt_news.categorymounts', 'config' => array('type' => 'select', 'renderType' => 'selectTree', 'foreign_table' => 'tt_news_cat', 'foreign_table_where' => ' ORDER BY tt_news_cat.title ASC', 'size' => 10, 'autoSizeMax' => 50, 'minitems' => 0, 'maxitems' => 500, 'renderMode' => 'tree', 'treeConfig' => array('expandAll' => true, 'parentField' => 'parent_category', 'appearance' => array('showHeader' => TRUE, 'width' => 400)))));
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('be_groups', $tempColumns);
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('be_groups', 'tt_news_categorymounts;;;;1-1-1');
// show the category selection only in non-admin be_users records
$tempColumns['tt_news_categorymounts']['displayCond'] = 'FIELD:admin:=:0';
// $tempColumns['tt_news_cmounts_usesubcats']['displayCond'] = 'FIELD:admin:=:0';
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('be_users', $tempColumns);
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('be_users', 'tt_news_categorymounts;;;;1-1-1');
if (TYPO3_MODE == 'BE') {
    if ($confArr['showBackEndModule']) {
        TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('web', 'txttnewsM1', '', TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod1/');
        $GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][] = array('name' => 'tx_ttnewscatmanager_cm1');
    }
    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cms']['db_layout']['addTables'][$_EXTKEY][0]['fList'] = 'uid,title,author,category,datetime,archivedate,tstamp';
    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cms']['db_layout']['addTables'][$_EXTKEY][0]['icon'] = TRUE;
    // register contextmenu for the tt_news category manager
    // Adds a tt_news wizard icon to the content element wizard.
    $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['tx_ttnews_wizicon'] = TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'pi/class.tx_ttnews_wizicon.php';
    // add folder icon
    \TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', 'contains-news', TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'res/gfx/ext_icon_ttnews_folder.gif');
    // register HTML template for the tt_news BackEnd Module
    $GLOBALS['TBE_STYLES']['htmlTemplates']['mod_ttnews_admin.html'] = TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('tt_news') . 'mod1/mod_ttnews_admin.html';
}
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::loadNewTcaColumnsConfigFiles();
#
Esempio n. 9
0
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_txdirectmailM1_txdirectmailM3', 'EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_csh_txdirectmailM3.xml');
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_txdirectmailM1_txdirectmailM4', 'EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_csh_txdirectmailM4.xml');
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_txdirectmailM1_txdirectmailM5', 'EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_csh_txdirectmailM5.xml');
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_txdirectmailM1_txdirectmailM6', 'EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_csh_txdirectmailM6.xml');
//old
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_txdirectmailM', 'EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_csh_web_txdirectmail.xml');
if (TYPO3_MODE == 'BE') {
    // add module before 'Help'
    if (!isset($TBE_MODULES['txdirectmailM1'])) {
        $temp_TBE_MODULES = array();
        foreach ($TBE_MODULES as $key => $val) {
            if ($key == 'help') {
                $temp_TBE_MODULES['txdirectmailM1'] = '';
                $temp_TBE_MODULES[$key] = $val;
            } else {
                $temp_TBE_MODULES[$key] = $val;
            }
        }
        $TBE_MODULES = $temp_TBE_MODULES;
    }
    TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txdirectmailM1', '', '', $extPath . 'mod1/');
    TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txdirectmailM1', 'txdirectmailM2', 'bottom', $extPath . 'mod2/');
    TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txdirectmailM1', 'txdirectmailM3', 'bottom', $extPath . 'mod3/');
    TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txdirectmailM1', 'txdirectmailM4', 'bottom', $extPath . 'mod4/');
    TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txdirectmailM1', 'txdirectmailM5', 'bottom', $extPath . 'mod5/');
    TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txdirectmailM1', 'txdirectmailM6', 'bottom', $extPath . 'mod6/');
}
\TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', 'contains-dmail', TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'res/gfx/ext_icon_dmail_folder.gif');
if (VersionNumberUtility::convertVersionNumberToInteger(TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getExtensionVersion('tt_address')) <= VersionNumberUtility::convertVersionNumberToInteger('2.3.5')) {
    include_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . "Configuration/TCA/Overrides/tt_address.php";
}
Esempio n. 10
0
    /**
     * Generates the module content
     *
     * @return	void
     */
    function moduleContent()
    {
        $error = false;
        //		switch((string)$this->MOD_SETTINGS['function'])	{
        //			case 1:
        $this->table = 'tt_news_cat';
        if ($this->confArr['useStoragePid']) {
            $catRows = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid', 'tt_news_cat', 'pid=' . $this->storagePid . $this->catlistWhere . ' AND deleted=0');
            if (empty($catRows)) {
                $error = $this->displayOverview();
            }
        }
        if (!$error) {
            $this->doc->JScodeLibArray['txttnewsM1'] = '
					    <script src="' . TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('tt_news') . 'Resources/Public/JavaScript/compat/prototype/prototype.js" type="text/javascript"></script>
						<script src="' . $GLOBALS['BACK_PATH'] . TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('tt_news') . 'Resources/Public/JavaScript/tt_news_mod1.js" type="text/javascript"></script>
						';
            // fixme: throws JS errors, commented out
            //					$this->doc->getDragDropCode('tt_news_cat');
            //					$this->doc->postCode=$this->doc->wrapScriptTags('
            //							txttnewsM1js.registerDragDropHandlers();
            //					');
            $this->doc->getContextMenuCode();
            $this->treeContent = $this->displayCategoryTree();
            $this->listContent .= $this->displayNewsList();
        }
        //			break;
        //		}
    }
Esempio n. 11
0
    if (!isset($TBE_MODULES['DirectMailNavFrame'])) {
        $temp_TBE_MODULES = array();
        foreach ($TBE_MODULES as $key => $val) {
            if ($key == 'help') {
                $temp_TBE_MODULES['DirectMailNavFrame'] = '';
                $temp_TBE_MODULES[$key] = $val;
            } else {
                $temp_TBE_MODULES[$key] = $val;
            }
        }
        $TBE_MODULES = $temp_TBE_MODULES;
    }
    TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('DirectMailNavFrame', '', '', '', array('routeTarget' => DirectMailTeam\DirectMail\Module\NavFrame::class . '::mainAction', 'access' => 'group,user', 'name' => 'DirectMailNavFrame', 'labels' => array('tabs_images' => array('tab' => 'EXT:direct_mail/Resources/Public/Images/module-directmail.svg'), 'll_ref' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallangNavFrame.xlf')));
    TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('DirectMailNavFrame', 'DirectMail', 'bottom', '', array('routeTarget' => DirectMailTeam\DirectMail\Module\Dmail::class . '::mainAction', 'access' => 'group,user', 'name' => 'DirectMailNavFrame_DirectMail', 'workspaces' => 'online', 'labels' => array('tabs_images' => array('tab' => 'EXT:direct_mail/Resources/Public/Images/module-directmail-directmail.svg'), 'll_ref' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallangDirectMail.xlf'), 'navigationFrameModule' => 'DirectMailNavFrame', 'navigationFrameModuleParameters' => array('currentModule' => 'DirectMailNavFrame_DirectMail')));
    TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('DirectMailNavFrame', 'RecipientList', 'bottom', '', array('routeTarget' => DirectMailTeam\DirectMail\Module\RecipientList::class . '::mainAction', 'access' => 'group,user', 'name' => 'DirectMailNavFrame_RecipientList', 'workspaces' => 'online', 'labels' => array('tabs_images' => array('tab' => 'EXT:direct_mail/Resources/Public/Images/module-directmail-recipient-list.svg'), 'll_ref' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallangRecipientList.xlf'), 'navigationFrameModule' => 'DirectMailNavFrame', 'navigationFrameModuleParameters' => array('currentModule' => 'DirectMailNavFrame_RecipientList')));
    TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('DirectMailNavFrame', 'Statistics', 'bottom', '', array('routeTarget' => DirectMailTeam\DirectMail\Module\Statistics::class . '::mainAction', 'access' => 'group,user', 'name' => 'DirectMailNavFrame_Statistics', 'workspaces' => 'online', 'labels' => array('tabs_images' => array('tab' => 'EXT:direct_mail/Resources/Public/Images/module-directmail-statistics.svg'), 'll_ref' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallangStatistics.xlf'), 'navigationFrameModule' => 'DirectMailNavFrame', 'navigationFrameModuleParameters' => array('currentModule' => 'DirectMailNavFrame_Statistics')));
    TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('DirectMailNavFrame', 'MailerEngine', 'bottom', '', array('routeTarget' => DirectMailTeam\DirectMail\Module\MailerEngine::class . '::mainAction', 'access' => 'group,user', 'name' => 'DirectMailNavFrame_MailerEngine', 'workspaces' => 'online', 'labels' => array('tabs_images' => array('tab' => 'EXT:direct_mail/Resources/Public/Images/module-directmail-mailer-engine.svg'), 'll_ref' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallangMailerEngine.xlf'), 'navigationFrameModule' => 'DirectMailNavFrame', 'navigationFrameModuleParameters' => array('currentModule' => 'DirectMailNavFrame_MailerEngine')));
    TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('DirectMailNavFrame', 'Configuration', 'bottom', '', array('routeTarget' => DirectMailTeam\DirectMail\Module\Configuration::class . '::mainAction', 'access' => 'group,user', 'name' => 'DirectMailNavFrame_Configuration', 'workspaces' => 'online', 'labels' => array('tabs_images' => array('tab' => 'EXT:direct_mail/Resources/Public/Images/module-directmail-configuration.svg'), 'll_ref' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallangConfiguration.xlf'), 'navigationFrameModule' => 'DirectMailNavFrame', 'navigationFrameModuleParameters' => array('currentModule' => 'DirectMailNavFrame_Configuration')));
}
$GLOBALS['TBE_STYLES']['spritemanager']['singleIcons']['tcarecords-pages-contains-dmail'] = TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/ext_icon_dmail_folder.gif';
if (is_array($GLOBALS['TCA']['pages']['ctrl']['typeicon_classes'])) {
    $GLOBALS['TCA']['pages']['ctrl']['typeicon_classes']['contains-dmail'] = 'tcarecords-pages-contains-dmail';
}
if (TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getExtensionVersion('tt_address')) <= TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger('2.3.5')) {
    include_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . "Configuration/TCA/Overrides/tt_address.php";
}
/** @var \TYPO3\CMS\Core\Imaging\IconRegistry $iconRegistry */
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon('direct_mail_newmail', \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class, ['source' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/newmail.gif']);
$iconRegistry->registerIcon('direct_mail_preview_html', \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class, ['source' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/preview_html.gif']);
$iconRegistry->registerIcon('direct_mail_preview_plain', \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class, ['source' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/preview_txt.gif']);
Esempio n. 12
0
			// Toolbar order
			// Must be completely reset
			RTE.default.toolbarOrder = formatblock, blockstyle, textstyle, linebreak, bold, italic, underline, strikethrough, bar, textcolor, bgcolor, bar, orderedlist, unorderedlist, bar, left, center, right, justifyfull, copy, cut, paste, bar, undo, redo, bar, findreplace, removeformat, bar, link, unlink, linkcreator, bar, imageeditor, bar, table, bar, line, bar, insertparagraphbefore, insertparagraphafter, bar, chMode, showhelp, about, linebreak, tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge

			RTE.default.RTEHeightOverride = 700
			RTE.default.RTEWidthOverride = 700
		');
    }
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('Fab.media', 'user', 'm1', 'bottom', array('Asset' => 'create, update, download, editStorage', 'ImageEditor' => 'show', 'LinkCreator' => 'show', 'ProcessedFile' => 'create'), array('access' => 'user,group', 'icon' => 'EXT:media/ext_icon.gif', 'labels' => 'LLL:EXT:media/Resources/Private/Language/locallang_module.xlf'));
    $defaultMainModule = (bool) $configuration['has_folder_tree']['value'] ? 'file' : 'content';
    /** @var \Fab\Vidi\Module\ModuleLoader $moduleLoader */
    $moduleLoader = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('Fab\\Vidi\\Module\\ModuleLoader', 'sys_file');
    $moduleLoader->setIcon('EXT:media/ext_icon.gif')->setModuleLanguageFile($moduleFileLanguage)->setMainModule($defaultMainModule)->addJavaScriptFiles(array('EXT:media/Resources/Public/JavaScript/Initialize.js', 'EXT:media/Resources/Public/JavaScript/Media.js', 'EXT:media/Resources/Public/JavaScript/Media.EditStorage.js', 'EXT:media/Resources/Public/JavaScript/Media.BrowseRecursively.js', 'EXT:media/Resources/Public/Libraries/Fineuploader/jquery.fineuploader-5.0.9.min.js'))->addStyleSheetFiles(array('EXT:media/Resources/Public/StyleSheets/media.css', 'EXT:media/Resources/Public/StyleSheets/fineuploader.css'))->setDocHeaderTopLeftComponents(array('Fab\\Media\\View\\Menu\\StorageMenu', 'Fab\\Media\\View\\Checkbox\\RecursiveCheckbox'))->setDocHeaderBottomLeftComponents(array('Fab\\Vidi\\View\\Button\\ClipboardButton', 'Fab\\Media\\View\\Button\\NewFolder', 'Fab\\Media\\View\\Button\\UploadButton'))->setGridTopComponents(array('Fab\\Media\\View\\InlineJavaScript', 'Fab\\Media\\View\\Warning\\ConfigurationWarning', 'Fab\\Media\\View\\Info\\SelectedFolderInfo'))->setGridBottomComponents(array('Fab\\Media\\View\\Plugin\\LinkCreatorPlugin', 'Fab\\Media\\View\\Plugin\\ImageEditorPlugin', 'Fab\\Media\\View\\Plugin\\FilePickerPlugin'))->setGridButtonsComponents(array('Fab\\Media\\View\\Button\\LinkCreatorButton', 'Fab\\Media\\View\\Button\\ImageEditorButton', 'Fab\\Media\\View\\Button\\FilePickerButton', 'Fab\\Media\\View\\Button\\EditButton', 'Fab\\Media\\View\\Button\\DownloadButton', 'Fab\\Media\\View\\Button\\DeleteButton'))->setMenuMassActionComponents(array('Fab\\Vidi\\View\\MenuItem\\ExportXlsMenuItem', 'Fab\\Vidi\\View\\MenuItem\\ExportXmlMenuItem', 'Fab\\Vidi\\View\\MenuItem\\ExportCsvMenuItem', 'Fab\\Vidi\\View\\MenuItem\\DividerMenuItem', 'Fab\\Vidi\\View\\MenuItem\\ClipboardMenuItem', 'Fab\\Media\\View\\MenuItem\\FilePickerMenuItem', 'Fab\\Media\\View\\MenuItem\\ChangeStorageMenuItem', 'Fab\\Vidi\\View\\MenuItem\\MassDeleteMenuItem'))->register();
    /** @var \TYPO3\CMS\Extbase\Object\ObjectManager $objectManager */
    $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
    /** @var $signalSlotDispatcher \TYPO3\CMS\Extbase\SignalSlot\Dispatcher */
    $signalSlotDispatcher = $objectManager->get('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher');
    # Register some tool for Media.
    \Fab\Vidi\Tool\ToolRegistry::getInstance()->register('sys_file', 'Fab\\Media\\Tool\\ThumbnailGeneratorTool');
    \Fab\Vidi\Tool\ToolRegistry::getInstance()->register('sys_file', 'Fab\\Media\\Tool\\CacheWarmUpTool');
    \Fab\Vidi\Tool\ToolRegistry::getInstance()->register('sys_file', 'Fab\\Media\\Tool\\MissingFilesFinderTool');
    \Fab\Vidi\Tool\ToolRegistry::getInstance()->register('sys_file', 'Fab\\Media\\Tool\\DuplicateRecordsFinderTool');
    \Fab\Vidi\Tool\ToolRegistry::getInstance()->register('sys_file', 'Fab\\Media\\Tool\\DuplicateFilesFinderTool');
    // Connect some signals with slots.
    $signalSlotDispatcher->connect('Fab\\Vidi\\Controller\\Backend\\ContentController', 'postProcessMatcherObject', 'Fab\\Media\\Security\\FilePermissionsAspect', 'addFilePermissionsForFileStorages', TRUE);
    $signalSlotDispatcher->connect('Fab\\Vidi\\Domain\\Repository\\ContentRepository', 'postProcessConstraintsObject', 'Fab\\Media\\Security\\FilePermissionsAspect', 'addFilePermissionsForFileMounts', TRUE);
    $signalSlotDispatcher->connect('Fab\\Vidi\\Service\\ContentService', 'afterFindContentObjects', 'Fab\\Media\\Facet\\ActionPermissionFacet', 'modifyResultSet', TRUE);
}
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(array('image-edit' => TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('media') . 'Resources/Public/Icons/image_edit.png', 'image-link' => TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('media') . 'Resources/Public/Icons/image_link.png', 'image-export' => TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('media') . 'Resources/Public/Icons/image_export.png', 'storage-change' => TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('media') . 'Resources/Public/Icons/folder_go.png'), 'media');
Esempio n. 13
0
    /**
     * Main function of the module. Write the content to $this->content
     * If you chose "web" as main module, you will need to consider the $this->id parameter which will contain the uid-number of the page clicked in the page tree
     *
     * @return	[type]		...
     */
    function main()
    {
        global $BE_USER, $BACK_PATH, $TCA_DESCR, $TCA, $CLIENT, $TYPO3_CONF_VARS;
        // Access check!
        // The page will show only if there is a valid page and if this page may be viewed by the user
        $this->pageinfo = \TYPO3\CMS\Backend\Utility\BackendUtility::readPageAccess($this->id, $this->perms_clause);
        $access = is_array($this->pageinfo) ? 1 : 0;
        // create document template
        $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
        if ($this->id && $access || $GLOBALS['BE_USER']->user['admin'] && !$this->id) {
            $this->doc->backPath = $BACK_PATH;
            $this->doc->form = '<form action="" method="post" enctype="multipart/form-data">';
            // JavaScript
            $this->doc->JScode = '
				<script language="javascript" type="text/javascript">
					script_ended = 0;
					function jumpToUrl(URL)	{
						document.location = URL;
					}
				</script>
			';
            $this->doc->postCode = '
				<script language="javascript" type="text/javascript">
					script_ended = 1;
					if (top.fsMod) top.fsMod.recentIds["web"] = 0;
				</script>
			';
            // add some css
            $cssFile = 'res/backendModule.css';
            $this->doc->getPageRenderer()->addCssFile(TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ke_search') . $cssFile);
            $this->content .= '<div id="typo3-docheader"><div class="typo3-docheader-functions">';
            $this->content .= \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncMenu($this->id, 'SET[function]', $this->MOD_SETTINGS['function'], $this->MOD_MENU['function']);
            $this->content .= '</div></div>';
            $this->content .= '<div id="typo3-docbody"><div id="typo3-inner-docbody">';
            $this->content .= $this->doc->startPage($GLOBALS['LANG']->getLL('title'));
            $this->content .= $this->doc->header($GLOBALS['LANG']->getLL('title'));
            // Render content:
            $this->moduleContent();
            // ShortCut
            if ($BE_USER->mayMakeShortcut()) {
                $this->content .= $this->doc->spacer(20) . $this->doc->section('', $this->doc->makeShortcutIcon('id', implode(',', array_keys($this->MOD_MENU)), $this->MCONF['name']));
            }
            $this->content .= $this->doc->spacer(10);
        } else {
            $this->doc->backPath = $BACK_PATH;
            $this->content .= '<div class="alert alert-info">' . $GLOBALS['LANG']->getLL('select_a_page') . '</div>';
            $this->content .= $this->doc->spacer(10);
        }
        $this->content .= '</div></div>';
    }
Esempio n. 14
0
<?php

return array('ctrl' => array('label' => 'subject', 'default_sortby' => 'ORDER BY tstamp DESC', 'tstamp' => 'tstamp', 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xlf:LGL.prependAtCopy', 'title' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail', 'delete' => 'deleted', 'iconfile' => TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('direct_mail') . 'Resources/Public/Icons/mail.gif', 'type' => 'type', 'useColumnsForDefaultValues' => 'from_email,from_name,replyto_email,replyto_name,organisation,priority,encoding,charset,sendOptions,type', 'dividers2tabs' => true), 'interface' => array('showRecordFieldList' => 'sys_language_uid,type,plainParams,HTMLParams,subject,from_name,from_email,replyto_name,replyto_email,return_path,organisation,attachment,priority,encoding,charset,sendOptions,includeMedia,flowedFormat,issent,renderedsize,use_domain,use_rdct,long_link_mode,authcode_fieldList'), 'columns' => array('sys_language_uid' => array('exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', 'config' => array('type' => 'select', 'foreign_table' => 'sys_language', 'foreign_table_where' => 'ORDER BY sys_language.title', 'items' => array(array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1), array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)))), 'subject' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.subject', 'config' => array('type' => 'input', 'size' => '30', 'max' => '120', 'eval' => 'trim,required')), 'page' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.page', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'pages', 'size' => '1', 'maxitems' => 1, 'minitems' => 0, 'wizards' => array('suggest' => array('type' => 'suggest')))), 'from_email' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.from_email', 'config' => array('type' => 'input', 'size' => '30', 'max' => '80', 'eval' => 'trim,required')), 'from_name' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.from_name', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'trim', 'max' => '80')), 'replyto_email' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.replyto_email', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'trim', 'max' => '80')), 'replyto_name' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.replyto_name', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'trim', 'max' => '80')), 'return_path' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.return_path', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'trim', 'max' => '80')), 'organisation' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.organisation', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'trim', 'max' => '80')), 'encoding' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.transfer_encoding', 'config' => array('type' => 'select', 'items' => array(array('quoted-printable', 'quoted-printable'), array('base64', 'base64'), array('8bit', '8bit')), 'default' => 'quoted-printable')), 'charset' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.charset', 'config' => array('type' => 'input', 'size' => '15', 'max' => '20', 'eval' => 'trim', 'default' => 'iso-8859-1')), 'priority' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.priority', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.priority.I.0', '5'), array('LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.priority.I.1', '3'), array('LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.priority.I.2', '1')), 'default' => '3')), 'sendOptions' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.sendOptions', 'config' => array('type' => 'check', 'items' => array(array('LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.sendOptions.I.0', ''), array('LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.sendOptions.I.1', '')), 'cols' => '2', 'default' => '3')), 'includeMedia' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.includeMedia', 'config' => array('type' => 'check', 'default' => '0')), 'flowedFormat' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.flowedFormat', 'config' => array('type' => 'check', 'default' => '0')), 'HTMLParams' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.HTMLParams', 'config' => array('type' => 'input', 'size' => '15', 'max' => '80', 'eval' => 'trim', 'default' => '')), 'plainParams' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.plainParams', 'config' => array('type' => 'input', 'size' => '15', 'max' => '80', 'eval' => 'trim', 'default' => '&type=99')), 'issent' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.issent', 'exclude' => '1', 'config' => array('type' => 'none', 'size' => 2)), 'scheduled' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.scheduled', 'exclude' => '1', 'config' => array('type' => 'none', 'cols' => '30', 'format' => 'datetime', 'default' => 0)), 'scheduled_begin' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.scheduled_begin', 'config' => array('type' => 'none', 'cols' => '15', 'format' => 'datetime', 'default' => 0)), 'scheduled_end' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.scheduled_end', 'config' => array('type' => 'none', 'cols' => '15', 'format' => 'datetime', 'default' => 0)), 'use_domain' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.use_domain', 'config' => array('type' => 'select', 'foreign_table' => 'sys_domain', 'items' => array(array('', 0)), 'size' => '1', 'maxitems' => 1, 'minitems' => 0)), 'use_rdct' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.use_rdct', 'config' => array('type' => 'check', 'default' => '0')), 'long_link_rdct_url' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.long_link_rdct_url', 'config' => array('type' => 'input', 'size' => '15', 'max' => '80', 'eval' => 'trim', 'default' => '')), 'long_link_mode' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.long_link_mode', 'config' => array('type' => 'check')), 'authcode_fieldList' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.authcode_fieldList', 'config' => array('type' => 'input', 'size' => '30', 'eval' => 'trim', 'max' => '80', 'default' => 'uid,name,email,password')), 'renderedsize' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.renderedsize', 'exclude' => '1', 'config' => array('type' => 'none')), 'attachment' => array('label' => 'LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.attachment', 'config' => array('type' => 'group', 'internal_type' => 'file', 'allowed' => '', 'disallowed' => 'php,php3', 'max_size' => '10000', 'uploadfolder' => 'uploads/tx_directmail', 'show_thumbs' => '0', 'size' => '3', 'maxitems' => '5', 'minitems' => '0')), 'type' => array('label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.type', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.type.I.0', '0'), array('LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.type.I.1', '1'), array('Draft of internal page', '2'), array('Draft of external URL', '3')), 'default' => '0'))), 'types' => array('0' => array('showitem' => '
			--div--;LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.tab1, type;;;;1-1-1,sys_language_uid, page, plainParams, HTMLParams, use_domain, attachment,
			--div--;LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.tab2, subject, --palette--;;from;;;;1-1-1, --palette--;Reply-to;reply, return_path, organisation, priority, encoding,
			--div--;LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.tab3, sendOptions, includeMedia, flowedFormat, use_rdct, long_link_mode, authcode_fieldList, scheduled;;1
		'), '1' => array('showitem' => '
			--div--;LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.tab1, type;;;;1-1-1, page, plainParams;LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.plainParams.ALT.1, HTMLParams;LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.HTMLParams.ALT.1, attachment,
			--div--;LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.tab2, subject, --palette--;;from;;;;1-1-1, --palette--;Reply-to;reply, return_path, organisation, priority, encoding,
			--div--;LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.tab3, sendOptions, includeMedia, flowedFormat, use_rdct, long_link_mode, authcode_fieldList, scheduled;;1
		'), '2' => array('showitem' => '
			--div--;LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.tab1, type;;;;1-1-1,sys_language_uid, page, plainParams, HTMLParams, use_domain, attachment,
			--div--;LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.tab2, subject, --palette--;;from;;;;1-1-1, --palette--;Reply-to;reply, return_path, organisation, priority, encoding,
			--div--;LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.tab3, sendOptions, includeMedia, flowedFormat, use_rdct, long_link_mode, authcode_fieldList, scheduled;;1
		'), '3' => array('showitem' => '
			--div--;LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.tab1, type;;;;1-1-1, page, plainParams;LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.plainParams.ALT.1, HTMLParams;LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.HTMLParams.ALT.1, attachment,
			--div--;LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.tab2, subject, --palette--;;from;;;;1-1-1, --palette--;Reply-to;reply, return_path, organisation, priority, encoding,
			--div--;LLL:EXT:direct_mail/Resources/Private/Language/locallang_tca.xlf:sys_dmail.tab3, sendOptions, includeMedia, flowedFormat, use_rdct, long_link_mode, authcode_fieldList, scheduled;;1
		')), 'palettes' => array('1' => array('showitem' => 'scheduled_begin, scheduled_end, issent'), 'from' => array('showitem' => 'from_email, from_name'), 'reply' => array('showitem' => 'replyto_email, replyto_name')));
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_sschhtml5videoplayer_domain_model_video');
$imagesTca = ['exclude' => 1, 'label' => 'Bilder', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('images', ['maxitems' => 1], $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])];
$downloadsTca = ['exclude' => 1, 'label' => 'Downloads', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('downloads', ['maxitems' => 10])];
return ['ctrl' => ['title' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video', 'label' => 'title', 'label_userFunc' => 'EXT:ssch_html5videoplayer/Classes/UserFuncs/Labels.php:\\Ssch\\SschHtml5videoplayer\\UserFuncs\\Labels->getLabel', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => true, 'versioningWS' => 2, 'versioning_followPages' => true, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'sortby' => 'sorting', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'delete' => 'deleted', 'enablecolumns' => ['disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'], 'iconfile' => TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ssch_html5videoplayer') . 'Resources/Public/Icons/tx_sschhtml5videoplayer_domain_model_video.gif', 'searchFields' => 'title,short_title,caption,alt,longdesc'], 'interface' => ['showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, single_pid, caption, duration, poster_image, videos, external_source, external_type, copyright, height, width, subtitles, downloads, images, static_lang_isocode'], 'types' => ['1' => ['showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, static_lang_isocode, title, short_title, caption, copyright, duration, single_pid, description;;;richtext[paste|bold|italic|underline|formatblock|class|left|center|right|orderedlist|unorderedlist|outdent|indent|link|image]:rte_transform[mode=ts], poster_image, videos, external_source, width, height, downloads, images, --div--;LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.subtitles,subtitles, --div--;LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.versions,versions, --div--;LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.related,related, --div--;LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_audio.categories, categories,--div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,starttime, endtime']], 'palettes' => ['1' => ['showitem' => '']], 'columns' => ['sys_language_uid' => ['exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', 'config' => ['type' => 'select', 'foreign_table' => 'sys_language', 'foreign_table_where' => 'ORDER BY sys_language.title', 'items' => [['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1], ['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0]]]], 'l10n_parent' => ['displayCond' => 'FIELD:sys_language_uid:>:0', 'exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', 'config' => ['type' => 'select', 'items' => [['', 0]], 'foreign_table' => 'tx_sschhtml5videoplayer_domain_model_video', 'foreign_table_where' => 'AND tx_sschhtml5videoplayer_domain_model_video.pid=###CURRENT_PID### AND tx_sschhtml5videoplayer_domain_model_video.sys_language_uid IN (-1,0)']], 'l10n_diffsource' => ['config' => ['type' => 'passthrough']], 't3ver_label' => ['label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', 'config' => ['type' => 'input', 'size' => 30, 'max' => 255]], 'hidden' => ['exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', 'config' => ['type' => 'check']], 'starttime' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', 'config' => ['type' => 'input', 'size' => 13, 'max' => 20, 'eval' => 'datetime', 'checkbox' => 0, 'default' => 0, 'range' => ['lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))]]], 'endtime' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', 'config' => ['type' => 'input', 'size' => 13, 'max' => 20, 'eval' => 'datetime', 'checkbox' => 0, 'default' => 0, 'range' => ['lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))]]], 'title' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.title', 'config' => ['type' => 'input', 'size' => 30, 'eval' => 'trim,required']], 'short_title' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.short_title', 'config' => ['type' => 'input', 'size' => 30, 'eval' => 'trim']], 'copyright' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.copyright', 'config' => ['type' => 'input', 'size' => 30, 'eval' => 'trim']], 'static_lang_isocode' => ['exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.isocode', 'displayCond' => 'EXT:static_info_tables:LOADED:true', 'config' => ['type' => 'select', 'items' => [['', 0]], 'foreign_table' => 'static_languages', 'foreign_table_where' => 'AND static_languages.pid=0 ORDER BY static_languages.lg_name_en', 'size' => 1, 'minitems' => 0, 'maxitems' => 1]], 'caption' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.caption', 'config' => ['type' => 'input', 'size' => 30, 'eval' => 'trim']], 'duration' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.duration', 'config' => ['type' => 'input', 'size' => 30, 'eval' => 'trim']], 'description' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.description', 'config' => ['type' => 'text', 'cols' => 40, 'rows' => 15, 'wizards' => ['_PADDING' => 2, 'RTE' => ['notNewRecords' => 1, 'RTEonly' => 1, 'type' => 'script', 'title' => 'Full screen Rich Text Editing|Formatteret redigering i hele vinduet', 'icon' => 'wizard_rte2.gif', 'script' => 'wizard_rte.php']]]], 'alt' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.alt', 'config' => ['type' => 'input', 'size' => 255, 'eval' => 'trim,required']], 'longdesc' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.longdesc', 'config' => ['type' => 'input', 'size' => '15', 'max' => '255', 'checkbox' => '', 'eval' => 'trim', 'wizards' => ['_PADDING' => 2, 'link' => ['type' => 'popup', 'title' => 'Link', 'icon' => 'link_popup.gif', 'script' => 'browse_links.php?mode=wizard', 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1']]]], 'poster_image' => ['exclude' => 0, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.poster_image', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('poster_image', ['maxitems' => 1], $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])], 'videos' => ['exclude' => 1, 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.videos', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('videos', ['maxitems' => 45], 'mp4,ogg,ogv,webm')], 'external_type' => ['exclude' => 0, 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.external_type', 'config' => ['type' => 'select', 'items' => [['', ''], ['LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.external_type.I', 'video/youtube'], ['LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.external_type.II', 'video/vimeo']], 'size' => 1, 'maxitems' => 1, 'eval' => '']], 'external_source' => ['exclude' => 0, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.external_source', 'config' => ['type' => 'input', 'size' => 255, 'eval' => 'trim', 'wizards' => ['_PADDING' => 2, 'link' => ['type' => 'popup', 'title' => 'Link', 'icon' => 'link_popup.gif', 'script' => 'browse_links.php?mode=wizard', 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1']]]], 'height' => ['exclude' => 0, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.height', 'config' => ['type' => 'input', 'size' => 4, 'eval' => 'int']], 'width' => ['exclude' => 0, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.width', 'config' => ['type' => 'input', 'size' => 4, 'eval' => 'int']], 'subtitles' => ['exclude' => 0, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.subtitles', 'config' => ['type' => 'inline', 'languageMode' => 'inherit', 'foreign_table' => 'tx_sschhtml5videoplayer_domain_model_subtitle', 'foreign_field' => 'parentid', 'foreign_sortby' => 'sorting', 'foreign_table_field' => 'parenttable', 'maxitems' => 100, 'behaviour' => ['localizationMode' => 'select', 'localizeChildrenAtParentLocalization' => 1], 'appearance' => ['showPossibleLocalizationRecords' => 1, 'showAllLocalizationLink' => 1, 'showSynchronizationLink' => 1]]], 'versions' => ['exclude' => 0, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.versions', 'config' => ['type' => 'inline', 'languageMode' => 'inherit', 'foreign_table' => 'tx_sschhtml5videoplayer_domain_model_video', 'foreign_field' => 'parentid', 'foreign_sortby' => 'sorting', 'foreign_table_field' => 'parenttable', 'maxitems' => 100, 'behaviour' => ['localizationMode' => 'select', 'localizeChildrenAtParentLocalization' => 1], 'appearance' => ['showPossibleLocalizationRecords' => 1, 'showAllLocalizationLink' => 1, 'showSynchronizationLink' => 1]]], 'parentid' => ['config' => ['type' => 'passthrough']], 'parenttable' => ['config' => ['type' => 'passthrough']], 'related' => ['exclude' => 0, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.related', 'config' => ['type' => 'select', 'foreign_table' => 'tx_sschhtml5videoplayer_domain_model_video', 'foreign_table_where' => ' ORDER BY tx_sschhtml5videoplayer_domain_model_video.title ASC', 'size' => 5, 'autoSizeMax' => 25, 'minitems' => 0, 'maxitems' => 50, 'MM' => 'tx_sschhtml5videoplayer_video_video_mm']], 'single_pid' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.single_pid', 'config' => ['type' => 'group', 'internal_type' => 'db', 'allowed' => 'pages', 'size' => '1', 'maxitems' => '1', 'minitems' => '0', 'show_thumbs' => '1', 'wizards' => ['suggest' => ['type' => 'suggest']]]], 'categories' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_audio.categories', 'config' => ['type' => 'select', 'renderMode' => 'tree', 'treeConfig' => ['parentField' => 'parent', 'appearance' => ['showHeader' => true, 'allowRecursiveMode' => true, 'expandAll' => true, 'maxLevels' => 99]], 'MM' => 'sys_category_record_mm', 'MM_match_fields' => ['fieldname' => 'categories', 'tablenames' => 'tx_sschhtml5videoplayer_domain_model_video'], 'MM_opposite_field' => 'items', 'foreign_table' => 'sys_category', 'foreign_table_where' => ' AND (sys_category.sys_language_uid = 0 OR sys_category.l10n_parent = 0) ORDER BY sys_category.sorting', 'size' => 10, 'autoSizeMax' => 20, 'minitems' => 0, 'maxitems' => 20]], 'downloads' => $downloadsTca, 'images' => $imagesTca]];
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_sschhtml5videoplayer_domain_model_audio');
return ['ctrl' => ['title' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_audio', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => true, 'versioningWS' => 2, 'versioning_followPages' => true, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'delete' => 'deleted', 'enablecolumns' => ['disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'], 'iconfile' => TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ssch_html5videoplayer') . 'Resources/Public/Icons/tx_sschhtml5videoplayer_domain_model_audio.gif'], 'interface' => ['showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, audio_source, image'], 'types' => ['1' => ['showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, title, image, description;;;richtext[paste|bold|italic|underline|formatblock|class|left|center|right|orderedlist|unorderedlist|outdent|indent|link|image]:rte_transform[mode=ts], audio_source, --div--;LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_audio.categories, categories, --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,starttime, endtime']], 'palettes' => ['1' => ['showitem' => '']], 'columns' => ['sys_language_uid' => ['exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language', 'config' => ['type' => 'select', 'foreign_table' => 'sys_language', 'foreign_table_where' => 'ORDER BY sys_language.title', 'items' => [['LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1], ['LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0]]]], 'l10n_parent' => ['displayCond' => 'FIELD:sys_language_uid:>:0', 'exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent', 'config' => ['type' => 'select', 'items' => [['', 0]], 'foreign_table' => 'tx_sschhtml5videoplayer_domain_model_audio', 'foreign_table_where' => 'AND tx_sschhtml5videoplayer_domain_model_audio.pid=###CURRENT_PID### AND tx_sschhtml5videoplayer_domain_model_audio.sys_language_uid IN (-1,0)']], 'l10n_diffsource' => ['config' => ['type' => 'passthrough']], 't3ver_label' => ['label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel', 'config' => ['type' => 'input', 'size' => 30, 'max' => 255]], 'hidden' => ['exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden', 'config' => ['type' => 'check']], 'starttime' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime', 'config' => ['type' => 'input', 'size' => 13, 'max' => 20, 'eval' => 'datetime', 'checkbox' => 0, 'default' => 0, 'range' => ['lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))]]], 'endtime' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime', 'config' => ['type' => 'input', 'size' => 13, 'max' => 20, 'eval' => 'datetime', 'checkbox' => 0, 'default' => 0, 'range' => ['lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))]]], 'title' => ['exclude' => 1, 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_audio.title', 'config' => ['type' => 'input', 'size' => 30, 'eval' => 'trim,required']], 'description' => ['exclude' => 1, 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_video.description', 'config' => ['type' => 'text', 'cols' => 40, 'rows' => 15, 'wizards' => ['_PADDING' => 2, 'RTE' => ['notNewRecords' => 1, 'RTEonly' => 1, 'type' => 'script', 'title' => 'Full screen Rich Text Editing|Formatteret redigering i hele vinduet', 'icon' => 'wizard_rte2.gif', 'script' => 'wizard_rte.php']]]], 'audio_source' => ['exclude' => 1, 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_audio.audio_source', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('$(field_name)', ['maxitems' => 1], 'mp3')], 'image' => ['exclude' => 1, 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_audio.image', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('image', ['maxitems' => 1], $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])], 'categories' => ['exclude' => 1, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:ssch_html5videoplayer/Resources/Private/Language/locallang_db.xlf:tx_sschhtml5videoplayer_domain_model_audio.categories', 'config' => ['type' => 'select', 'renderMode' => 'tree', 'treeConfig' => ['parentField' => 'parent', 'appearance' => ['showHeader' => true, 'allowRecursiveMode' => true, 'expandAll' => true, 'maxLevels' => 99]], 'MM' => 'sys_category_record_mm', 'MM_match_fields' => ['fieldname' => 'categories', 'tablenames' => 'tx_sschhtml5videoplayer_domain_model_audio'], 'MM_opposite_field' => 'items', 'foreign_table' => 'sys_category', 'foreign_table_where' => ' AND (sys_category.sys_language_uid = 0 OR sys_category.l10n_parent = 0) ORDER BY sys_category.sorting', 'size' => 10, 'autoSizeMax' => 20, 'minitems' => 0, 'maxitems' => 20]]]];
 /**
  * Returns icon for "no-edit" of a record.
  * Basically, the point is to signal that this record could have had an edit link if the circumstances were right. A placeholder for the regular edit icon...
  *
  * @param	string		Label key from LOCAL_LANG
  * @return	string		IMG tag for icon.
  */
 function noEditIcon($reason)
 {
     switch ($reason) {
         case 1:
             $label = $GLOBALS['LANG']->getLL('noEditPagePerms', 1);
             break;
         case 2:
             $label = $GLOBALS['LANG']->getLL('noEditCategories', 1);
             break;
     }
     $img = TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('tt_news') . 'res/noedit_' . $reason . '.gif';
     $icon = '<img' . \TYPO3\CMS\Backend\Utility\IconUtility::skinImg($this->backPath, $img) . ' title="' . $label . '" alt="" />';
     return $icon;
 }
Esempio n. 18
-1
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Winkel.' . $_EXTKEY, 'Pi1', 'Winkel TradeShow');
$pluginSignature = str_replace('_', '', $_EXTKEY) . '_' . pi1;
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_' . pi1 . '.xml');
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Winkel Trade Show');
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_winkeltradeshow_domain_model_tradeshow', 'EXT:winkel_tradeshow/Resources/Private/Language/locallang_csh_tx_winkeltradeshow_domain_model_tradeshow.xlf');
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_winkeltradeshow_domain_model_tradeshow');
$TCA['tx_winkeltradeshow_domain_model_tradeshow'] = array('ctrl' => array('title' => 'LLL:EXT:winkel_tradeshow/Resources/Private/Language/locallang_db.xlf:tx_winkeltradeshow_domain_model_tradeshow', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'sortby' => 'sorting', 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => 'title,start_trade_show,end_trade_show,continent_trade_show,country_trade_show,city_trade_show,logo_trade_show,address_trade_show,url_trade_show,contact_trade_show,description_trade_show,google_coordinates,', 'dynamicConfigFile' => TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/TradeShow.php', 'iconfile' => TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_winkeltradeshow_domain_model_tradeshow.gif'));