Feature #18194
closedRemove Static Templates from Standard Installation
0%
Description
As discussion in dev-List titled "Moving old "static templates" to a sysext" pointed out, there is an overall wish to exclude outdated static_templates from future releases...
Based upon this and in discussion with Benjamin Mack I created a patch, concerning most of the things discussed.
What does ist do:
- remove table and tca information about table static_templates from sysext cms
- remove column (sql and tca) static_template from table sys_template
- create sysext statictemplates including the table definition for static_templates, the tca, and adds, if loaded the the missing field back to sys_template.
- sysext has static data integrated which user can load with ExtMgm, probably it should be moved to another extension.
- it implements also another plugin for the UpdateWizard of the install tool.
It checks for references to static_templates (as on updates the table is in database and refindex knows about them). If references are found, sysext statictemplates is loaded. In addition it has the functionality to delete all static-templates which are not referenced whith looking at depencies between static-templates (currently commentet out, probably for later versions)
If no reference is found it hints the user that he might delete the static_templates with the compare function of install tool.
I hope i Did not miss anything
(issue imported from #M7501)
Files
Updated by Steffen Ritter almost 17 years ago
My results of further testing my patch:
- TS FE does not care of these changes, since rendering parts are not executed if $row['static_templates'] is not set...
- I missed to include a change in Web->Template Module into the diff, for this i have an updated version.
Hopefully some of you will test it
Updated by Thorsten Kahler over 16 years ago
Updated by Benni Mack about 15 years ago
Updated by Benni Mack about 15 years ago
The patch solves everything except:
- Removing the static file - svn rm typo3/sysext/cms/ext_tables_static+adt.sql
- Modifying the tstemplate-module.
I will add the latter tomorrow.
The system extension needs to be put in typo3/sysext/.
Updated by Benni Mack about 15 years ago
OK. Now I think we're done.
The sysext + the new patch (2009_v2.patch) + svn rm typo3/sysext/cms/ext_tables_static+adt.sql should keep backwards compatibility.
If we want to move statictemplates to the TER, we need to modify the ext_tables_static+adt.sql to replace typo3/sysext/statictemplates/, to maybe EXT: (we could do that anyway)...
Updated by Benni Mack about 15 years ago
- media folder has been updated to reflect the latest changes in the TYPO3 trunk.
- Use of
- Proper author info in two files of the new extension
- ext_tables_static+adt.sql in the sysext now uses EXT: format of the file references to the media folder
Updated by Susanne Moog almost 15 years ago
One small thing was still wrong with the last version: The ext_tables.sql contained an ALTER TABLE instead of a CREATE TABLE, so it was not recognized by the db compare tool and thus not created.
Updated by Benni Mack almost 15 years ago
Updated to current trunk and worked Susannes's patch in there.
Updated by Benni Mack almost 15 years ago
committed v7 to trunk (rev. 6920) - v4.4