[TYPO3-core] RFC: #15686: Call the list module through the dispatcher instead directly

Helmut Hummel helmut at typo3.org
Sat Sep 11 16:31:08 CEST 2010


Hi,

this is a SVN patch request.

Type: feature/ cleanup
Branches: trunk
Bugtracker reference: http://bugs.typo3.org/view.php?id=15686

Problem:
Many core backend modules have their own "index" script and are accessed
by calling this script directly. However since some time now a module
dispatcher was introduced (mod.php) which does some basic initialisation
and after that includes the module code. By having a central entry and
exit point for modules it would be much easier to change the
initialisation and perform cleanups at one place instead of doing it in
several places.

Solution:
Use the dispatcher for the list module and change all links to it
accordingly.

How to test:
Apply the patch and check if all list module stuff works like before,
but the script link should now always be mod.php?M=web_list

Notes:
Since the list module moved to sysext in the current trunk and backards
compatibility is already maintained by redirecting to the right
location, there's no need to add a fallback in the current script.

While searching and replacing the old links to db_list.php, I replaced
all of them with a call to the already present API call to
t3lib_extMgm::createListViewLink(). So future changes to the location
would be much easier. To achieve that I needed to do some minor
modifications to that API function, still keeping the backwards
compatibility for it.

The patch introduces a new index.php for the list module, for the ease
of reading the patch and beeing able to apply it easily. If the patch is
committed, then the old db_list.php should be SVN renamed
to index.php instead.

Regards Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 15686.diff
Type: text/x-patch
Size: 10630 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100911/06eca70c/attachment-0001.bin>


More information about the TYPO3-team-core mailing list