Bug #19749 » overrideWithExtension_v2.diff
t3lib/class.t3lib_positionmap.php (working copy) | ||
---|---|---|
if ($TSconfigProp['overrideWithExtension']) {
|
||
if (t3lib_extMgm::isLoaded($TSconfigProp['overrideWithExtension'])) {
|
||
$onclick = "window.location.href='".t3lib_extMgm::extRelPath($TSconfigProp['overrideWithExtension']).'mod1/index.php?cmd=crPage&positionPid='.$pid."';";
|
||
// look for configured url first
|
||
if ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['newPageWiz'][$TSconfigProp['overrideWithExtension']]) {
|
||
$url = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['newPageWiz'][$TSconfigProp['overrideWithExtension']];
|
||
} else {
|
||
$url = t3lib_extMgm::extRelPath($TSconfigProp['overrideWithExtension']) . 'mod1/index.php';
|
||
}
|
||
|
||
$onclick = "window.location.href='" . $url . (strpos($url, '?') ? '&' : '?') . 'cmd=crPage&positionPid='.$pid."';";
|
||
return $onclick;
|
||
}
|
||
}
|
typo3/alt_clickmenu.php (working copy) | ||
---|---|---|
// If mod.web_list.newContentWiz.overrideWithExtension is set, use that extension's create new content wizard instead:
|
||
$tmpTSc = t3lib_BEfunc::getModTSconfig($this->pageinfo['uid'],'mod.web_list');
|
||
$tmpTSc = $tmpTSc ['properties']['newContentWiz.']['overrideWithExtension'];
|
||
$newContentWizScriptPath = t3lib_extMgm::isLoaded($tmpTSc) ? (t3lib_extMgm::extRelPath($tmpTSc).'mod1/db_new_content_el.php') : 'sysext/cms/layout/db_new_content_el.php';
|
||
$url = ($table=='pages' || !t3lib_extMgm::isLoaded('cms')) ? 'db_new.php?id='.$uid.'&pagesOnly=1' : $newContentWizScriptPath.'?id='.$rec['pid'].'&sys_language_uid='.intval($rec['sys_language_uid']);
|
||
|
||
if ($tmpTSc && t3lib_extMgm::isLoaded($tmpTSc)) {
|
||
if ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['newContentWiz'][$tmpTSc]) {
|
||
$newContentWizScriptPath = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['newContentWiz'][$tmpTSc];
|
||
} else {
|
||
$newContentWizScriptPath = t3lib_extMgm::extRelPath($tmpTSc) . 'mod1/db_new_content_el.php';
|
||
}
|
||
} else {
|
||
$newContentWizScriptPath = 'sysext/cms/layout/db_new_content_el.php';
|
||
}
|
||
|
||
$url = ($table=='pages' || !t3lib_extMgm::isLoaded('cms')) ? 'db_new.php?id=' . $uid . '&pagesOnly=1' : $newContentWizScriptPath . (strpos($newContentWizScriptPath, '?') ? '&' : '?') . 'id=' . $rec['pid'] . '&sys_language_uid=' . intval($rec['sys_language_uid']);
|
||
return $this->linkItem(
|
||
$GLOBALS['LANG']->makeEntities($GLOBALS['LANG']->getLL('CM_newWizard')),
|
||
$this->excludeIcon('<img'.t3lib_iconWorks::skinImg($this->PH_backPath,'gfx/new_'.($table=='pages'?'page':'record').'.gif','width="'.($table=='pages'?'13':'16').'" height="12"').' alt="" />'),
|
typo3/class.db_list_extra.inc (working copy) | ||
---|---|---|
// If mod.web_list.newContentWiz.overrideWithExtension is set, use that extension's create new content wizard instead:
|
||
$tmpTSc = t3lib_BEfunc::getModTSconfig($this->pageinfo['uid'],'mod.web_list');
|
||
$tmpTSc = $tmpTSc ['properties']['newContentWiz.']['overrideWithExtension'];
|
||
$newContentWizScriptPath = $this->backPath.t3lib_extMgm::isLoaded($tmpTSc) ? (t3lib_extMgm::extRelPath($tmpTSc).'mod1/db_new_content_el.php') : 'sysext/cms/layout/db_new_content_el.php';
|
||
if ($tmpTSc && t3lib_extMgm::isLoaded($tmpTSc)) {
|
||
if ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['newContentWiz'][$tmpTSc]) {
|
||
$newContentWizScriptPath = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['newContentWiz'][$tmpTSc];
|
||
} else {
|
||
$newContentWizScriptPath = t3lib_extMgm::extRelPath($tmpTSc) . 'mod1/db_new_content_el.php';
|
||
}
|
||
} else {
|
||
$newContentWizScriptPath = 'sysext/cms/layout/db_new_content_el.php';
|
||
}
|
||
$icon = '<a href="#" onclick="'.htmlspecialchars('return jumpExt(\''.$newContentWizScriptPath.'?id='.$this->id.'\');').'">'.
|
||
$icon = '<a href="#" onclick="' . htmlspecialchars('return jumpExt(\'' . $newContentWizScriptPath . ((strpos($newContentWizScriptPath, '?') ? '&' : '?') . 'id=' . $this->id . '\');') . '">' .
|
||
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/new_'.($table=='pages'?'page':'el').'.gif','width="'.($table=='pages'?13:11).'" height="12"').' title="'.$LANG->getLL('new',1).'" alt="" />'.
|
||
'</a>';
|
||
} elseif ($table=='pages' && $this->newWizards) {
|
typo3/db_new.php (working copy) | ||
---|---|---|
// If mod.web_list.newContentWiz.overrideWithExtension is set, use that extension's wizard instead:
|
||
$overrideExt = $this->web_list_modTSconfig['properties']['newContentWiz.']['overrideWithExtension'];
|
||
$pathToWizard = (t3lib_extMgm::isLoaded($overrideExt)) ? (t3lib_extMgm::extRelPath($overrideExt).'mod1/db_new_content_el.php') : 'sysext/cms/layout/db_new_content_el.php';
|
||
$href = $pathToWizard.'?id='.$this->id.'&returnUrl='.rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'));
|
||
if ($overrideExt && t3lib_extMgm::isLoaded($overrideExt)) {
|
||
if ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['newContentWiz'][$overrideExt]) {
|
||
$pathToWizard = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['newContentWiz'][$overrideExt];
|
||
} else {
|
||
$pathToWizard = t3lib_extMgm::extRelPath($overrideExt) . 'mod1/db_new_content_el.php';
|
||
}
|
||
} else {
|
||
$pathToWizard = 'sysext/cms/layout/db_new_content_el.php';
|
||
}
|
||
|
||
$href = $pathToWizard . (strpos($pathToWizard, '?') ? '&' : '?') . 'id=' . $this->id . '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'));
|
||
$rowContent.= '<br /><img'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/ol/line.gif','width="18" height="16"').' alt="" />'.
|
||
'<img'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/ol/joinbottom.gif','width="18" height="16"').' alt="" />'.
|
||
'<a href="'.htmlspecialchars($href).'"><img'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/new_record.gif','width="16" height="12"').' alt="" /> '.
|
typo3/sysext/fe_edit/view/class.tx_feedit_adminpanel.php (working copy) | ||
---|---|---|
// If mod.web_list.newContentWiz.overrideWithExtension is set, use that extension's create new content wizard instead:
|
||
$tmpTSc = t3lib_BEfunc::getModTSconfig($this->pageinfo['uid'],'mod.web_list');
|
||
$tmpTSc = $tmpTSc ['properties']['newContentWiz.']['overrideWithExtension'];
|
||
$newContentWizScriptPath = t3lib_extMgm::isLoaded($tmpTSc) ? (t3lib_extMgm::extRelPath($tmpTSc) . 'mod1/db_new_content_el.php') : (TYPO3_mainDir . 'sysext/cms/layout/db_new_content_el.php');
|
||
if ($tmpTSc && t3lib_extMgm::isLoaded($tmpTSc)) {
|
||
if ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['newContentWiz'][$tmpTSc]) {
|
||
$newContentWizScriptPath = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['newContentWiz'][$tmpTSc];
|
||
} else {
|
||
$newContentWizScriptPath = t3lib_extMgm::extRelPath($tmpTSc) . 'mod1/db_new_content_el.php';
|
||
}
|
||
} else {
|
||
$newContentWizScriptPath = 'sysext/cms/layout/db_new_content_el.php';
|
||
}
|
||
|
||
$perms = $GLOBALS['BE_USER']->calcPerms($GLOBALS['TSFE']->page);
|
||
$langAllowed = $GLOBALS['BE_USER']->checkLanguageAccess($GLOBALS['TSFE']->sys_language_uid);
|
||
... | ... | |
if ($GLOBALS['TSFE']->sys_language_uid) {
|
||
$params = '&sys_language_uid=' . $GLOBALS['TSFE']->sys_language_uid;
|
||
}
|
||
$toolBar .= '<a href="' . htmlspecialchars($newContentWizScriptPath . '?id=' . $id . $params . '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'))) . '">' .
|
||
$toolBar .= '<a href="' . htmlspecialchars($newContentWizScriptPath . (strpos($newContentWizScriptPath, '?') ? '&' : '?') . 'id=' . $id . $params . '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'))) . '">' .
|
||
'<img src="' . TYPO3_mainDir . 'gfx/new_record.gif" width="16" height="12" hspace="1" border="0" align="top" title="' . $this->extGetLL('edit_newContentElement') . '" alt="" /></a>';
|
||
}
|
||
if ($perms&2) {
|
- « Previous
- 1
- 2
- Next »