本文整理汇总了PHP中t3lib_extMgm::addTypoScriptSetup方法的典型用法代码示例。如果您正苦于以下问题:PHP t3lib_extMgm::addTypoScriptSetup方法的具体用法?PHP t3lib_extMgm::addTypoScriptSetup怎么用?PHP t3lib_extMgm::addTypoScriptSetup使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类t3lib_extMgm
的用法示例。
在下文中一共展示了t3lib_extMgm::addTypoScriptSetup方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$TCA['tt_news'] = array('ctrl' => array('title' => 'LLL:EXT:tt_news/locallang_tca.xml:tt_news', 'label' => $confArr['label'] ? $confArr['label'] : 'title', 'label_alt' => $confArr['label_alt'] . ($confArr['label_alt2'] ? ',' . $confArr['label_alt2'] : ''), 'label_alt_force' => $confArr['label_alt_force'], 'default_sortby' => 'ORDER BY datetime DESC', 'prependAtCopy' => $confArr['prependAtCopy'] ? 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy' : '', 'versioningWS' => TRUE, 'versioning_followPages' => TRUE, 'origUid' => 't3_origuid', 'shadowColumnsForNewPlaceholders' => 'sys_language_uid,l18n_parent,starttime,endtime,fe_group', 'dividers2tabs' => TRUE, 'useColumnsForDefaultValues' => 'type', 'transOrigPointerField' => 'l18n_parent', 'transOrigDiffSourceField' => 'l18n_diffsource', 'languageField' => 'sys_language_uid', 'crdate' => 'crdate', 'tstamp' => 'tstamp', 'delete' => 'deleted', 'type' => 'type', 'cruser_id' => 'cruser_id', 'editlock' => 'editlock', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime', 'fe_group' => 'fe_group'), 'typeicon_column' => 'type', 'typeicons' => array('1' => t3lib_extMgm::extRelPath($_EXTKEY) . 'res/gfx/tt_news_article.gif', '2' => t3lib_extMgm::extRelPath($_EXTKEY) . 'res/gfx/tt_news_exturl.gif'), 'thumbnail' => 'image', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'res/gfx/ext_icon.gif', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php'));
#$category_OrderBy = $confArr['category_OrderBy'];
$TCA['tt_news_cat'] = array('ctrl' => array('title' => 'LLL:EXT:tt_news/locallang_tca.xml:tt_news_cat', 'label' => 'title', 'tstamp' => 'tstamp', 'delete' => 'deleted', 'default_sortby' => 'ORDER BY uid', 'treeParentField' => 'parent_category', 'dividers2tabs' => TRUE, 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime', 'fe_group' => 'fe_group'), 'hideAtCopy' => true, 'mainpalette' => '2,10', 'crdate' => 'crdate', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'res/gfx/tt_news_cat.gif', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php'));
// load tt_content to $TCA array
t3lib_div::loadTCA('tt_content');
// remove some fields from the tt_content content element
$TCA['tt_content']['types']['list']['subtypes_excludelist'][9] = 'layout,select_key,pages,recursive';
// add FlexForm field to tt_content
$TCA['tt_content']['types']['list']['subtypes_addlist'][9] = 'pi_flexform';
// add tt_news to the "insert plugin" content element (list_type = 9)
t3lib_extMgm::addPlugin(array('LLL:EXT:tt_news/locallang_tca.xml:tt_news', 9));
t3lib_extMgm::addTypoScriptSetup('
includeLibs.ts_news = EXT:tt_news/pi/class.tx_ttnews.php
plugin.tt_news = USER
plugin.tt_news {
userFunc = tx_ttnews->main_news
# validate some configuration values and display a message if errors have been found
enableConfigValidation = 1
}
');
// initialize static extension templates
t3lib_extMgm::addStaticFile($_EXTKEY, 'pi/static/ts_new/', 'News settings');
t3lib_extMgm::addStaticFile($_EXTKEY, 'pi/static/css/', 'News CSS-styles');
//t3lib_extMgm::addStaticFile($_EXTKEY,'pi/static/ts_old/','table-based tmpl');
t3lib_extMgm::addStaticFile($_EXTKEY, 'pi/static/rss_feed/', 'News feeds (RSS,RDF,ATOM)');
// allow news and news-category records on normal pages
t3lib_extMgm::allowTableOnStandardPages('tt_news_cat');
t3lib_extMgm::allowTableOnStandardPages('tt_news');
// add the tt_news record to the insert records content element
t3lib_extMgm::addToInsertRecords('tt_news');
// switch the XML files for the FlexForm depending on if "use StoragePid"(general record Storage Page) is set or not.