|
TYPO3 API
SVNRelease
|
00001 <?php 00002 if (!defined ('TYPO3_MODE')) die ('Access denied.'); 00003 00004 // Add static template for Click-enlarge rendering 00005 t3lib_extMgm::addStaticFile($_EXTKEY,'static/clickenlarge/','Clickenlarge Rendering'); 00006 00007 // Add acronyms table 00008 $TCA['tx_rtehtmlarea_acronym'] = Array ( 00009 'ctrl' => Array ( 00010 'title' => 'LLL:EXT:rtehtmlarea/locallang_db.xml:tx_rtehtmlarea_acronym', 00011 'label' => 'term', 00012 'default_sortby' => 'ORDER BY term', 00013 'sortby' => 'sorting', 00014 'delete' => 'deleted', 00015 'enablecolumns' => Array ( 00016 'disabled' => 'hidden', 00017 'starttime' => 'starttime', 00018 'endtime' => 'endtime', 00019 ), 00020 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php', 00021 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'extensions/Acronym/skin/images/acronym.gif', 00022 ), 00023 ); 00024 t3lib_extMgm::allowTableOnStandardPages('tx_rtehtmlarea_acronym'); 00025 t3lib_extMgm::addLLrefForTCAdescr('tx_rtehtmlarea_acronym','EXT:' . $_EXTKEY . '/locallang_csh_abbreviation.xml'); 00026 00027 // Add contextual help files 00028 $htmlAreaRteContextHelpFiles = array( 00029 'General' => 'EXT:' . $_EXTKEY . '/locallang_csh.xml', 00030 'Acronym' => 'EXT:' . $_EXTKEY . '/extensions/Acronym/locallang_csh.xml', 00031 'EditElement' => 'EXT:' . $_EXTKEY . '/extensions/EditElement/locallang_csh.xml', 00032 'Language' => 'EXT:' . $_EXTKEY . '/extensions/Language/locallang_csh.xml', 00033 'PlainText' => 'EXT:' . $_EXTKEY . '/extensions/PlainText/locallang_csh.xml', 00034 'RemoveFormat' => 'EXT:' . $_EXTKEY . '/extensions/RemoveFormat/locallang_csh.xml', 00035 ); 00036 foreach ($htmlAreaRteContextHelpFiles as $key => $file) { 00037 t3lib_extMgm::addLLrefForTCAdescr('xEXT_' . $_EXTKEY . '_' . $key, $file); 00038 } 00039 unset($htmlAreaRteContextHelpFiles); 00040 00041 // Extend TYPO3 User Settings Configuration 00042 if (TYPO3_MODE === 'BE' && t3lib_extMgm::isLoaded('setup') && is_array($GLOBALS['TYPO3_USER_SETTINGS'])) { 00043 $GLOBALS['TYPO3_USER_SETTINGS']['columns'] = array_merge( 00044 $GLOBALS['TYPO3_USER_SETTINGS']['columns'], 00045 array( 00046 'rteWidth' => array( 00047 'type' => 'text', 00048 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteWidth', 00049 'csh' => 'xEXT_rtehtmlarea_General:rteWidth', 00050 ), 00051 'rteHeight' => array( 00052 'type' => 'text', 00053 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteHeight', 00054 'csh' => 'xEXT_rtehtmlarea_General:rteHeight', 00055 ), 00056 'rteResize' => array( 00057 'type' => 'check', 00058 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteResize', 00059 'csh' => 'xEXT_rtehtmlarea_General:rteResize', 00060 ), 00061 'rteMaxHeight' => array( 00062 'type' => 'text', 00063 'label' => 'LLL:EXT:rtehtmlarea/locallang.xml:rteMaxHeight', 00064 'csh' => 'xEXT_rtehtmlarea_General:rteMaxHeight', 00065 ), 00066 'rteCleanPasteBehaviour' => array( 00067 'type' => 'select', 00068 'label' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:rteCleanPasteBehaviour', 00069 'items' => array( 00070 'plainText' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:plainText', 00071 'pasteStructure' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:pasteStructure', 00072 'pasteFormat' => 'LLL:EXT:rtehtmlarea/htmlarea/plugins/PlainText/locallang.xml:pasteFormat', 00073 ), 00074 'csh' => 'xEXT_rtehtmlarea_PlainText:behaviour', 00075 ), 00076 ) 00077 ); 00078 $GLOBALS['TYPO3_USER_SETTINGS']['showitem'] .= ',--div--;LLL:EXT:rtehtmlarea/locallang.xml:rteSettings,rteWidth,rteHeight,rteResize,rteMaxHeight,rteCleanPasteBehaviour'; 00079 } 00080 ?>
1.8.0