当前位置: 首页>>代码示例>>PHP>>正文


PHP ExtensionManager::allowTableOnStandardPages方法代码示例

本文整理汇总了PHP中TYPO3\CMS\Core\Extension\ExtensionManager::allowTableOnStandardPages方法的典型用法代码示例。如果您正苦于以下问题:PHP ExtensionManager::allowTableOnStandardPages方法的具体用法?PHP ExtensionManager::allowTableOnStandardPages怎么用?PHP ExtensionManager::allowTableOnStandardPages使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TYPO3\CMS\Core\Extension\ExtensionManager的用法示例。


在下文中一共展示了ExtensionManager::allowTableOnStandardPages方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// Add static template for Click-enlarge rendering
\TYPO3\CMS\Core\Extension\ExtensionManager::addStaticFile($_EXTKEY, 'static/clickenlarge/', 'Clickenlarge Rendering');
// Add configuration of soft references on image tags in RTE content
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'hooks/softref/ext_tables.php';
// Add acronyms table
$GLOBALS['TCA']['tx_rtehtmlarea_acronym'] = array('ctrl' => array('title' => 'LLL:EXT:rtehtmlarea/locallang_db.xml:TYPO3\\CMS\\Rtehtmlarea\\Extension\\Acronym', 'label' => 'term', 'default_sortby' => 'ORDER BY term', 'sortby' => 'sorting', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'dynamicConfigFile' => \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'tca.php', 'iconfile' => \TYPO3\CMS\Core\Extension\ExtensionManager::extRelPath($_EXTKEY) . 'extensions/Acronym/skin/images/acronym.gif'));
\TYPO3\CMS\Core\Extension\ExtensionManager::allowTableOnStandardPages('tx_rtehtmlarea_acronym');
\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('tx_rtehtmlarea_acronym', 'EXT:' . $_EXTKEY . '/locallang_csh_abbreviation.xml');
// Add contextual help files
$htmlAreaRteContextHelpFiles = array('General' => 'EXT:' . $_EXTKEY . '/locallang_csh.xlf', 'Acronym' => 'EXT:' . $_EXTKEY . '/extensions/Acronym/locallang_csh.xlf', 'EditElement' => 'EXT:' . $_EXTKEY . '/extensions/EditElement/locallang_csh.xlf', 'Language' => 'EXT:' . $_EXTKEY . '/extensions/Language/locallang_csh.xlf', 'MicrodataSchema' => 'EXT:' . $_EXTKEY . '/extensions/MicrodataSchema/locallang_csh.xlf', 'PlainText' => 'EXT:' . $_EXTKEY . '/extensions/PlainText/locallang_csh.xlf', 'RemoveFormat' => 'EXT:' . $_EXTKEY . '/extensions/RemoveFormat/locallang_csh.xlf', 'TableOperations' => 'EXT:' . $_EXTKEY . '/extensions/TableOperations/locallang_csh.xlf');
foreach ($htmlAreaRteContextHelpFiles as $key => $file) {
    \TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('xEXT_' . $_EXTKEY . '_' . $key, $file);
}
unset($htmlAreaRteContextHelpFiles);
// Extend TYPO3 User Settings Configuration
if (TYPO3_MODE === 'BE' && \TYPO3\CMS\Core\Extension\ExtensionManager::isLoaded('setup') && is_array($GLOBALS['TYPO3_USER_SETTINGS'])) {
    $GLOBALS['TYPO3_USER_SETTINGS']['columns'] = array_merge($GLOBALS['TYPO3_USER_SETTINGS']['columns'], array('rteWidth' => array('type' => 'text', 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteWidth', 'csh' => 'xEXT_rtehtmlarea_General:rteWidth'), 'rteHeight' => array('type' => 'text', 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteHeight', 'csh' => 'xEXT_rtehtmlarea_General:rteHeight'), 'rteResize' => array('type' => 'check', 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteResize', 'csh' => 'xEXT_rtehtmlarea_General:rteResize'), 'rteMaxHeight' => array('type' => 'text', 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteMaxHeight', 'csh' => 'xEXT_rtehtmlarea_General:rteMaxHeight'), 'rteCleanPasteBehaviour' => array('type' => 'select', 'label' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:rteCleanPasteBehaviour', 'items' => array('plainText' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:plainText', 'pasteStructure' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:pasteStructure', 'pasteFormat' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:pasteFormat'), 'csh' => 'xEXT_rtehtmlarea_PlainText:behaviour')));
    $GLOBALS['TYPO3_USER_SETTINGS']['showitem'] .= ',--div--;LLL:EXT:rtehtmlarea/locallang.xml:rteSettings,rteWidth,rteHeight,rteResize,rteMaxHeight,rteCleanPasteBehaviour';
}
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:24,代码来源:ext_tables.php

示例2: array

$TCA['sys_file_storage'] = array('ctrl' => array('title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage', 'label' => 'name', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'default_sortby' => 'ORDER BY name', 'delete' => 'deleted', 'rootLevel' => TRUE, 'versioningWS_alwaysAllowLiveEdit' => TRUE, 'enablecolumns' => array('disabled' => 'hidden'), 'dividers2tabs' => TRUE, 'requestUpdate' => 'driver', 'iconfile' => '_icon_ftp.gif', 'dynamicConfigFile' => 'T3LIB:tca_sys_file_storage.php'));
/**
 * Table "sys_file":
 * Represents all files that are tracked by TYPO3
 * which are assets, single entries of files with additional metadata
 */
$TCA['sys_file'] = array('ctrl' => array('title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file', 'label' => 'name', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'type' => 'type', 'hideTable' => TRUE, 'rootLevel' => TRUE, 'versioningWS' => TRUE, 'origUid' => 't3_origuid', 'default_sortby' => 'ORDER BY crdate DESC', 'delete' => 'deleted', 'dividers2tabs' => TRUE, 'typeicon_column' => 'type', 'typeicon_classes' => array('1' => 'mimetypes-text-text', '2' => 'mimetypes-media-image', '3' => 'mimetypes-media-audio', '4' => 'mimetypes-media-video', '5' => 'mimetypes-application', 'default' => 'mimetypes-other-other'), 'dynamicConfigFile' => 'T3LIB:tca_sys_file.php'));
/**
 * Table "sys_file_reference":
 * Is a single usage of a sys_file record somewhere in the installation
 * Is kind of like a MM-table between sys_file and e.g. tt_content:image that
 * is shown up in TCA so additional metadata can be added for this specific
 * kind of usage
 */
$TCA['sys_file_reference'] = array('ctrl' => array('title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference', 'label' => 'uid', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'type' => 'uid_local:type', 'hideTable' => TRUE, 'rootLevel' => TRUE, 'sortby' => 'sorting', 'delete' => 'deleted', 'versioningWS' => TRUE, 'shadowColumnsForNewPlaceholders' => 'tablenames,fieldname,uid_local,uid_foreign', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => 'T3LIB:tca_sys_file_reference.php'));
\TYPO3\CMS\Core\Extension\ExtensionManager::allowTableOnStandardPages('sys_file_reference');
/**
 * Table "sys_file_collection":
 * Represents a list of sys_file records
 */
$TCA['sys_file_collection'] = array('ctrl' => array('title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'versioningWS' => TRUE, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'default_sortby' => 'ORDER BY crdate', 'delete' => 'deleted', 'rootlevel' => -1, 'type' => 'type', 'typeicon_column' => 'type', 'typeicon_classes' => array('default' => 'apps-filetree-folder-media', 'static' => 'apps-clipboard-images', 'folder' => 'apps-filetree-folder-media'), 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'dynamicConfigFile' => 'T3LIB:tca_sys_file_collection.php'));
t3lib_extMgm::allowTableOnStandardPages('sys_file_collection');
/**
 * Table "sys_history":
 * Holds history records, the config part is defined in t3lib/stddb/tbl_be.php
 */
$TCA['sys_history'] = array('ctrl' => array('title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_history', 'label' => 'tablename', 'tstamp' => 'tstamp', 'adminOnly' => TRUE, 'rootLevel' => TRUE, 'hideTable' => TRUE, 'default_sortby' => 'uid DESC', 'dynamicConfigFile' => 'T3LIB:tbl_be.php'));
/**
 * Table "sys_languages":
 * Defines possible languages used for translation of records in the system
 * This is only the 'header' part (ctrl). The full configuration is found
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:31,代码来源:tables.php


注:本文中的TYPO3\CMS\Core\Extension\ExtensionManager::allowTableOnStandardPages方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。