[TYPO3-dev] Proposal controlling content element wizard using TS Config for pages

Tapio Markula tapio.markula at dnainternet.net
Tue Aug 15 20:22:11 CEST 2006


Hi

Finally I got working idea to get content wizard to be selected
manually using page TS config.

I would like to see that implemented in core,
when developers could create in one branch
test site for standard page module
and in another branch for TemplaVoila
testing best alternative.

Proposal

1) mod.SHARED.new_content_wizard=standard/TemplaVoila

then for db_new.php


$PageTSConfig=t3lib_BEfunc::getPagesTSconfig($this->id);
						 
$contentWizard=$PageTSConfig['mod.']['SHARED.']['new_content_wizard'];
							
							if(isset($contentWizard) && $contentWizard=='TemplaVoila' && 
t3lib_extMgm::isLoaded('templavoila'))
								$pathToWizard = 
t3lib_extMgm::extRelPath('templavoila').'mod1/db_new_content_el.php';
							elseif(isset($contentWizard) && $contentWizard=='standard')
								$pathToWizard = 'sysext/cms/layout/db_new_content_el.php';
else // if values are not correct or not set automatic selection
$pathToWizard = (t3lib_extMgm::isLoaded($overrideExt)) ? 
(t3lib_extMgm::extRelPath($overrideExt).'mod1/db_new_content_el.php') : 
'sysext/cms/layout/db_new_content_el.php';

corresponding also for FE-editing.

Automatic selection is just extremely annoyin because if TemplaVoila
has been installed, the standard page module doesn't work anymore properly.




More information about the TYPO3-dev mailing list