[TYPO3-core] RFC: C#6859 Clean up/Feature of db_new.php. Adding flexible newWizards
Malte Jansen
mail at maltejansen.de
Wed Dec 5 00:27:52 CET 2007
Damn, too fast again...
Here are the files
Malte Jansen schrieb:
>
> Hi!
>
> This is an SVN patch request.
>
> Type: Clean up / Feature
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=6887
>
> Branches:
> Trunk
>
> Problem:
> The new-record-listing (db_new.php) is very static and with many tables
> bulky. An other point is that the wizards are hardcoded. So it very
> difficult to add or change somesthing.
> The TS-function 'newPageWiz.overrideWithExtension' is not implemented.
>
>
> Solution:
> With this patch you can config newWizards via $TCA[table]['newWizards'].
> For details check out the txt-files and the examples under Notes
>
>
> Notes:
> db_new.php is now PHP5 conform. There was several lines of double-code etc.
> .
> The patch also includes the changes for moving the pages- and
> tt_content-wizards to their $TCA.
>
> I have not include 'newPageWiz.overrideWithExtension' because now you
> can change override it via TCA and it was not implemented.
> newContentWiz.overrideWithExtension could be marked as outdated and
> removed in a later version.
>
>
> Here is a simple Example to get a clue:
> $TCA['tt_content']['newWizards'] => array(
> 0 => array(
> 'type' => 'wizard',
> 'label' => 'LLL:EXT:lang/locallang_misc.xml:clickForWizard',
> 'icon' => 'gfx/new_record.gif',
> 'path' =>
> t3lib_extMgm::extRelPath($_EXTKEY).'layout/db_new_content_el.php',
> ),
> );
>
> Now it's pretty easy to group Tables of an extension (e.g. tt_new):
> In this example the Kategorie is a Subentry of the main table...
> $TCA['tt_news']['newWizards'] = array(
> 0 => array(
> 'path' => 'table',
> 'table' => 'tt_news_cat',
> )
> );
> $TCA['tt_news_cat']['hideNewTable'] = 1;
>
>
>
> Cheers,
>
> Malte
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: db_new_cleanup_v1_(doc_core_api).txt
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071205/920ab08a/attachment-0002.txt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: db_new_cleanup_v1_(doc_core_tsconfig).txt
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071205/920ab08a/attachment-0003.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: db_new_cleanup_v1_(trunk).patch
Type: text/x-diff
Size: 27954 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071205/920ab08a/attachment-0001.patch
More information about the TYPO3-team-core
mailing list