Project

General

Profile

Actions

Feature #18194

closed

Remove Static Templates from Standard Installation

Added by Steffen Ritter about 16 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2008-02-12
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

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

static_templates.diff (1.04 MB) static_templates.diff Administrator Admin, 2008-02-12 15:33
static_templates2.diff (1.04 MB) static_templates2.diff Administrator Admin, 2008-02-13 09:14
static_templates_2009.patch (14.7 KB) static_templates_2009.patch Administrator Admin, 2009-11-14 22:52
T3X_statictemplates-1_0_0-z-200911142252.t3x (1.29 MB) T3X_statictemplates-1_0_0-z-200911142252.t3x Administrator Admin, 2009-11-14 22:54
static_templates_2009_v2.patch (16.6 KB) static_templates_2009_v2.patch Administrator Admin, 2009-11-14 23:08
static_templates_2009_v3.patch (12.5 KB) static_templates_2009_v3.patch Administrator Admin, 2009-11-15 11:32
T3X_statictemplates-1_0_0_2009-v3.t3x (1.29 MB) T3X_statictemplates-1_0_0_2009-v3.t3x Administrator Admin, 2009-11-15 11:35
static_templates_2009_v4.patch (17.5 KB) static_templates_2009_v4.patch Administrator Admin, 2009-11-19 17:27
T3X_statictemplates-1_0_0-v4.t3x (1.3 MB) T3X_statictemplates-1_0_0-v4.t3x Administrator Admin, 2009-11-19 17:43
T3X_statictemplates-1_0_0-v5.t3x (1.3 MB) T3X_statictemplates-1_0_0-v5.t3x Administrator Admin, 2009-11-19 18:01
ext_tables_fixed.sql (627 Bytes) ext_tables_fixed.sql Administrator Admin, 2009-11-22 18:05
T3X_statictemplates-1_0_0-v6.t3x (1.3 MB) T3X_statictemplates-1_0_0-v6.t3x Administrator Admin, 2010-01-04 13:07
static_templates_2009_v6.patch (13 KB) static_templates_2009_v6.patch Administrator Admin, 2010-01-04 13:07
0007501_v7.patch (17.6 KB) 0007501_v7.patch Administrator Admin, 2010-02-20 14:21

Related issues 2 (0 open2 closed)

Has duplicate TYPO3 Core - Bug #20613: Remove all DEPRECATED Static TemplatesClosedChristian Kuhn2009-06-13

Actions
Precedes TYPO3 Core - Task #46358: Separate ext:statictemplates code from coreClosed2013-03-16

Actions
Actions #1

Updated by Steffen Ritter about 16 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

Actions #3

Updated by Benni Mack over 14 years ago

Will be worked on for version 4.4

Actions #5

Updated by Benni Mack over 14 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/.

Actions #6

Updated by Benni Mack over 14 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)...

Actions #7

Updated by Benni Mack over 14 years ago

Attached is a patch and the new sysext that fixes the following things:
  • 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
Actions #8

Updated by Susanne Moog over 14 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.

Actions #9

Updated by Benni Mack about 14 years ago

Updated to current trunk and worked Susannes's patch in there.

Actions #10

Updated by Benni Mack about 14 years ago

committed v7 to trunk (rev. 6920) - v4.4

Actions #11

Updated by Susanne Moog almost 13 years ago

  • Target version deleted (4.4.0)
Actions

Also available in: Atom PDF