.. You may want to use the usual include line. Uncomment and adjust the path. .. include:: ../Includes.txt ============================= EXT: Default Static Templates ============================= :Author: Kasper Skårhøj :Created: 2002-11-01T00:32:00 :Changed: 2004-05-27T16:02:05 :Author: Stephane Schitter :Email: stephane.schitter@free.fr :Info 3: :Info 4: .. _EXT-Default-Static-Templates: EXT: Default Static Templates ============================= Extension Key: **defaultstatic\_tmpl** Copyright 2000-2002, Stephane Schitter, This document is published under the Open Content License available from http://www.opencontent.org/opl.shtml The content of this document is related to TYPO3 \- a GNU/GPL CMS/Framework available from www.typo3.com .. _Table-of-Contents: Table of Contents ----------------- **EXT: My Extension 1** **Introduction 1** What does it do? 1 Screenshots 1 **Users manual 1** FAQ 1 **Adminstration 1** FAQ 2 **Configuration 2** FAQ 2 Reference 2 **Tutorial 2** **Known problems 2** **To-Do list 2** **Changelog 2** .. _Introduction: Introduction ------------ .. _What-does-it-do: What does it do? ^^^^^^^^^^^^^^^^ This extension contains all the default static templates that used to be included with Typo3 version 3.6 and earlier. They are now a fully separated extension but have the exact same functionalities. The default static templates are also used in the exact same way when they are in an extension or when they are sent bundled with Typo3. The reason for separating default static templates from the Typo3 build is twofold: - prove the concept already defined by René Fritz when he built tmpl\_green [1], and further document the process of creating standalone template extensions. - Reduce the footprint and dependencies of Typo3 on modules or parts that make more sense as extensions rather than as built-in features. Please note that the extension will only work on Typo3 3.6 and above. If you would like to make it work on Typo3 3.5, you will require the compatibility-3.5 set of scripts [1] found in the tmpl\_green extension. [1] `http://typo3.org/documentation/document-library/tmpl\_green/ `_ .. _Screenshots: Screenshots ^^^^^^^^^^^ Edit your website template that you would like to base on a static template. Click on the “Click here to edit whole template record” link to display the static inclusions selector boxes. |img-1| The choose the template to use from the “Items” list and click on it so that it gets copied to the “Selected” list: |img-2| .. _Typo3-3-6-cleanup: Typo3 3.6 cleanup ----------------- If you would like to test the Default static templates extension on Typo3 3.6 or earlier, that shipped with the templates as a statically bundled package, it is best if you remove the old files. The cleanup process requires you to edit the database backend data, as well as remove some files in the typo3 directory. .. _generated: ((generated)) ^^^^^^^^^^^^^ .. _Edit-database-data: Edit database data """""""""""""""""" You have the choice of the SQL commands you want to execute. You can either delete unwanted static entries by name, or by uid. Simply open your preferred SQL administration tool (for example phpmyadmin) and issue one of the following two command sets. To remove templates and their dependencies by name: :: DELETE FROM `static_template` WHERE `title` = 'template; FIRST' LIMIT 1; DELETE FROM `static_template` WHERE `title` = 'template: BUG' LIMIT 1; DELETE FROM `static_template` WHERE `title` = 'template: MM' LIMIT 1; DELETE FROM `static_template` WHERE `title` = 'template; TU' LIMIT 1; DELETE FROM `static_template` WHERE `title` = 'template; BUSINESS' LIMIT 1; DELETE FROM `static_template` WHERE `title` = 'template; CANDIDATE' LIMIT 1; DELETE FROM `static_template` WHERE `title` = 'template; RE' LIMIT 1; DELETE FROM `static_template` WHERE `title` = 'template; NEWSLETTER' LIMIT 1; DELETE FROM `static_template` WHERE `title` = 'template; HYPER' LIMIT 1; DELETE FROM `static_template` WHERE `title` = 'template; CrCPH' LIMIT 1; DELETE FROM `static_template` WHERE `title` = 'template; GREEN' LIMIT 1; DELETE FROM `static_template` WHERE `title` = 'template; GLÜCK' LIMIT 1; DELETE FROM `static_template` WHERE `title` = 'styles.gmenu.bug' LIMIT 1; DELETE FROM `static_template` WHERE `title` = 'styles.gmenu.first' LIMIT 1; DELETE FROM `static_template` WHERE `title` = 'styles.hmenu.tu' LIMIT 1; DELETE FROM `static_template` WHERE `title` = 'styles.gmenu_layer.green' LIMIT 1; To remove templates and their dependencies by uid: :: DELETE FROM `static_template` WHERE `uid` = '49' LIMIT 1; DELETE FROM `static_template` WHERE `uid` = '41' LIMIT 1; DELETE FROM `static_template` WHERE `uid` = '48' LIMIT 1; DELETE FROM `static_template` WHERE `uid` = '52' LIMIT 1; DELETE FROM `static_template` WHERE `uid` = '54' LIMIT 1; DELETE FROM `static_template` WHERE `uid` = '69' LIMIT 1; DELETE FROM `static_template` WHERE `uid` = '70' LIMIT 1; DELETE FROM `static_template` WHERE `uid` = '71' LIMIT 1; DELETE FROM `static_template` WHERE `uid` = '72' LIMIT 1; DELETE FROM `static_template` WHERE `uid` = '73' LIMIT 1; DELETE FROM `static_template` WHERE `uid` = '74' LIMIT 1; DELETE FROM `static_template` WHERE `uid` = '89' LIMIT 1; DELETE FROM `static_template` WHERE `uid` = '40' LIMIT 1; DELETE FROM `static_template` WHERE `uid` = '50' LIMIT 1; DELETE FROM `static_template` WHERE `uid` = '53' LIMIT 1; DELETE FROM `static_template` WHERE `uid` = '75' LIMIT 1; .. _Delete-unnecessary-files: Delete unnecessary files """""""""""""""""""""""" The templates are build with either pictures, or template html files, or even stylesheet files. These files used to be shipped with Typo3 3.6 and earlier, and if you are using the defaultstatic\_tmpl extension, a cleanup of these files may be useful to keep the source directory tight and nice. The instructions written here assume you are running a Unix-like operating system. If you are using windows, simply convert the delete commands to their equivalent, or even the Explorer can be used to remove the specified directories. To remove the unnecessary "globally installed" pictures: :: TYPO3DIR=/var/www/typo3_src/tslib rm -rf $TYPO3DIR/media/uploads/candidate rm -rf $TYPO3DIR/media/uploads/crcph rm -rf $TYPO3DIR/media/uploads/green rm -rf $TYPO3DIR/media/uploads/hyper rm -rf $TYPO3DIR/media/uploads/newsletter rm -rf $TYPO3DIR/media/uploads/re .. _Configuration: Configuration ------------- .. _Reference: Reference ^^^^^^^^^ Please refer to the “Details of static templates” manual for a full reference of the TypoScript content: `http://typo3.org/documentation/document-library/doc\_statictmpl/ `_ .. _Known-problems: Known problems -------------- none .. _To-Do-list: To-Do list ---------- - Rewrite this documentation with more screenshots and more details as to how the template extension was built (all issues that occurred when converting) - Write another documentation on how to build such a template from scratch to help fast websites building to new users. .. _Overview-of-default-templates: Overview of default templates ----------------------------- Here you will find screeshots of all the included templates. These screens are the same pictures than those found in the Template Constants Configurator. .. ### BEGIN~OF~TABLE ### .. _Template-BUG: Template: BUG ^^^^^^^^^^^^^ .. container:: table-row a Template: BUG |img-3| b Template: BUSINESS |img-4| c Template: CANDIDATE |img-5| .. _Template-CrCPH: Template: CrCPH ^^^^^^^^^^^^^^^ .. container:: table-row a Template: CrCPH |img-6| b Template: FIRST |img-7| c Template: GLÜCK |img-8| .. _Template-GREEN: Template: GREEN ^^^^^^^^^^^^^^^ .. container:: table-row a Template: GREEN |img-9| b Template: HYPER |img-10| c Template: MM |img-11| .. _Template-NEWSLETTER: Template: NEWSLETTER ^^^^^^^^^^^^^^^^^^^^ .. container:: table-row a Template: NEWSLETTER |img-12| b Template: RE |img-13| c Template: TU |img-14| .. ###### END~OF~TABLE ###### .. _Changelog: Changelog --------- \- 27 May 2004: Initial version. |img-15| EXT: Default Static Templates - 4 .. ######CUTTER_MARK_IMAGES###### .. |img-1| image:: img-1.png .. :align: left .. :border: 0 .. :height: 65 .. :id: Graphic3 .. :name: Graphic3 .. :width: 266 .. |img-2| image:: img-2.png .. :align: left .. :border: 0 .. :height: 152 .. :id: Graphic16 .. :name: Graphic16 .. :width: 575 .. |img-3| image:: img-3.png .. :align: left .. :border: 0 .. :height: 195 .. :id: Graphic4 .. :name: Graphic4 .. :width: 216 .. |img-4| image:: img-4.png .. :align: left .. :border: 0 .. :height: 144 .. :id: Graphic5 .. :name: Graphic5 .. :width: 216 .. |img-5| image:: img-5.png .. :align: left .. :border: 0 .. :height: 167 .. :id: Graphic6 .. :name: Graphic6 .. :width: 216 .. |img-6| image:: img-6.png .. :align: left .. :border: 0 .. :height: 158 .. :id: Graphic7 .. :name: Graphic7 .. :width: 216 .. |img-7| image:: img-7.png .. :align: left .. :border: 0 .. :height: 162 .. :id: Graphic8 .. :name: Graphic8 .. :width: 216 .. |img-8| image:: img-8.png .. :align: left .. :border: 0 .. :height: 179 .. :id: Graphic9 .. :name: Graphic9 .. :width: 216 .. |img-9| image:: img-9.png .. :align: left .. :border: 0 .. :height: 193 .. :id: Graphic10 .. :name: Graphic10 .. :width: 216 .. |img-10| image:: img-10.png .. :align: left .. :border: 0 .. :height: 119 .. :id: Graphic11 .. :name: Graphic11 .. :width: 216 .. |img-11| image:: img-11.png .. :align: left .. :border: 0 .. :height: 137 .. :id: Graphic12 .. :name: Graphic12 .. :width: 216 .. |img-12| image:: img-12.png .. :align: left .. :border: 0 .. :height: 191 .. :id: Graphic13 .. :name: Graphic13 .. :width: 216 .. |img-13| image:: img-13.png .. :align: left .. :border: 0 .. :height: 146 .. :id: Graphic14 .. :name: Graphic14 .. :width: 216 .. |img-14| image:: img-14.png .. :align: left .. :border: 0 .. :height: 196 .. :id: Graphic15 .. :name: Graphic15 .. :width: 216 .. |img-15| image:: img-15.png .. :align: left .. :border: 0 .. :height: 32 .. :id: Graphic1 .. :name: Graphic1 .. :width: 102