<?php
if (!defined ('TYPO3_MODE')) 	die ('Access denied.');

  ## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY,'editorcfg','
	tt_content.CSS_editor.ch.tx_tgfilemanager_pi1 = < plugin.tx_tgfilemanager_pi1.CSS_editor
',43);


t3lib_extMgm::addPItoST43($_EXTKEY,'pi1/class.tx_tgfilemanager_pi1.php','_pi1','list_type',1);
?>
Пример #2
0
<?php

if (!defined("TYPO3_MODE")) {
    die("Access denied.");
}
t3lib_extMgm::addUserTSConfig('
	options.saveDocNew.tx_vm19hnlinks_urls=1
');
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, "editorcfg", "\n\ttt_content.CSS_editor.ch.tx_vm19hnlinks_pi1 = < plugin.tx_vm19hnlinks_pi1.CSS_editor\n", 43);
t3lib_extMgm::addPItoST43($_EXTKEY, "pi1/class.tx_vm19hnlinks_pi1.php", "_pi1", "list_type", 1);
t3lib_extMgm::addTypoScript($_EXTKEY, "setup", "\n\ttt_content.shortcut.20.0.conf.tx_vm19hnlinks_urls = < plugin." . t3lib_extMgm::getCN($_EXTKEY) . "_pi1\n\ttt_content.shortcut.20.0.conf.tx_vm19hnlinks_urls.CMD = singleView\n", 43);
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
t3lib_extMgm::addUserTSConfig('
	options.saveDocNew.tx_eonieuwsbrief_nieuwsbrief=1
');
$TYPO3_CONF_VARS['FE']['eID_include']['eonieuwsbrief_ajax'] = 'EXT:' . $_EXTKEY . '/class.tx_eonieuwsbrief_eid.php';
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, 'editorcfg', 'tt_content.CSS_editor.ch.tx_eonieuwsbrief_pi1 = < plugin.tx_eonieuwsbrief_pi1.CSS_editor', 43);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_eonieuwsbrief_pi1.php', '_pi1', 'list_type', 1);
<?php
if (!defined ("TYPO3_MODE")) 	die ("Access denied.");

  ## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY,"editorcfg","
	tt_content.CSS_editor.ch.tx_piiframe_pi1 = < plugin.tx_piiframe_pi1.CSS_editor
",43);


t3lib_extMgm::addPItoST43($_EXTKEY,"pi1/class.tx_piiframe_pi1.php","_pi1","list_type",1);
?>
Пример #5
0
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, 'editorcfg', '
	tt_content.CSS_editor.ch.tx_rggooglemap_pi1 = < plugin.tx_rggooglemap_pi1.CSS_editor
', 43);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_rggooglemap_pi1.php', '_pi1', 'list_type', 0);
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '
	tt_content.text.20.parseFunc.tags.map = < plugin.' . t3lib_extMgm::getCN($_EXTKEY) . '_pi2
', 43);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi2/class.tx_rggooglemap_pi2.php', '_pi2', '', 1);
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '
	tt_content.text.20.parseFunc.tags.mapcat = < plugin.' . t3lib_extMgm::getCN($_EXTKEY) . '_pi3
', 43);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi3/class.tx_rggooglemap_pi3.php', '_pi3', '', 1);
$PATH_rggm = t3lib_extMgm::extPath('rggooglemap');
// for hook
if (TYPO3_MODE == 'FE') {
    require_once $PATH_rggm . 'class.tx_rggm_fe.php';
}
// register hooks for ve_guestbook
#$TYPO3_CONF_VARS['EXTCONF']['ve_guestbook']['extraItemMarkerHook'][]   = 'tx_rggm_fe';
#$TYPO3_CONF_VARS['EXTCONF']['ve_guestbook']['preEntryInsertHook'][]    = 'tx_rggm_fe';
#$TYPO3_CONF_VARS['EXTCONF']['th_mailformplus']['extraItemMarkerHook'][]   = 'tx_rggm_fe';
#$TYPO3_CONF_VARS['EXTCONF']['tt_news']['extraItemMarkerHook'][]   = 'tx_rggm_fe';
#$TYPO3_CONF_VARS['EXTCONF']['tt_news']['extraGlobalMarkerHook'][]   = 'tx_rggm_fe';
#$TYPO3_CONF_VARS['EXTCONF']['ve_guestbook']['postEntryInsertedHook'][] = 'tx_rggm_fe';
#$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:myextension/class.myextension_tcemainprocdm.php:tx_myextension_tcemainprocdm';
Пример #6
0
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '
		includeLibs.tx_cssfilelinks = EXT:css_filelinks/class.tx_cssfilelinks.php
		' . $tempDefaultCss . '
		
		tt_content.uploads.20 >
		tt_content.uploads.20=USER
		tt_content.uploads.20{
			userFunc=tx_cssfilelinks->renderFileLinks
			fileList{
				field=media
				path=uploads/media/
				' . $tempAllowReadFromPath . '
			}
			title.trimExt=0
			
			description.field=imagecaption
			description_ifElementEmpty=
			additionalClass{
				image=bmp,gif,ico,jpg,png,tif,psd
				video=wmv,avi,asf,mpg,mov,mpeg
				audio=mp3,wav,mid
			}
			classes{
				addFirst=1
				addLast=1
				addOdd=1
				addEven=1
				ext.prefixIfFirstNumber=
			}
			layout{
				global=<div class="filelinks filelinks_layout_###LAYOUT###"><span class="filecount">There are ###FILECOUNT### files.</span>###FILE###</div>
				file=<div class="###CLASS###"><span><a href="###URL###">###TITLE###</a> ###FILESIZE### ###CRID### ###MYMARK###</span><span>###DESCRIPTION###</span></div>
				fileSize{
					layout=(###SIZE### ###SIZEFORMAT###)
					char=lower
					format=auto
					desc=b|kb|mb
					round=2
					decimalPoint=.
				}
				hideNotProcessedMarkers=1
			}
			linkProc {
				target = _blank
				jumpurl = {$styles.content.uploads.jumpurl} 
				jumpurl.secure = {$styles.content.uploads.jumpurl_secure}
		
				removePrependedNumbers = 1
				
				alternativeIconPath=
		
				iconCObject = IMAGE
				iconCObject.makeThumbs=0
				iconCObject.file.import.data = register : ICON_REL_PATH
				iconCObject.file.width = 150
			}
			stdWrap{
				editIcons = tt_content: media, layout, filelink_size
				editIcons.iconTitle.data=LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.filelist
				prefixComment = 2 | File list:
			};
		}
	', 43);
Пример #7
0
<?php

if (!defined("TYPO3_MODE")) {
    die("Access denied.");
}
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, "editorcfg", "\n\ttt_content.CSS_editor.ch.tx_iframe2_pi1 = < plugin.tx_iframe2_pi1.CSS_editor\n", 43);
t3lib_extMgm::addPItoST43($_EXTKEY, "pi1/class.tx_iframe2_pi1.php", "_pi1", "list_type", 0);
Пример #8
0
<?php

if (!defined("TYPO3_MODE")) {
    die("Access denied.");
}
t3lib_extMgm::addPItoST43($_EXTKEY, "pi1/class.tx_dlcube04CAS_pi1.php", "_pi1", "includeLib", 0);
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, "editorcfg", "\n\ttt_content.CSS_editor.ch.tx_dlcube04CAS_pi2 = < plugin.tx_dlcube04CAS_pi2.CSS_editor\n", 43);
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, "editorcfg", "\n\ttt_content.CSS_editor.ch.tx_dlcube04CAS_pi3 = < plugin.tx_dlcube04CAS_pi3.CSS_editor\n", 43);
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, "editorcfg", "\n\ttt_content.CSS_editor.ch.tx_dlcube04CAS_pi4 = < plugin.tx_dlcube04CAS_pi4.CSS_editor\n", 43);
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, "editorcfg", "\n\ttt_content.CSS_editor.ch.tx_dlcube04CAS_pi5 = < plugin.tx_dlcube04CAS_pi5.CSS_editor\n", 43);
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, "editorcfg", "\n\ttt_content.CSS_editor.ch.tx_dlcube04CAS_pi6 = < plugin.tx_dlcube04CAS_pi6.CSS_editor\n", 43);
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, "editorcfg", "\n\ttt_content.CSS_editor.ch.tx_dlcube04CAS_pi7 = < plugin.tx_dlcube04CAS_pi7.CSS_editor\n", 43);
t3lib_extMgm::addPItoST43($_EXTKEY, "pi2/class.tx_dlcube04CAS_pi2.php", "_pi2", "list_type", 0);
t3lib_extMgm::addPItoST43($_EXTKEY, "pi3/class.tx_dlcube04CAS_pi3.php", "_pi3", "list_type", 0);
t3lib_extMgm::addPItoST43($_EXTKEY, "pi4/class.tx_dlcube04CAS_pi4.php", "_pi4", "list_type", 0);
t3lib_extMgm::addPItoST43($_EXTKEY, "pi5/class.tx_dlcube04CAS_pi5.php", "_pi5", "list_type", 0);
t3lib_extMgm::addPItoST43($_EXTKEY, "pi6/class.tx_dlcube04CAS_pi6.php", "_pi6", "list_type", 0);
t3lib_extMgm::addPItoST43($_EXTKEY, "pi7/class.tx_dlcube04CAS_pi7.php", "_pi7", "list_type", 0);
Пример #9
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, 'editorcfg', '
	tt_content.CSS_editor.ch.tx_ketroubletickets_pi1 = < plugin.tx_ketroubletickets_pi1.CSS_editor
', 43);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_ketroubletickets_pi1.php', '_pi1', 'list_type', 0);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi2/class.tx_ketroubletickets_pi2.php', '_pi2', 'list_type', 0);
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '
	tt_content.shortcut.20.0.conf.tx_ketroubletickets_tickets = < plugin.' . t3lib_extMgm::getCN($_EXTKEY) . '_pi1
	tt_content.shortcut.20.0.conf.tx_ketroubletickets_tickets.CMD = singleView
', 43);
t3lib_extMgm::addPageTSConfig('

	# ***************************************************************************************
	# CONFIGURATION of RTE in table "tx_ketroubletickets_tickets", field "description"
	# ***************************************************************************************
RTE.config.tx_ketroubletickets_tickets.description {
  hidePStyleItems = H1, H4, H5, H6
  proc.exitHTMLparser_db=1
  proc.exitHTMLparser_db {
    keepNonMatchedTags=1
    tags.font.allowedAttribs= color
    tags.font.rmTagIfNoAttrib = 1
    tags.font.nesting = global
  }
}
');
Пример #10
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, 'editorcfg', '
    tt_content.CSS_editor.ch.tx_rgmediaimages_pi1 = < plugin.tx_rgmediaimages_pi1.CSS_editor
', 43);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_rgmediaimages_pi1.php', '_pi1', 'list_type', 1);
Пример #11
0
    t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '
		includeLibs.tx_damttcontent = EXT:dam/lib/class.tx_dam_tsfe.php

		temp.tx_dam.fileList < tt_content.image.20.imgList

		tt_content.image.20.imgList >
		tt_content.image.20.imgList.cObject = USER
		tt_content.image.20.imgList.cObject {
			userFunc = tx_dam_tsfe->fetchFileList

			refField = tx_damttcontent_files
			refTable = tt_content

			additional.fileList < temp.tx_dam.fileList
			additional.filePath < tt_content.image.20.imgPath
			' . ($GLOBALS['T3_VAR']['ext'][$_EXTKEY]['setup']['ctype_image_add_orig_field'] ? '' : 'additional >') . '
		}
		tt_content.image.20.imgPath >
		tt_content.image.20.imgPath =


		temp.tx_dam.fileList < tt_content.textpic.20.imgList

		tt_content.textpic.20.imgList >
		tt_content.textpic.20.imgList.cObject = USER
		tt_content.textpic.20.imgList.cObject {
			userFunc = tx_dam_tsfe->fetchFileList

			refField = tx_damttcontent_files
			refTable = tt_content

			additional.fileList < temp.tx_dam.fileList
			additional.filePath < tt_content.textpic.20.imgPath
			' . ($GLOBALS['T3_VAR']['ext'][$_EXTKEY]['setup']['ctype_textpic_add_orig_field'] ? '' : 'additional >') . '
		}
		tt_content.textpic.20.imgPath >
		tt_content.textpic.20.imgPath =

		', 43);
Пример #12
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, 'editorcfg', '
	tt_content.CSS_editor.ch.tx_cfamooflow_pi1 = < plugin.tx_cfamooflow_pi1.CSS_editor
', 43);
$TYPO3_CONF_VARS['FE']['eID_include']['tx_cfamooflow_pi1'] = 'EXT:cfa_mooflow/pi1/dynLoader.php';
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_cfamooflow_pi1.php', '_pi1', 'list_type', 0);
Пример #13
0
    /**
     * Add auto-generated TypoScript to configure the Extbase Dispatcher.
     *
     * When adding a frontend plugin you will have to add both an entry to the TCA definition
     * of tt_content table AND to the TypoScript template which must initiate the rendering.
     * Since the static template with uid 43 is the "content.default" and practically always
     * used for rendering the content elements it's very useful to have this function automatically
     * adding the necessary TypoScript for calling the appropriate controller and action of your plugin.
     * It will also work for the extension "css_styled_content"
     * FOR USE IN ext_localconf.php FILES
     * Usage: 2
     *
     * @param string $extensionName The extension name (in UpperCamelCase) or the extension key (in lower_underscore)
     * @param string $pluginName must be a unique id for your plugin in UpperCamelCase (the string length of the extension key added to the length of the plugin name should be less than 32!)
     * @param string $controllerActions is an array of allowed combinations of controller and action stored in an array (controller name as key and a comma separated list of action names as value, the first controller and its first action is chosen as default)
     * @param string $nonCachableControllerActions is an optional array of controller name and  action names which should not be cached (array as defined in $controllerActions)
     * @param string $defaultControllerAction is an optional array controller name (as array key) and action name (as array value) that should be called as default
     * @return void
     */
    public static function configurePlugin($extensionName, $pluginName, array $controllerActions, array $nonCachableControllerActions = array())
    {
        if (empty($pluginName)) {
            throw new InvalidArgumentException('The plugin name must not be empty', 1239891987);
        }
        if (empty($extensionName)) {
            throw new InvalidArgumentException('The extension name was invalid (must not be empty and must match /[A-Za-z][_A-Za-z0-9]/)', 1239891989);
        }
        $extensionName = str_replace(' ', '', ucwords(str_replace('_', ' ', $extensionName)));
        $pluginSignature = strtolower($extensionName) . '_' . strtolower($pluginName);
        $controllerCounter = 1;
        $hasMultipleActionsCounter = 0;
        $controllers = '';
        foreach ($controllerActions as $controller => $actionsList) {
            $controllers .= '
		' . $controllerCounter . '.controller = ' . $controller . '
		' . $controllerCounter . '.actions = ' . $actionsList;
            $controllerCounter++;
            if (strpos($actionsList, ',') !== FALSE) {
                $hasMultipleActionsCounter++;
            }
        }
        $switchableControllerActions = '';
        if ($controllerCounter > 1 || $hasMultipleActionsCounter > 0) {
            $switchableControllerActions = '
	switchableControllerActions {' . $controllers . '
	}';
        }
        reset($controllerActions);
        $defaultController = key($controllerActions);
        $controller = '
	controller = ' . $defaultController;
        $defaultAction = array_shift(t3lib_div::trimExplode(',', current($controllerActions)));
        $action = '
	action = ' . $defaultAction;
        $nonCachableActions = array();
        if (!empty($nonCachableControllerActions[$defaultController])) {
            $nonCachableActions = t3lib_div::trimExplode(',', $nonCachableControllerActions[$defaultController]);
        }
        $cachableActions = array_diff(t3lib_div::trimExplode(',', $controllerActions[$defaultController]), $nonCachableActions);
        $contentObjectType = in_array($defaultAction, $nonCachableActions) ? 'USER_INT' : 'USER';
        $conditions = '';
        foreach ($controllerActions as $controllerName => $actionsList) {
            if (!empty($nonCachableControllerActions[$controllerName])) {
                $nonCachableActions = t3lib_div::trimExplode(',', $nonCachableControllerActions[$controllerName]);
                $cachableActions = array_diff(t3lib_div::trimExplode(',', $controllerActions[$controllerName]), $nonCachableActions);
                if ($contentObjectType == 'USER' && count($nonCachableActions) > 0 || $contentObjectType == 'USER_INT' && count($cachableActions) > 0) {
                    $conditions .= '
[globalString = GP:tx_' . $pluginSignature . '|controller = ' . $controllerName . '] && [globalString = GP:tx_' . $pluginSignature . '|action = /' . implode('|', $contentObjectType === 'USER' ? $nonCachableActions : $cachableActions) . '/]
tt_content.list.20.' . $pluginSignature . ' = ' . ($contentObjectType === 'USER' ? 'USER_INT' : 'USER') . '
[global]
';
                }
            }
        }
        $pluginTemplate = 'plugin.tx_' . strtolower($extensionName) . ' {
	settings {
	}
	persistence {
		storagePid =
		classes {
		}
	}
	view {
		templateRootPath =
		layoutRootPath =
		partialRootPath =
	}
}';
        t3lib_extMgm::addTypoScript($extensionName, 'setup', '
# Setting ' . $extensionName . ' plugin TypoScript
' . $pluginTemplate);
        $pluginContent = trim('
tt_content.list.20.' . $pluginSignature . ' = ' . $contentObjectType . '
tt_content.list.20.' . $pluginSignature . ' {
	userFunc = tx_extbase_dispatcher->dispatch
	pluginName = ' . $pluginName . '
	extensionName = ' . $extensionName . '
	' . $controller . $action . $switchableControllerActions . '

	settings =< plugin.tx_' . strtolower($extensionName) . '.settings
	persistence =< plugin.tx_' . strtolower($extensionName) . '.persistence
	view =< plugin.tx_' . strtolower($extensionName) . '.view
	_LOCAL_LANG =< plugin.tx_' . strtolower($extensionName) . '._LOCAL_LANG
}
' . $conditions);
        t3lib_extMgm::addTypoScript($extensionName, 'setup', '
# Setting ' . $extensionName . ' plugin TypoScript
' . $pluginContent, 43);
    }
Пример #14
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// Extending TypoScript from static template uid=43 to set up parsing of custom attribute "txdam" on img tag:
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '
	#******************************************************
	# Including library for processing of custom attribute "txdam" on img tag
	#******************************************************
	includeLibs.tx_dam_tsfeimgtag = EXT:dam/binding/imgtag/class.tx_dam_tsfeimgtag.php
	
	lib.parseFunc_RTE {
		tags.img = TEXT
		tags.img {
			current = 1
			preUserFunc = tx_dam_tsfeimgtag->renderTxdamAttribute
		}
		nonTypoTagStdWrap.HTMLparser.tags.img.fixAttrib {
			txdam.unset = 1
		}
	}
', 43);
Пример #15
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, 'editorcfg', '
	tt_content.CSS_editor.ch.tx_rgsmoothgallery_pi1 = < plugin.tx_rgsmoothgallery_pi1.CSS_editor
', 43);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_rgsmoothgallery_pi1.php', '_pi1', 'list_type', 1);
t3lib_extMgm::addUserTSConfig('
    options.saveDocNew.tx_rgsmoothgallery_image=1
');
// hook for tt_news
if (TYPO3_MODE == 'FE') {
    require_once t3lib_extMgm::extPath($_EXTKEY) . 'class.tx_rgsmoothgallery_fe.php';
}
$TYPO3_CONF_VARS['EXTCONF']['tt_news']['extraItemMarkerHook'][] = 'tx_rgsmoothgallery_fe';
#$TYPO3_CONF_VARS['EXTCONF']['tt_news']['extraGlobalMarkerHook'][]   = 'tx_rgsmoothgallery_fe';
Пример #16
0
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '

	plugin.tx_dam_tsfemediatag {
			procFields {
				file_size = 1
			}
			tag {
				current = 1
				typolink.parameter.data = parameters : allParams
				typolink.extTarget = {$styles.content.links.extTarget}
				typolink.target = {$styles.content.links.target}
				typolink.title { 
					dataWrap = { field : txdam_file_name } ({ field : txdam_file_size })
					htmlspecialchars = 1
				}
				parseFunc.constants =1
			}
		}

	lib.parseFunc.tags.media = < plugin.tx_dam_tsfemediatag
	lib.parseFunc_RTE.tags.media = < plugin.tx_dam_tsfemediatag
	// content-default?: tt_content.text.20.parseFunc.tags.media = < plugin.tx_dam_tsfemediatag
', 43);
// register rendering plugin
t3lib_extMgm::addPItoST43($_EXTKEY, 'binding/mediatag/class.tx_dam_tsfemediatag.php', '_tsfemediatag', '', 1);
// Add default Page TSonfig RTE configuration for enabling media links
t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/binding/mediatag/pageTSConfig.txt">');
Пример #17
0
<?php

if (!defined("TYPO3_MODE")) {
    die("Access denied.");
}
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, "editorcfg", "\n\ttt_content.CSS_editor.ch.tx_macinasearchbox_pi1 = < plugin.tx_macinasearchbox_pi1.CSS_editor\n", 43);
t3lib_extMgm::addPItoST43($_EXTKEY, "pi1/class.tx_macinasearchbox_pi1.php", "_pi1", "list_type", 1);
Пример #18
0
}
// unserializing the configuration so we can use it here:
$_EXTCONF = unserialize($_EXTCONF);
// Adding the two plugins TypoScript:
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_templavoila_pi1.php', '_pi1', 'CType', 1);
$tvSetup = array('plugin.tx_templavoila_pi1.disableExplosivePreview = 1');
if (!$_EXTCONF['enable.']['renderFCEHeader']) {
    $tvSetup[] = 'tt_content.templavoila_pi1.10 >';
}
//sectionIndex replacement
$tvSetup[] = 'tt_content.menu.20.3 = USER
	tt_content.menu.20.3.userFunc = tx_templavoila_pi1->tvSectionIndex
	tt_content.menu.20.3.select.where >
	tt_content.menu.20.3.indexField.data = register:tx_templavoila_pi1.current_field
';
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', implode(PHP_EOL, $tvSetup), 43);
// Use templavoila's wizard instead the default create new page wizard
t3lib_extMgm::addPageTSConfig('
    mod.web_list.newPageWiz.overrideWithExtension = templavoila
	mod.web_list.newContentWiz.overrideWithExtension = templavoila
	mod.web_txtemplavoilaM2.templatePath = templates,default/templates
	mod.web_txtemplavoilaM1.enableDeleteIconForLocalElements = 0
	mod.web_txtemplavoilaM1.enableContentAccessWarning = 1
	mod.web_txtemplavoilaM1.enableLocalizationLinkForFCEs = 0
	mod.web_txtemplavoilaM1.useLiveWorkspaceForReferenceListUpdates = 1
');
// Use templavoila instead of the default page module
t3lib_extMgm::addUserTSConfig('
 	options.overridePageModule = web_txtemplavoilaM1
	mod.web_txtemplavoilaM1.sideBarEnable = 1
 ');
tx_solr_CommandResolver::registerPluginCommand('results', 'faceting', 'tx_solr_pi_results_FacetingCommand', tx_solr_PluginCommand::REQUIREMENT_HAS_SEARCHED + tx_solr_PluginCommand::REQUIREMENT_HAS_RESULTS);
tx_solr_CommandResolver::registerPluginCommand('search, results', 'form', 'tx_solr_pi_results_FormCommand', tx_solr_PluginCommand::REQUIREMENT_NONE);
tx_solr_CommandResolver::registerPluginCommand('results', 'no_results', 'tx_solr_pi_results_NoResultsCommand', tx_solr_PluginCommand::REQUIREMENT_HAS_SEARCHED + tx_solr_PluginCommand::REQUIREMENT_NO_RESULTS);
tx_solr_CommandResolver::registerPluginCommand('results', 'results', 'tx_solr_pi_results_ResultsCommand', tx_solr_PluginCommand::REQUIREMENT_HAS_SEARCHED + tx_solr_PluginCommand::REQUIREMENT_HAS_RESULTS);
tx_solr_CommandResolver::registerPluginCommand('results', 'sorting', 'tx_solr_pi_results_SortingCommand', tx_solr_PluginCommand::REQUIREMENT_HAS_SEARCHED + tx_solr_PluginCommand::REQUIREMENT_HAS_RESULTS);
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// registering with the "crawler" extension:
$TYPO3_CONF_VARS['EXTCONF']['crawler']['procInstructions']['tx_solr_reindex'] = 'Solr Re-indexing';
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// adding scheduler tasks
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['tx_solr_scheduler_OptimizeTask'] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:solr/lang/locallang.xml:scheduler_optimizer_title', 'description' => 'LLL:EXT:solr/lang/locallang.xml:scheduler_optimizer_description', 'additionalFields' => 'tx_solr_scheduler_OptimizeTaskSolrServerField');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['tx_solr_scheduler_CommitTask'] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:solr/lang/locallang.xml:scheduler_commit_title', 'description' => 'LLL:EXT:solr/lang/locallang.xml:scheduler_commit_description', 'additionalFields' => 'tx_solr_scheduler_CommitTaskSolrServerField');
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// TODO move into pi_results, initializeSearch, add only when highlighting is activated
$TYPO3_CONF_VARS['EXTCONF']['solr']['modifySearchForm']['spellcheck'] = 'EXT:solr/pi_results/class.tx_solr_pi_results_spellcheckformmodifier.php:tx_solr_pi_results_SpellcheckFormModifier';
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// registering the eID script for auto suggest
$TYPO3_CONF_VARS['FE']['eID_include']['tx_solr_suggest'] = 'EXT:solr/eid_suggest/suggest.php';
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// replace the built-in search content element
$searchReplacementTypoScript = trim('
tt_content.search = COA
tt_content.search {
	10 = < lib.stdheader
	20 >
	20 = < plugin.tx_solr_pi_results
	30 >
}
');
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '# Setting ' . $_EXTKEY . ' plugin TypoScript' . $searchReplacementTypoScript, 43);
Пример #20
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
t3lib_extMgm::addUserTSConfig('
	options.saveDocNew.tx_kbeventboard_locations=1
');
t3lib_extMgm::addUserTSConfig('
	options.saveDocNew.tx_kbeventboard_category=1
');
t3lib_extMgm::addUserTSConfig('
	options.saveDocNew.tx_kbeventboard_events=1
');
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, 'editorcfg', '
	tt_content.CSS_editor.ch.tx_kbeventboard_pi1 = < plugin.tx_kbeventboard_pi1.CSS_editor
', 43);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_kbeventboard_pi1.php', '_pi1', 'list_type', 0);
Пример #21
0
<?php

# TYPO3 CVS ID: $Id: ext_localconf.php 944 2003-12-29 16:50:17Z typo3 $
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_newloginbox_pi1.php', '_pi1', 'list_type', 0);
// Extending TypoScript from static template uid=43
t3lib_extMgm::addTypoScript($_EXTKEY, 'editorcfg', '
    tt_content.CSS_editor.ch.tx_newloginbox_pi3 = < plugin.tx_newloginbox_pi3.CSS_editor
', 43);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi3/class.tx_newloginbox_pi3.php', '_pi3', 'list_type', 0);
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '
    tt_content.shortcut.20.0.conf.fe_users = < plugin.' . t3lib_extMgm::getCN($_EXTKEY) . '_pi3
    tt_content.shortcut.20.0.conf.fe_users.CMD = singleView
', 43);
Пример #22
0
<?php

# TYPO3 CVS ID: $Id: ext_localconf.php 5928 2007-07-12 11:20:33Z kasper $
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// Adding the two plugins TypoScript:
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_templavoila_pi1.php', '_pi1', 'CType', 1);
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', 'tt_content.templavoila_pi1.10 >', 43);
// Use templavoila's wizard instead the default create new page wizard
t3lib_extMgm::addPageTSConfig('
    mod.web_list.newPageWiz.overrideWithExtension = templavoila
	mod.web_list.newContentWiz.overrideWithExtension = templavoila
');
// Use templavoila instead of the default page module
t3lib_extMgm::addUserTSConfig('
 	options.overridePageModule = web_txtemplavoilaM1
	mod.web_txtemplavoilaM1.sideBarEnable = 1
 ');
// Adding Page Template Selector Fields to root line:
$GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] .= ',tx_templavoila_ds,tx_templavoila_to,tx_templavoila_next_ds,tx_templavoila_next_to';
// Register our classes at a the hooks:
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['templavoila'] = 'EXT:templavoila/class.tx_templavoila_tcemain.php:tx_templavoila_tcemain';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['templavoila'] = 'EXT:templavoila/class.tx_templavoila_tcemain.php:tx_templavoila_tcemain';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass']['templavoila'] = 'EXT:templavoila/class.tx_templavoila_tcemain.php:tx_templavoila_tcemain';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauthgroup.php']['recordEditAccessInternals']['templavoila'] = 'EXT:templavoila/class.tx_templavoila_access.php:&tx_templavoila_access->recordEditAccessInternals';
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['lowlevel']['cleanerModules']['tx_templavoila_unusedce'] = array('EXT:templavoila/class.tx_templavoila_unusedce.php:tx_templavoila_unusedce');
Пример #23
0
$TYPO3_CONF_VARS['BE']['RTE_reg'][$_EXTKEY] = array('objRef' => 'EXT:' . $_EXTKEY . '/class.tx_tinymce_rte_base.php:&tx_tinymce_rte_base');
// load default PageTS config from static
t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/static/pageTSConfig.ts">');
// Get extension configuration
$extConf = unserialize($_EXTCONF);
// set default if value is undefined (for backward compatibility as most users will have it set empty)
if ($extConf['pageLoadConfigFile'] === '') {
    $extConf['pageLoadConfigFile'] = 'EXT:tinymce_rte/static/pageLoad.ts';
}
// load mandatory pageLoadConfigFile
t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:' . $extConf['pageLoadConfigFile'] . '">');
if ($extConf['loadConfig'] !== '') {
    t3lib_extMgm::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:' . $extConf['loadConfig'] . '">');
}
// load default SetupTS config from static
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/static/setupTSConfig.ts">', 43);
//add linkhandler for "record"
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typolinkLinkHandler']['record'] = 'EXT:tinymce_rte/hooks/class.tx_tinymce_rte_handler.php:&tx_tinymce_rte_handler';
// Enable preStartPageHook hook
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/template.php']['preStartPageHook'][] = 'EXT:' . $_EXTKEY . '/hooks/class.tx_tinymce_rte_header.php:&tx_tinymce_rte_header->preStartPageHook';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['EXT:feeditadvanced/view/class.tx_feeditadvanced_adminpanel.php']['addIncludes'][] = 'EXT:' . $_EXTKEY . '/hooks/class.tx_tinymce_rte_feeditadv.php:&tx_tinymce_rte_feeditadv';
// user function to force typolink creation of every link
if (!class_exists('user_tinymce_rte', false)) {
    class user_tinymce_rte
    {
        function isNotAnchor($content, $conf)
        {
            return preg_match('/\\s*href\\s*=\\s*"[^"]+"\\s*/i', $content) ? 1 : 0;
        }
        function getHref($content, $conf)
        {
Пример #24
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
//replace old Login
$pluginContent = trim('
plugin.tx_felogin_pi1 = USER_INT
plugin.tx_felogin_pi1 {
  includeLibs = EXT:felogin/pi1/class.tx_felogin_pi1.php
  userFunc = tx_felogin_pi1->main
}
');
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '
# Setting ' . $_EXTKEY . ' plugin TypoScript
' . $pluginContent);
$addLine = trim('
tt_content.login = COA
tt_content.login {
	10 = < lib.stdheader
	20 >
	20 = < plugin.tx_felogin_pi1
}
');
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '# Setting ' . $_EXTKEY . ' plugin TypoScript' . $addLine . '', 43);
//activate support for kb_md5fepw
if (t3lib_extMgm::isLoaded('kb_md5fepw') && TYPO3_MODE == 'FE') {
    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['loginFormOnSubmitFuncs'][] = 'tx_kbmd5fepw_newloginbox->loginFormOnSubmit';
    require_once t3lib_extMgm::extPath('kb_md5fepw') . 'pi1/class.tx_kbmd5fepw_newloginbox.php';
}
Пример #25
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
t3lib_extMgm::addUserTSConfig('options.saveDocNew.tx_rlmpflashdetection_flashmovie=1');
$TYPO3_CONF_VARS['EXTCONF']['cms']['db_layout']['addTables']['tx_rlmpflashdetection_flashmovie'][0] = array('fList' => 'description,width,height,flashmovie', 'icon' => TRUE);
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, 'editorcfg', "tt_content.CSS_editor.ch.tx_rlmpflashdetection_pi1 = < plugin.tx_rlmpflashdetection_pi1.CSS_editor", 43);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_rlmpflashdetection_pi1.php', "_pi1", 'list_type', 1);
Пример #26
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
t3lib_extMgm::addUserTSConfig('
	options.saveDocNew.tx_myquizpoll_question=1
');
t3lib_extMgm::addUserTSConfig('
	options.saveDocNew.tx_myquizpoll_category=1
');
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_myquizpoll_pi1.php', '_pi1', 'list_type', 0);
$TYPO3_CONF_VARS['FE']['eID_include']['myquizpoll_eID'] = 'EXT:myquizpoll/pi1/poll_eID.php';
$TYPO3_CONF_VARS['FE']['eID_include']['myquiz_eID'] = 'EXT:myquizpoll/pi1/quiz_eID.php';
$TYPO3_CONF_VARS['FE']['eID_include']['starrating'] = 'EXT:myquizpoll/pi1/class.tx_myquizpoll_eidstarrating.php';
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '
	tt_content.shortcut.20.0.conf.tx_myquizpoll_question = < plugin.' . t3lib_extMgm::getCN($_EXTKEY) . '_pi1
	tt_content.shortcut.20.0.conf.tx_myquizpoll_question.CMD = singleView
', 43);
Пример #27
0
    tx_dam::register_indexingRule('tx_damindex_rule_devel', 'EXT:dam/components/class.tx_dam_index_rules.php:&tx_dam_index_rule_devel');
}
// register navigation tree and select rule for nav tree.
tx_dam::register_selection('txdamFolder', 'EXT:dam/components/class.tx_dam_selectionFolder.php:&tx_dam_selectionFolder');
tx_dam::register_selection('txdamCat', 'EXT:dam/components/class.tx_dam_selectionCategory.php:&tx_dam_selectionCategory');
tx_dam::register_selection('txdamMedia', 'EXT:dam/components/class.tx_dam_selectionMeTypes.php:&tx_dam_selectionMeTypes');
tx_dam::register_selection('txdamStatus', 'EXT:dam/components/class.tx_dam_selectionStatus.php:&tx_dam_selectionStatus');
tx_dam::register_selection('txdamIndexRun', 'EXT:dam/components/class.tx_dam_selectionIndexRun.php:&tx_dam_selectionIndexRun');
tx_dam::register_selection('txdamStrSearch', 'EXT:dam/components/class.tx_dam_selectionStringSearch.php:&tx_dam_selectionStringSearch');
tx_dam::register_selection('txdamRecords', 'EXT:dam/components/class.tx_dam_selectionRecords.php:&tx_dam_selectionRecords');
// register DAM internal db change trigger
tx_dam::register_dbTrigger('tx_dam_dbTriggerMediaTypes', 'EXT:dam/components/class.tx_dam_dbTriggerMediaTypes.php:&tx_dam_dbTriggerMediaTypes');
// register special TCE tx_dam processing
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = 'EXT:dam/binding/tce/class.tx_dam_tce_process.php:&tx_dam_tce_process';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:dam/binding/tce/class.tx_dam_tce_process.php:&tx_dam_tce_process';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:dam/binding/tce/class.tx_dam_tce_filetracking.php:&tx_dam_tce_filetracking';
// <media> tag for BE and FE
if ($TYPO3_CONF_VARS['EXTCONF']['dam']['setup']['mediatag']) {
    require_once PATH_txdam . 'binding/mediatag/ext_localconf.php';
}
// user-defined soft reference parsers
require_once PATH_txdam . 'binding/softref/ext_localconf.php';
// txdam attribute on img tag for FE
require_once PATH_txdam . 'binding/imgtag/ext_localconf.php';
// FE stuff
$pluginContent = t3lib_div::getUrl(PATH_txdam . 'pi/setup.txt');
t3lib_extMgm::addTypoScript('dam', 'setup', '
# Setting dam plugin TypoScript
' . $pluginContent);
unset($pluginContent);
$TYPO3_CONF_VARS['BE']['AJAX']['TYPO3_tcefile::process'] = PATH_txdam . 'lib/class.tx_dam_tce_file.php:tx_dam_tce_file->processAjaxRequest';
Пример #28
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, 'editorcfg', 'tt_content.CSS_editor.ch.tx_lumogooglemaps_pi1 = < plugin.tx_lumogooglemaps_pi1.CSS_editor', 43);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_lumogooglemaps_pi1.php', '_pi1', 'list_type', 1);
Пример #29
0
');
t3lib_extMgm::addUserTSConfig('
	options.saveDocNew.tx_dlcubenewsletters_presse_ids=1
');
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, 'editorcfg', '
	tt_content.CSS_editor.ch.tx_dlcubenewsletters_pi1 = < plugin.tx_dlcubenewsletters_pi1.CSS_editor
', 43);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_dlcubenewsletters_pi1.php', '_pi1', 'list_type', 0);
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '
	tt_content.shortcut.20.0.conf.tx_dlcubenewsletters_topnews_ids = < plugin.' . t3lib_extMgm::getCN($_EXTKEY) . '_pi1
	tt_content.shortcut.20.0.conf.tx_dlcubenewsletters_topnews_ids.CMD = singleView
', 43);
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, 'editorcfg', '
	tt_content.CSS_editor.ch.tx_dlcubenewsletters_pi2 = < plugin.tx_dlcubenewsletters_pi2.CSS_editor
', 43);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi2/class.tx_dlcubenewsletters_pi2.php', '_pi2', 'list_type', 0);
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '
	tt_content.shortcut.20.0.conf.tx_dlcubenewsletters_region_ids = < plugin.' . t3lib_extMgm::getCN($_EXTKEY) . '_pi2
	tt_content.shortcut.20.0.conf.tx_dlcubenewsletters_region_ids.CMD = singleView
', 43);
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, 'editorcfg', '
	tt_content.CSS_editor.ch.tx_dlcubenewsletters_pi3 = < plugin.tx_dlcubenewsletters_pi3.CSS_editor
', 43);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi3/class.tx_dlcubenewsletters_pi3.php', '_pi3', 'list_type', 0);
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '
	tt_content.shortcut.20.0.conf.tx_dlcubenewsletters_presse_ids = < plugin.' . t3lib_extMgm::getCN($_EXTKEY) . '_pi3
	tt_content.shortcut.20.0.conf.tx_dlcubenewsletters_presse_ids.CMD = singleView
', 43);
Пример #30
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, 'editorcfg', '
	tt_content.CSS_editor.ch.user_fdfactdbcc_pi1 = < plugin.user_fdfactdbcc_pi1.CSS_editor
', 43);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.user_fdfactdbcc_pi1.php', '_pi1', 'list_type', 0);