[TYPO3-dev] Move hardcoded New-Wizards to the $TCA

Malte Jansen mail at maltejansen.de
Wed Nov 14 20:26:22 CET 2007


Hi,

While checking the db_new for some other feature. I found out that the 
wizards (pages & tt_content) are hardcoded.

They could be easily moved to there $TCA-config, so the could would be 
clean of anything special:
...
[columns] => array(...)
[ctrl][wizards] => array (
     1 => array(
	"icon" => "path/icon.gif",
         "label" => "some label",
         "path" => "path to wizard",
         "db_new" => 1,
     ),
     2 => array(...)
)
..
So there must only be check for some TS of pages&tt_content for 
compability. New wizards, can easily added or exsting one can easily 
replaced via TCA.
And for other extension it is easier to make their own wizards. so you 
don't have to create module like Web>MyWizardModule.
So Wizards are registered and could be used anywhere else..



Cheers,

Malte




More information about the TYPO3-dev mailing list