/** * Loads php files containing classes or interfaces found in the classes directory of * an extension. * * @param string $className: Name of the class/interface to load * @uses t3lib_extMgm::extPath() * @return void */ public static function loadClass($className) { $classNameParts = explode('_', $className, 3); $extensionKey = Tx_Extbase_Utility_Extension::convertCamelCaseToLowerCaseUnderscored($classNameParts[1]); if (t3lib_extMgm::isLoaded($extensionKey)) { $classFilePathAndName = t3lib_extMgm::extPath($extensionKey) . 'Classes/' . strtr($classNameParts[2], '_', '/') . '.php'; if (file_exists($classFilePathAndName)) { require_once $classFilePathAndName; } } }
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'List', array('Member' => 'list'), array('Member' => 'list')); // Import members $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx_T3oMembership_Task_ImportMembersTask'] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_t3omembership_task_importmemberstask.name', 'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_t3omembership_task_importmemberstask.description', 'additionalFields' => 'tx_t3omembership_task_importmembers_additionalfieldprovider');
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Pi1', 'Simple calendar using Extbase'); Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Pi2', 'Calendar event submission for users'); //if(TYPO3_MODE === 'BE') { // Tx_Extbase_Utility_Extension::registerModule( // $_EXTKEY, // 'web', // 'tx_czsimplecal_m1', // '', // array( // 'Event' => 'backendIndex' // ), // array( // 'access' => 'user,group', // 'icon' => 'EXT:cz_simple_cal/ext_icon.gif', // 'labels' => 'LLL:EXT:'.$_EXTKEY.'/Resources/Private/Language/locallang_mod.xml' // ) // ); // //} // default typoscript t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript/main', 'Simple calendar using Extbase'); t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript/customaddress', 'Use custom address extension'); t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript/ics', 'ICS configuration'); // init flexform for plugin $TCA['tt_content']['types']['list']['subtypes_addlist']['czsimplecal_pi1'] = 'pi_flexform'; $TCA['tt_content']['types']['list']['subtypes_excludelist']['czsimplecal_pi1'] = 'layout,select_key';
$TCA['tt_content']['columns']['list_type']['config']['items'][] = array('Blog Example', '--div--', t3lib_extMgm::extRelPath($_EXTKEY) . 'ext_icon.gif'); Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'BlogList', 'List of Blogs (BlogExample)'); Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'PostList', 'List of Posts (BlogExample)'); Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'PostSingle', 'Single Post (BlogExample)'); Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'BlogAdmin', 'Admin Plugin (BlogExample)'); $TCA['tt_content']['columns']['list_type']['config']['items'][] = array('', '--div--'); $pluginSignature = strtolower($extensionName) . '_postlist'; $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'select_key'; $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform,recursive'; t3lib_extMgm::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_list.xml'); } if (TYPO3_MODE === 'BE') { /** * Registers a Backend Module */ Tx_Extbase_Utility_Extension::registerModule($_EXTKEY, 'web', 'tx_blogexample_m1', '', array('Blog' => 'index,new,create,delete,deleteAll,edit,update,populate', 'Post' => 'index,show,new,create,delete,edit,update', 'Comment' => 'create,delete,deleteAll'), array('access' => 'user,group', 'icon' => 'EXT:blog_example/ext_icon.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml')); } /** * Add labels for context sensitive help (CSH) */ t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_BlogExampleTxBlogexampleM1', 'EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_csh.xml'); t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'BlogExample setup'); t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript/DefaultStyles', 'BlogExample CSS Styles (optional)'); t3lib_extMgm::allowTableOnStandardPages('tx_blogexample_domain_model_blog'); $TCA['tx_blogexample_domain_model_blog'] = array('ctrl' => array('title' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog', 'label' => 'title', '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' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Blog.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_blogexample_domain_model_blog.gif')); t3lib_extMgm::allowTableOnStandardPages('tx_blogexample_domain_model_post'); $TCA['tx_blogexample_domain_model_post'] = array('ctrl' => array('title' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_post', 'label' => 'title', 'label_alt' => 'author', 'label_alt_force' => TRUE, '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' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Post.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_blogexample_domain_model_post.gif')); t3lib_extMgm::allowTableOnStandardPages('tx_blogexample_domain_model_comment'); $TCA['tx_blogexample_domain_model_comment'] = array('ctrl' => array('title' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_comment', 'label' => 'date', 'label_alt' => 'author', 'label_alt_force' => TRUE, 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Comment.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_blogexample_domain_model_comment.gif')); t3lib_extMgm::allowTableOnStandardPages('tx_blogexample_domain_model_person'); $TCA['tx_blogexample_domain_model_person'] = array('ctrl' => array('title' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_person', 'label' => 'lastname', 'label_alt' => 'firstname', 'label_alt_force' => TRUE, 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'versioningWS' => 2, 'versioning_followPages' => true, 'origUid' => 't3_origuid', 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Person.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_blogexample_domain_model_person.gif'));
<?php //////////////////////////////////////////////////// // // INDEX // // Plugins // SC_OPTIONS if (!defined('TYPO3_MODE')) { die('Access denied.'); } Tx_Extbase_Utility_Extension::configurePlugin('Netzmacher.' . $_EXTKEY, 'Pi1', array('Immo24' => 'plugin, submit'), array('Immo24' => 'plugin, submit')); //////////////////////////////////////////////////// // // Plugins: Extending TypoScript from static template uid=43 to set up userdefined tag $cached = false; t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/marketplaces/ebay/dev/GetCategories/class.tx_deal_piMarketplacesEbaySamplesPhpGetCategories.php', '_piMarketplacesEbaySamplesPhpGetCategories', 'list_type', $cached); t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/marketplaces/ebay/dev/GettingStarted_PHP_XML_XML/class.tx_deal_piMarketplacesEbaySamplesPhpGettingstarted.php', '_piMarketplacesEbaySamplesPhpGettingstarted', 'list_type', $cached); // Plugins: Extending TypoScript from static template uid=43 to set up userdefined tag //////////////////////////////////////////////////// // // SC_OPTIONS $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:deal/lib/tcemainprocdm/class.tx_deal_tcemainprocdmbeforestart.php:tx_deal_tcemainprocdmbeforestart'; //$GLOBALS ['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:deal/lib/tcemainprocdm/class.tx_deal_tcemainprocdmfieldarray.php:tx_deal_tcemainprocdmfieldarray'; //$GLOBALS[ 'TYPO3_CONF_VARS' ][ 'SC_OPTIONS' ][ 'scheduler' ][ 'tasks' ][ 'Netzmacher\\Deal\\Scheduler\\Immo24CleanupExecute' ] = array( // 'extension' => $_EXTKEY, // 'title' => 'LLL:EXT:' . $_EXTKEY . '/Classes/Scheduler/locallang.xlf:immo24.export.name', // 'description' => 'LLL:EXT:' . $_EXTKEY . '/Classes/Scheduler/locallang.xlf:immo24.cleanup.description', // 'additionalFields' => 'Netzmacher\\Deal\\Scheduler\\Immo24CleanupFieldProvider' //); $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Netzmacher\\Deal\\Scheduler\\Immo24TaskExecute'] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:' . $_EXTKEY . '/Classes/Scheduler/locallang.xlf:immo24.export.name', 'description' => 'LLL:EXT:' . $_EXTKEY . '/Classes/Scheduler/locallang.xlf:immo24.export.description', 'additionalFields' => 'Netzmacher\\Deal\\Scheduler\\Immo24TaskFieldProvider');
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Pi1', 'Flickr Feed integration'); t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Default config for ' . $_EXTKEY); $extensionName = strtolower(t3lib_div::underscoredToLowerCamelCase($_EXTKEY)); $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$extensionName . '_pi1'] = 'layout,select_key,recursive,pages'; $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$extensionName . '_pi1'] = 'pi_flexform'; t3lib_extMgm::addPiFlexFormValue($extensionName . '_pi1', 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_list.xml');
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Petition', 'Petitions Form'); $pluginSignature = str_replace('_', '', $_EXTKEY) . '_petition'; $TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform'; t3lib_extMgm::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_default.xml'); Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'List', 'Petitions List'); $pluginSignature = str_replace('_', '', $_EXTKEY) . '_list'; $TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform'; t3lib_extMgm::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_list.xml'); t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Petition'); t3lib_extMgm::addLLrefForTCAdescr('tx_petition_domain_model_petitionsentry', 'EXT:petition/Resources/Private/Language/locallang_csh_tx_petition_domain_model_petitionsentry.xml'); t3lib_extMgm::allowTableOnStandardPages('tx_petition_domain_model_petitionsentry'); $TCA['tx_petition_domain_model_petitionsentry'] = array('ctrl' => array('title' => 'LLL:EXT:petition/Resources/Private/Language/locallang_db.xml:tx_petition_domain_model_petitionsentry', 'label' => 'firstname', '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' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => 'firstname,lastname,emailadress,country,town,zip,street,petition,', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/PetitionsEntry.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_petition_domain_model_petitionsentry.gif')); t3lib_extMgm::addLLrefForTCAdescr('tx_petition_domain_model_petition', 'EXT:petition/Resources/Private/Language/locallang_csh_tx_petition_domain_model_petition.xml'); t3lib_extMgm::allowTableOnStandardPages('tx_petition_domain_model_petition'); $TCA['tx_petition_domain_model_petition'] = array('ctrl' => array('title' => 'LLL:EXT:petition/Resources/Private/Language/locallang_db.xml:tx_petition_domain_model_petition', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'petitionsentries' => 'petitionsentries', '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,', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Petition.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_petition_domain_model_petition.gif'));
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } // avoid that this block is loaded in the frontend or within the upgrade-wizards if (TYPO3_MODE == 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) { /** * Registers a Backend Module */ Tx_Extbase_Utility_Extension::registerModule($_EXTKEY, 'web', 'workspaces', 'before:info', array('Review' => 'index,fullIndex,singleIndex', 'Preview' => 'index,newPage'), array('access' => 'user,group', 'icon' => 'EXT:workspaces/Resources/Public/Images/moduleicon.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml', 'navigationComponentId' => 'typo3-pagetree')); // register ExtDirect $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect']['TYPO3.Workspaces.ExtDirect'] = t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/Server.php:tx_Workspaces_ExtDirect_Server'; $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect']['TYPO3.Workspaces.ExtDirectActions'] = t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/ActionHandler.php:tx_Workspaces_ExtDirect_ActionHandler'; $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect']['TYPO3.Workspaces.ExtDirectMassActions'] = t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/MassActionHandler.php:tx_Workspaces_ExtDirect_MassActionHandler'; $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect']['TYPO3.Ajax.ExtDirect.ToolbarMenu'] = t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/ToolbarMenu.php:tx_Workspaces_ExtDirect_ToolbarMenu'; // register the reports statusprovider $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['configuration'][] = 'Tx_Workspaces_Reports_StatusProvider'; } /** * Table "sys_workspace": */ $TCA['sys_workspace'] = array('ctrl' => array('label' => 'title', 'tstamp' => 'tstamp', 'title' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace', 'adminOnly' => 1, 'rootLevel' => 1, 'delete' => 'deleted', 'iconfile' => 'sys_workspace.png', 'typeicon_classes' => array('default' => 'mimetypes-x-sys_workspace'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'versioningWS_alwaysAllowLiveEdit' => true, 'dividers2tabs' => true)); /** * Table "sys_workspace_stage": * Defines single custom stages which are related to sys_workspace table to create complex working processes * This is only the 'header' part (ctrl). The full configuration is found in t3lib/stddb/tbl_be.php */ $TCA['sys_workspace_stage'] = array('ctrl' => array('label' => 'title', 'tstamp' => 'tstamp', 'sortby' => 'sorting', 'title' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace_stage', 'adminOnly' => 1, 'rootLevel' => 1, 'hideTable' => TRUE, 'delete' => 'deleted', 'iconfile' => 'sys_workspace.png', 'typeicon_classes' => array('default' => 'mimetypes-x-sys_workspace'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'versioningWS_alwaysAllowLiveEdit' => true)); // todo move icons to Core sprite or keep them here and remove the todo note ;) $icons = array('sendtonextstage' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Images/version-workspace-sendtonextstage.png', 'sendtoprevstage' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Images/version-workspace-sendtoprevstage.png', 'generatepreviewlink' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Images/generate-ws-preview-link.png');
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } if (TYPO3_MODE === 'BE') { /** * Registers a Backend Module */ Tx_Extbase_Utility_Extension::registerModule($_EXTKEY, 'tools', 'composer', '', array('Package' => 'list, show, new, create, edit, update, delete, install, installAssets'), array('access' => 'user,group', 'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_composer.xml')); } #t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Cundd Composer'); // t3lib_extMgm::addLLrefForTCAdescr('tx_cunddcomposer_domain_model_package', 'EXT:cundd_composer/Resources/Private/Language/locallang_csh_tx_cunddcomposer_domain_model_package.xml'); // t3lib_extMgm::allowTableOnStandardPages('tx_cunddcomposer_domain_model_package'); // $TCA['tx_cunddcomposer_domain_model_package'] = array( // 'ctrl' => array( // 'title' => 'LLL:EXT:cundd_composer/Resources/Private/Language/locallang_db.xml:tx_cunddcomposer_domain_model_package', // 'label' => 'name', // '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' => array( // 'disabled' => 'hidden',
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Flatmgrpay', 'Flat Manager Payment Solution'); t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Flat Manager Payment'); t3lib_extMgm::addLLrefForTCAdescr('tx_flatmgrpay_domain_model_booking', 'EXT:flatmgrpay/Resources/Private/Language/locallang_csh_tx_flatmgrpay_domain_model_booking.xml'); t3lib_extMgm::allowTableOnStandardPages('tx_flatmgrpay_domain_model_booking'); $TCA['tx_flatmgrpay_domain_model_booking'] = array('ctrl' => array('title' => 'LLL:EXT:flatmgrpay/Resources/Private/Language/locallang_db.xml:tx_flatmgrpay_domain_model_booking', 'label' => 'name', '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' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Booking.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_flatmgrpay_domain_model_booking.gif'));
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } // Add module to the BE // Avoid loading the module when in the frontend or the Install Tool if (TYPO3_MODE == 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) { // Register the backend module Tx_Extbase_Utility_Extension::registerModule($_EXTKEY, 'tools', 'svconnector', '', array('Testing' => 'default'), array('access' => 'admin', 'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Images/moduleIcon.png', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml')); }
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Pi1', 'TeamPoint-Supportformular: Formular-Selektor'); Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Pi2', 'TeamPoint-Supportformular: Formular'); Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Pi3', 'TeamPoint-Supportformular: Link zu einem Einzelformular'); t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'TeamPoint-Supportformular'); t3lib_extMgm::addLLrefForTCAdescr('tx_jhesupportform_domain_model_form', 'EXT:jhe_supportform/Resources/Private/Language/locallang_csh_tx_jhesupportform_domain_model_form.xml'); t3lib_extMgm::allowTableOnStandardPages('tx_jhesupportform_domain_model_form'); $TCA['tx_jhesupportform_domain_model_form'] = array('ctrl' => array('title' => 'LLL:EXT:jhe_supportform/Resources/Private/Language/locallang_db.xml:tx_jhesupportform_domain_model_form', 'label' => 'uid', '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' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => '', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Form.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_jhesupportform_domain_model_form.gif')); t3lib_extMgm::addLLrefForTCAdescr('tx_jhesupportform_domain_model_selector', 'EXT:jhe_supportform/Resources/Private/Language/locallang_csh_tx_jhesupportform_domain_model_selector.xml'); t3lib_extMgm::allowTableOnStandardPages('tx_jhesupportform_domain_model_selector'); $TCA['tx_jhesupportform_domain_model_selector'] = array('ctrl' => array('title' => 'LLL:EXT:jhe_supportform/Resources/Private/Language/locallang_db.xml:tx_jhesupportform_domain_model_selector', 'label' => 'uid', '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' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => '', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Selector.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_jhesupportform_domain_model_selector.gif')); $extensionName = strtolower(t3lib_div::underscoredToUpperCamelCase($_EXTKEY)); $pluginName = strtolower('Pi3'); $pluginSignature = $extensionName . '_' . $pluginName; $TCA['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'layout,select_key,pages,recursive'; $TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform'; t3lib_extMgm::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/Flexform/Link.xml');
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } // Avoid loading the module when in the frontend or the Install Tool if (TYPO3_MODE == 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) { // Register the backend module Tx_Extbase_Utility_Extension::registerModule($_EXTKEY, 'user', 'external_import', '', array('Listing' => 'sync,noSync'), array('access' => 'user,group', 'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Images/moduleIcon.png', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml')); }
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } /** * Registers a Plugin to be listed in the Backend. You also have to configure the Dispatcher in ext_localconf.php. */ $extensionName = t3lib_div::underscoredToUpperCamelCase($_EXTKEY); $pluginSignature = strtolower($extensionName) . '_pi1'; Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Pi1', 'List of Agencies'); Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Pi2', 'Create agency profile'); Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Pi3', 'Slider view for case studies'); $TCA['tt_content']['types']['list']['subtypes_addlist']['typo3agencies_pi2'] = 'pi_flexform'; t3lib_extMgm::addPiFlexFormValue('typo3agencies_pi2', 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/Pi2.xml'); $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'layout,select_key,recursive'; #$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'recursive'; t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'TYPO3 References'); /** * TCA configuration */ t3lib_extMgm::allowTableOnStandardPages('tx_typo3agencies_domain_model_reference'); t3lib_extMgm::allowTableOnStandardPages('tx_typo3agencies_domain_model_agency'); $TCA['tx_typo3agencies_domain_model_reference'] = array('ctrl' => array('title' => 'LLL:EXT:typo3_agencies/Resources/Private/Language/locallang_db.xml:tx_typo3agencies_domain_model_reference', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'versioningWS' => 2, 'versioning_followPages' => true, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l18n_parent', 'transOrigDiffSourceField' => 'l18n_diffsource', 'delete' => 'deleted', 'dividers2tabs' => TRUE, 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/tx_typo3agencies_domain_model_reference.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_typo3agencies_domain_model_reference.gif')); $TCA['tx_typo3agencies_domain_model_agency'] = array('ctrl' => array('title' => 'LLL:EXT:typo3_agencies/Resources/Private/Language/locallang_db.xml:tx_typo3agencies_domain_model_agency', 'label' => 'name', 'label_alt' => 'first_name', 'label_alt_force' => 1, 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'default_sortby' => 'name', 'versioningWS' => 2, 'versioning_followPages' => true, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l18n_parent', 'transOrigDiffSourceField' => 'l18n_diffsource', 'delete' => 'deleted', 'dividers2tabs' => TRUE, 'enablecolumns' => array('disabled' => 'hidden', 'endtime' => 'endtime'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/tx_typo3agencies_domain_model_agency.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_typo3agencies_domain_model_agency.gif')); $TCA['tx_typo3agencies_domain_model_industry'] = array('ctrl' => array('title' => 'LLL:EXT:typo3_agencies/Resources/Private/Language/locallang_db.xml:tx_typo3agencies_domain_model_reference.industry', 'label' => 'title', 'default_sortby' => 'title', 'dividers2tabs' => TRUE, 'enablecolumns' => array(), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/tx_typo3agencies_domain_model_industry.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_typo3agencies_domain_model_agency.gif', 'hideTable' => 1, 'is_static' => 1, 'readOnly' => 1)); $TCA['tx_typo3agencies_domain_model_revenue'] = array('ctrl' => array('title' => 'LLL:EXT:typo3_agencies/Resources/Private/Language/locallang_db.xml:tx_typo3agencies_domain_model_reference.revenue', 'label' => 'title', 'default_sortby' => 'sorting', 'dividers2tabs' => TRUE, 'enablecolumns' => array(), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/tx_typo3agencies_domain_model_revenue.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_typo3agencies_domain_model_agency.gif', 'hideTable' => 1, 'is_static' => 1, 'readOnly' => 1)); $TCA['tx_typo3agencies_domain_model_category'] = array('ctrl' => array('title' => 'LLL:EXT:typo3_agencies/Resources/Private/Language/locallang_db.xml:tx_typo3agencies_domain_model_reference.category', 'label' => 'title', 'default_sortby' => 'title', 'dividers2tabs' => TRUE, 'enablecolumns' => array(), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/tx_typo3agencies_domain_model_category.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_typo3agencies_domain_model_agency.gif', 'hideTable' => 1, 'is_static' => 1, 'readOnly' => 1)); $extensionName = t3lib_div::underscoredToUpperCamelCase($_EXTKEY); $pluginSignature = strtolower($extensionName) . '_pi1'; $TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } /** * Sitemap */ require_once t3lib_extMgm::extPath('google_services', 'Classes/Service/SitemapProvider.php'); Tx_GoogleServices_Service_SitemapProvider::addProvider(t3lib_extMgm::extPath('google_services', 'Classes/Service/SitemapProvider/Pages.php'), 'Tx_GoogleServices_Service_SitemapProvider_Pages'); Tx_GoogleServices_Service_SitemapProvider::addProvider(t3lib_extMgm::extPath('google_services', 'Classes/Service/SitemapProvider/News.php'), 'Tx_GoogleServices_Service_SitemapProvider_News'); Tx_GoogleServices_Service_SitemapProvider::addProvider(t3lib_extMgm::extPath('google_services', 'Classes/Service/SitemapProvider/Sitemap.php'), 'Tx_GoogleServices_Service_SitemapProvider_Sitemap'); Tx_GoogleServices_Service_SitemapProvider::addProvider(t3lib_extMgm::extPath('google_services', 'Classes/Service/SitemapProvider/LanguagePages.php'), 'Tx_GoogleServices_Service_SitemapProvider_LanguagePages'); Tx_GoogleServices_Service_SitemapProvider::addProvider(t3lib_extMgm::extPath('google_services', 'Classes/Service/SitemapProvider/FalImages.php'), 'Tx_GoogleServices_Service_SitemapProvider_FalImages'); Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'piSitemap', array('Sitemap' => 'index'), array('Sitemap' => 'index')); Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'piDocument', array('Document' => 'index')); $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info']['googleservices_pisitemap'][] = t3lib_extMgm::extPath('google_services', 'Classes/Hooks/CmsLayout.php') . ':Tx_GoogleServices_Hooks_CmsLayout->renderSitemapPlugin';
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Fligh Weather Station'); Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'pi1', 'Weather Display'); Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'pi1', array('FWS' => 'index'), array('FWS' => 'index'));
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi1', array('EventIndex' => 'dispatch', 'Event' => 'dispatch', 'Category' => 'show'), array()); Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi2', array('EventAdministration' => 'list,new,create,edit,update,delete'), array('EventAdministration' => 'list,new,create,edit,update,delete')); $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx_CzSimpleCal_Scheduler_Index'] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml:tx_czsimplecal_scheduler_index.label', 'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml:tx_czsimplecal_scheduler_index.description', 'additionalFields' => 'tx_czsimplecal_scheduler_index'); // add default pageTSConfig t3lib_extMgm::addPageTSConfig(file_get_contents(t3lib_extMgm::extPath('cz_simple_cal') . 'Configuration/TSconfig/default.txt'));
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi1', array('CountdownCE' => 'index'), array('CountdownCE' => 'index'));
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } $GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$_EXTKEY] = unserialize($_EXTCONF); /** * Configure the Plugin to call the * right combination of Controller and Action according to * the user input (default settings, FlexForm, URL etc.) */ if ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$_EXTKEY]['registerSinglePlugin']) { // fully fletged blog Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi1', array('Blog' => 'index,new,create,delete,deleteAll,edit,update,populate', 'Post' => 'index,show,new,create,delete,edit,update', 'Comment' => 'create,delete'), array('Blog' => 'create,delete,deleteAll,update,populate', 'Post' => 'create,delete,update', 'Comment' => 'create,delete')); } else { // Blog plugins Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'BlogList', array('Blog' => 'index')); // Post plugins Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'PostList', array('Post' => 'index')); Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'PostSingle', array('Post' => 'show', 'Comment' => 'create'), array('Comment' => 'create')); // admin plugins Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'BlogAdmin', array('Blog' => 'new,create,delete,deleteAll,edit,update,populate', 'Post' => 'new,create,delete,edit,update', 'Comment' => 'delete'), array('Blog' => 'create,delete,deleteAll,update,populate', 'Post' => 'create,delete,update', 'Comment' => 'delete')); }
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, '', array('Address' => 'list, show', 'StaticCountry' => 'list, show'), array('Address' => '', 'StaticCountry' => ''));
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi1', array('Selector' => 'list'), array('Selector' => '')); Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi2', array('Form' => 'list,sendmail'), array('Form' => 'list,sendmail')); Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi3', array('Link' => 'list'), array('Link' => 'list'));
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, '', 'test'); t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'temp'); t3lib_extMgm::addLLrefForTCAdescr('tx_temp_domain_model_address', 'EXT:temp/Resources/Private/Language/locallang_csh_tx_temp_domain_model_address.xml'); t3lib_extMgm::allowTableOnStandardPages('tx_temp_domain_model_address'); $TCA['tx_temp_domain_model_address'] = array('ctrl' => array('title' => 'LLL:EXT:temp/Resources/Private/Language/locallang_db.xml:tx_temp_domain_model_address', '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' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => 'title,static_country,', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Address.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_temp_domain_model_address.gif')); $tmp_temp_columns = array('name' => array('exclude' => 0, 'label' => 'LLL:EXT:temp/Resources/Private/Language/locallang_db.xml:tx_temp_domain_model_staticcountry.name', 'config' => array('type' => 'input', 'size' => 30, 'eval' => 'trim'))); $tmp_temp_columns['address'] = array('config' => array('type' => 'passthrough')); t3lib_extMgm::addTCAcolumns('static_countries', $tmp_temp_columns); $TCA['static_countries']['columns'][$TCA['static_countries']['ctrl']['type']]['config']['items'][] = array('LLL:EXT:temp/Resources/Private/Language/locallang_db.xml:static_countries.tx_extbase_type.Tx_Temp_StaticCountry', 'Tx_Temp_StaticCountry'); $TCA['static_countries']['types']['Tx_Temp_StaticCountry']['showitem'] = $TCA['static_countries']['types']['1']['showitem']; $TCA['static_countries']['types']['Tx_Temp_StaticCountry']['showitem'] .= ',--div--;LLL:EXT:temp/Resources/Private/Language/locallang_db.xml:tx_temp_domain_model_staticcountry,'; $TCA['static_countries']['types']['Tx_Temp_StaticCountry']['showitem'] .= 'name';
if (!defined('TYPO3_MODE')) { die('Access denied.'); } /** ********************************************************************************** * Backen-Modul ********************************************************************************** **/ if (TYPO3_MODE === 'BE') { /** * Registers a Backend Module */ Tx_Extbase_Utility_Extension::registerModule($_EXTKEY, 'web', 'tx_kiddognews_m1', '', array('Backend' => 'index,overview'), array('access' => 'admin', 'icon' => 'EXT:kiddog_news/ext_icon.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml')); } /** ********************************************************************************** * Frontend-Plugin ********************************************************************************** **/ Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Pi1', 'News-System'); t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'News-System'); t3lib_extMgm::allowTableOnStandardPages('tx_kiddognews_domain_model_post'); $TCA['tx_kiddognews_domain_model_post'] = array('ctrl' => array('title' => 'Post', 'label' => 'title', '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' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_kiddognews_domain_model_post.png')); t3lib_extMgm::allowTableOnStandardPages('tx_kiddognews_domain_model_comment'); $TCA['tx_kiddognews_domain_model_comment'] = array('ctrl' => array('title' => 'Comment', 'label' => 'date', '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' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_kiddognews_domain_model_comment.png')); t3lib_extMgm::allowTableOnStandardPages('tx_kiddognews_domain_model_category'); $TCA['tx_kiddognews_domain_model_category'] = array('ctrl' => array('title' => 'Category', 'label' => 'name', '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' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_kiddognews_domain_model_category.png')); t3lib_extMgm::allowTableOnStandardPages('tx_kiddognews_domain_model_tag'); $TCA['tx_kiddognews_domain_model_tag'] = array('ctrl' => array('title' => 'Tag', 'label' => 'name', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_kiddognews_domain_model_tag.png')); t3lib_extMgm::allowTableOnStandardPages('tx_kiddognews_domain_model_file'); $TCA['tx_kiddognews_domain_model_file'] = array('ctrl' => array('title' => 'File', 'label' => 'title', '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' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_kiddognews_domain_model_file.png')); t3lib_extMgm::allowTableOnStandardPages('tx_kiddognews_domain_model_image'); $TCA['tx_kiddognews_domain_model_image'] = array('ctrl' => array('title' => 'Image', 'label' => 'title', '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' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_kiddognews_domain_model_image.png')); t3lib_extMgm::allowTableOnStandardPages('tx_kiddognews_domain_model_link'); $TCA['tx_kiddognews_domain_model_link'] = array('ctrl' => array('title' => 'Link', 'label' => 'link', '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' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_tx_kiddognews_domain_model_link.png'));
/** * Creates an URI used for linking to an Extbase action. * Works in Frontend and Backend mode of TYPO3. * * @param string $actionName Name of the action to be called * @param array $controllerArguments Additional query parameters. Will be "namespaced" and merged with $this->arguments. * @param string $controllerName Name of the target controller. If not set, current ControllerName is used. * @param string $extensionName Name of the target extension, without underscores. If not set, current ExtensionName is used. * @param string $pluginName Name of the target plugin. If not set, current PluginName is used. * @return string the rendered URI * @api * @see build() */ public function uriFor($actionName = NULL, $controllerArguments = array(), $controllerName = NULL, $extensionName = NULL, $pluginName = NULL) { if ($actionName !== NULL) { $controllerArguments['action'] = $actionName; } if ($controllerName !== NULL) { $controllerArguments['controller'] = $controllerName; } else { $controllerArguments['controller'] = $this->request->getControllerName(); } if ($extensionName === NULL) { $extensionName = $this->request->getControllerExtensionName(); } if ($pluginName === NULL && TYPO3_MODE === 'FE') { $pluginName = Tx_Extbase_Utility_Extension::getPluginNameByAction($extensionName, $controllerArguments['controller'], $controllerArguments['action']); } if ($pluginName === NULL) { $pluginName = $this->request->getPluginName(); } if ($this->targetPageUid === NULL && TYPO3_MODE === 'FE') { $this->targetPageUid = Tx_Extbase_Utility_Extension::getTargetPidByPlugin($extensionName, $pluginName); } if ($this->format !== '') { $controllerArguments['format'] = $this->format; } if ($this->argumentPrefix !== NULL) { $prefixedControllerArguments = array($this->argumentPrefix => $controllerArguments); } else { $pluginNamespace = Tx_Extbase_Utility_Extension::getPluginNamespace($extensionName, $pluginName); $prefixedControllerArguments = array($pluginNamespace => $controllerArguments); } $this->arguments = t3lib_div::array_merge_recursive_overrule($this->arguments, $prefixedControllerArguments); if ($actionName !== NULL && $this->useCacheHash === TRUE && !Tx_Extbase_Utility_Extension::isActionCacheable($extensionName, $pluginName, $controllerArguments['controller'], $actionName)) { $this->setUseCacheHash(FALSE); } return $this->build(); }
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Events', array('Course' => 'list,show', 'Event' => 'list, show, new, create, edit, update, delete', 'Person' => 'list, show, new, create, edit, update, delete', 'Location' => 'list, show, new, create, edit, update, delete', 'Reservation' => 'list, show, new, create, edit, update, delete', 'Categories' => 'list'), array('Course' => 'list,show', 'Event' => 'list, show, create, update, delete', 'Person' => 'create, update, delete', 'Location' => 'create, update, delete', 'Reservation' => 'create, update, delete', 'Categories' => ''));
/** * Initialize the Widget Context, before the Render method is called. * * @return void * @author Sebastian Kurfürst <*****@*****.**> */ private function initializeWidgetContext() { $this->widgetContext->setWidgetConfiguration($this->getWidgetConfiguration()); $this->initializeWidgetIdentifier(); $controllerObjectName = $this->controller instanceof Tx_Fluid_AOP_ProxyInterface ? $this->controller->FLOW3_AOP_Proxy_getProxyTargetClassName() : get_class($this->controller); $this->widgetContext->setControllerObjectName($controllerObjectName); $extensionName = $this->controllerContext->getRequest()->getControllerExtensionName(); $pluginName = $this->controllerContext->getRequest()->getPluginName(); $this->widgetContext->setParentExtensionName($extensionName); $this->widgetContext->setParentPluginName($pluginName); $pluginNamespace = Tx_Extbase_Utility_Extension::getPluginNamespace($extensionName, $pluginName); $this->widgetContext->setParentPluginNamespace($pluginNamespace); $this->widgetContext->setWidgetViewHelperClassName(get_class($this)); if ($this->ajaxWidget === TRUE) { $this->ajaxWidgetContextHolder->store($this->widgetContext); } }
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } /** * Configure the Plugin to call the * right combination of Controller and Action according to * the user input (default settings, FlexForm, URL etc.) */ Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi1', array('Post' => 'showLatest,showList,showArchiv,showRss,showSingle,new,create,edit,update,delete', 'Comment' => 'create,edit,update', 'File' => 'new,create,edit,update', 'Category' => 'new,create,edit,update', 'Link' => 'new,create,edit,update'), array('Post' => 'showLatest,showList,showArchiv,showRss,showSingle,new,create,edit,update,delete', 'Comment' => 'create,edit,update', 'File' => 'new,create,edit,update', 'Category' => 'new,create,edit,update', 'Link' => 'new,create,edit,update')); /** * Registration of ajax-methodes */ // deleteCategoryByUid $TYPO3_CONF_VARS['BE']['AJAX']['Tx_KiddogNews_Controller_AjaxController::deleteCategoryByUid'] = 'EXT:kiddog_news/Classes/Controller/AjaxController.php:Tx_KiddogNews_Controller_AjaxController->deleteCategoryByUid'; // updateCategoryByUid $TYPO3_CONF_VARS['BE']['AJAX']['Tx_KiddogNews_Controller_AjaxController::updateCategoryByUid'] = 'EXT:kiddog_news/Classes/Controller/AjaxController.php:Tx_KiddogNews_Controller_AjaxController->updateCategoryByUid'; // getCategoryByUid $TYPO3_CONF_VARS['BE']['AJAX']['Tx_KiddogNews_Controller_AjaxController::getCategoryByUid'] = 'EXT:kiddog_news/Classes/Controller/AjaxController.php:Tx_KiddogNews_Controller_AjaxController->getCategoryByUid'; // getCategoriesByForeignUid $TYPO3_CONF_VARS['BE']['AJAX']['Tx_KiddogNews_Controller_AjaxController::getCategoriesByForeignUid'] = 'EXT:kiddog_news/Classes/Controller/AjaxController.php:Tx_KiddogNews_Controller_AjaxController->getCategoriesByForeignUid';
/** * Builds a web request object from the raw HTTP information and the configuration * * @return Tx_Extbase_MVC_Web_Request The web request as an object */ public function build() { $this->loadDefaultValues(); $pluginNamespace = Tx_Extbase_Utility_Extension::getPluginNamespace($this->extensionName, $this->pluginName); $parameters = t3lib_div::_GPmerged($pluginNamespace); if (is_string($parameters['controller']) && array_key_exists($parameters['controller'], $this->allowedControllerActions)) { $controllerName = filter_var($parameters['controller'], FILTER_SANITIZE_STRING); } elseif (!empty($this->defaultControllerName)) { $controllerName = $this->defaultControllerName; } else { throw new Tx_Extbase_MVC_Exception('The default controller can not be determined.<br />' . 'Please check for Tx_Extbase_Utility_Extension::configurePlugin() in your ext_localconf.php.', 1295479650); } $allowedActions = $this->allowedControllerActions[$controllerName]; if (is_string($parameters['action']) && is_array($allowedActions) && in_array($parameters['action'], $allowedActions)) { $actionName = filter_var($parameters['action'], FILTER_SANITIZE_STRING); } elseif (!empty($this->defaultActionName)) { $actionName = $this->defaultActionName; } else { throw new Tx_Extbase_MVC_Exception('The default action can not be determined for controller "' . $controllerName . '".<br />' . 'Please check Tx_Extbase_Utility_Extension::configurePlugin() in your ext_localconf.php.', 1295479651); } $request = $this->objectManager->create('Tx_Extbase_MVC_Web_Request'); $request->setPluginName($this->pluginName); $request->setControllerExtensionName($this->extensionName); $request->setControllerName($controllerName); $request->setControllerActionName($actionName); $request->setRequestURI(t3lib_div::getIndpEnv('TYPO3_REQUEST_URL')); $request->setBaseURI(t3lib_div::getIndpEnv('TYPO3_SITE_URL')); $request->setMethod(isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : NULL); if (is_string($parameters['format']) && strlen($parameters['format'])) { $request->setFormat(filter_var($parameters['format'], FILTER_SANITIZE_STRING)); } foreach ($parameters as $argumentName => $argumentValue) { $request->setArgument($argumentName, $argumentValue); } return $request; }
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'Testplugin', 'Test plugin'); if (TYPO3_MODE === 'BE') { /** * Registers a Backend Module */ Tx_Extbase_Utility_Extension::registerModule($_EXTKEY, 'web', 'testmodule', '', array('Main' => 'list, show, new, create, edit, update, delete'), array('access' => 'user,group', 'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_testmodule.xml')); } t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Compatibility Test Extension Version 1.0'); t3lib_extMgm::addLLrefForTCAdescr('tx_testextension_domain_model_main', 'EXT:test_extension/Resources/Private/Language/locallang_csh_tx_testextension_domain_model_main.xml'); t3lib_extMgm::allowTableOnStandardPages('tx_testextension_domain_model_main'); $TCA['tx_testextension_domain_model_main'] = array('ctrl' => array('title' => 'LLL:EXT:test_extension/Resources/Private/Language/locallang_db.xml:tx_testextension_domain_model_main', 'label' => 'name', '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' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => 'name,identifier,child1,children2,child3,children4,', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Main.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_testextension_domain_model_main.gif')); t3lib_extMgm::addLLrefForTCAdescr('tx_testextension_domain_model_child1', 'EXT:test_extension/Resources/Private/Language/locallang_csh_tx_testextension_domain_model_child1.xml'); t3lib_extMgm::allowTableOnStandardPages('tx_testextension_domain_model_child1'); $TCA['tx_testextension_domain_model_child1'] = array('ctrl' => array('title' => 'LLL:EXT:test_extension/Resources/Private/Language/locallang_db.xml:tx_testextension_domain_model_child1', 'label' => 'name', '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' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => 'name,', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Child1.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_testextension_domain_model_child1.gif')); t3lib_extMgm::addLLrefForTCAdescr('tx_testextension_domain_model_child2', 'EXT:test_extension/Resources/Private/Language/locallang_csh_tx_testextension_domain_model_child2.xml'); t3lib_extMgm::allowTableOnStandardPages('tx_testextension_domain_model_child2'); $TCA['tx_testextension_domain_model_child2'] = array('ctrl' => array('title' => 'LLL:EXT:test_extension/Resources/Private/Language/locallang_db.xml:tx_testextension_domain_model_child2', 'label' => 'uid', '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' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => '', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Child2.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_testextension_domain_model_child2.gif')); t3lib_extMgm::addLLrefForTCAdescr('tx_testextension_domain_model_child3', 'EXT:test_extension/Resources/Private/Language/locallang_csh_tx_testextension_domain_model_child3.xml'); t3lib_extMgm::allowTableOnStandardPages('tx_testextension_domain_model_child3'); $TCA['tx_testextension_domain_model_child3'] = array('ctrl' => array('title' => 'LLL:EXT:test_extension/Resources/Private/Language/locallang_db.xml:tx_testextension_domain_model_child3', 'label' => 'name', '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' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => 'name,', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Child3.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_testextension_domain_model_child3.gif')); t3lib_extMgm::addLLrefForTCAdescr('tx_testextension_domain_model_child4', 'EXT:test_extension/Resources/Private/Language/locallang_csh_tx_testextension_domain_model_child4.xml'); t3lib_extMgm::allowTableOnStandardPages('tx_testextension_domain_model_child4'); $TCA['tx_testextension_domain_model_child4'] = array('ctrl' => array('title' => 'LLL:EXT:test_extension/Resources/Private/Language/locallang_db.xml:tx_testextension_domain_model_child4', 'label' => 'name', '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' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => 'name,', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Child4.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_testextension_domain_model_child4.gif'));
<?php /*************************************************************** * Copyright notice * * (c) 2011 Nicolas Forgerit <*****@*****.**> * All rights reserved * * This script is part of the TYPO3 project. The TYPO3 project is * free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * The GNU General Public License can be found at * http://www.gnu.org/copyleft/gpl.html. * * This script is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ if (TYPO3_MODE === 'BE') { Tx_Extbase_Utility_Extension::registerModule($_EXTKEY, 'tools', 'tx_t3tt_mod1', '', array('Index' => 'index, step1, step2, step3, downloadOutputFile'), array('access' => 'user,group', 'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.png', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml')); }