Ejemplo n.º 1
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// Extending TypoScript from static template uid=43 to set up parsing of custom file abstraction attributes on img tag
\TYPO3\CMS\Core\Extension\ExtensionManager::addTypoScript($_EXTKEY, 'setup', '
	#******************************************************
	# Including library for processing of custom file abstraction attributes on img tag
	#******************************************************
	##includeLibs.tx_rtehtmlarea_renderimgtag = EXT:rtehtmlarea/extensions/TYPO3Image/class.tx_rtehtmlarea_renderimgtag.php

	lib.parseFunc_RTE {
		##tags.img = TEXT
		##tags.img {
		##	current = 1
		##	preUserFunc = tx_rtehtmlarea_renderimgtag->renderImgageAttributes
		##}
		nonTypoTagStdWrap.HTMLparser.tags.img.fixAttrib {
			data-htmlarea-file-uid.unset = 1
			data-htmlarea-file-table.unset = 1
		}
	}
', 43);
Ejemplo n.º 2
0
  includeLibs = EXT:felogin/pi1/class.tx_felogin_pi1.php
  userFunc = tx_felogin_pi1->main
}
');
\TYPO3\CMS\Core\Extension\ExtensionManager::addTypoScript($_EXTKEY, 'setup', '
# Setting ' . $_EXTKEY . ' plugin TypoScript
' . $pluginContent);
$addLine = '
tt_content.login = COA
tt_content.login {
	10 = < lib.stdheader
	20 >
	20 = < plugin.tx_felogin_pi1
}
';
\TYPO3\CMS\Core\Extension\ExtensionManager::addTypoScript($_EXTKEY, 'setup', '# Setting ' . $_EXTKEY . ' plugin TypoScript' . $addLine . '', 43);
\TYPO3\CMS\Core\Extension\ExtensionManager::addPageTSConfig('
mod.wizards.newContentElement.wizardItems.forms {
	elements {
		login {
			icon = gfx/c_wiz/login_form.gif
			title = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_login_title
			description = LLL:EXT:cms/layout/locallang_db_new_content_el.xml:forms_login_description
			tt_content_defValues {
				CType = login
			}
		}
	}
	show :=addToList(login)
}
');