[TYPO3-core] RFC: #16278: possibility to insert records of other tables

Franz Holzinger franz at ttproducts.de
Sat Nov 6 18:19:06 CET 2010


Hello,

this is a SVN patch request:

Branches: trunk

Reference:
http://bugs.typo3.org/view.php?id=16278

Type:
Feature

Problem:
The EM lacks a possibility to insert some records into the tables of 
other extensions.

This patch will allow to add records to static tables which belong to 
some extensions. The tables shall not be cleared before the records are 
added.
Image to add records to static_template or static_countries.

This incident is similar to 0016177.

Solution:
Add a hook which allows the extensions to determine by themselves if 
they want to insert the records of a table which belongs to another 
extension. This can be done by comparing the uid of the record. The 
extension must insert the records with a fix uid.

Note:
The hook needs some modifications in the code.

How to test:
(localconf.php of your extension 'test'):

if (TYPO3_MODE=='BE') {

     // allow the import of records into static_template
 
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/mod/tools/em/index.php']['checkDBimports'][] 
= 'EXT:test/hooks/class.tx_test_hooks_em.php:&tx_test_hooks_em';
}

Or install the most current extension mastertemplate 0.0.3.


Regards

- Franz
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: EMinsert.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101106/c88832c9/attachment.txt>


More information about the TYPO3-team-core mailing list