/**
* Creates the onclick event for the insert-icons.
+ *
+ * TSconfig mod.web_list.newPageWiz.overrideWithExtension may contain an extension which provides a module
+ * to be used instead of the normal create new page wizard.
*
* @param integer The pid.
* @param integer New page id.
function onClickEvent($pid,$newPagePID) {
$TSconfigProp = $this->getModConfig($newPagePID);
- if ($TSconfigProp['useTemplaVoila']) {
- if (t3lib_extMgm::isLoaded('templavoila')) {
- $onclick = "document.location='".t3lib_extMgm::extRelPath('templavoila').'mod1/index.php?cmd=crPage&positionPid='.$pid."';";
+ if ($TSconfigProp['overrideWithExtension']) {
+ if (t3lib_extMgm::isLoaded($TSconfigProp['overrideWithExtension'])) {
+ $onclick = "document.location='".t3lib_extMgm::extRelPath($TSconfigProp['overrideWithExtension']).'mod1/index.php?cmd=crPage&positionPid='.$pid."';";
return $onclick;
}
}
* @see onClickEvent()
*/
function getModConfig($pid) {
- global $BE_USER;
if (!isset($this->getModConfigCache[$pid])) {
// Acquiring TSconfig for this PID:
$this->getModConfigCache[$pid] = t3lib_BEfunc::getModTSconfig($pid,$this->modConfigStr);
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_positionmap.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_positionmap.php']);
}
-?>
+?>
\ No newline at end of file