DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

Template Green

Author:Kasper Skårhøj
Created:2002-11-01T00:32:00
Changed:2006-02-08T11:30:54
Author:René Fritz
Email:r.fritz@colorcube.de
Info 3:
Info 4:

Template Green

Extension Key: tmpl_green

Copyright 2002-2006, René Fritz, <r.fritz@colorcube.de>

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

Template Green 1

Introduction 1

Users manual 2

Configuration 3

To-Do list 3

Introduction

This extension includes the static template Green which is also available from the static templates table. Providing it as extension should show how it works to publish templates within an extension.

img-1

Users manual

This section includes a very short overview how it works to put a template in an extension. Have a look in the To-Do list, also.

Files and folders inside the extension folder tmpl_green/:

img-2

((generated))

((generated))
ext_emconf.php

This file is created by the extension kickstarter which you should use to create a new extension. In the “General info” section in the kickstarter choose “Templates” as extension category. This will result in ext_emconf.php with:

'category' => 'templates',
ext_tables.php

This file has the following line:

t3lib_extMgm::addStaticFile($_EXTKEY,'static/','GREEN (extension example)');

Use always the folder static/ for the template definition files (constants.txt, setup.txt, ...).

The third parameter is the title which will be shown in template records for selection.

static/

This folder includes following files:

constants.txt – TypoScript constants

setup.txt – TypoScript setup

include_static.txt – record id's of the static templates this template depends on (“content (default)” = 43)

files/

This folder holds the files which are needed by the template. These are the HTML template file, some images but also the images which are shown in the constants editor.

It's not needed to put these files in a files/ folder. You can use whatever you want. It's also possible to split the files in different folders. The references to the files are set in the files static/constants.txt and static/setup.txt.Example:

page.file {
  template = EXT:tmpl_green/files/template.tmpl

Configuration

Like any other template.

Use the constant editor from the template module or overwrite parts with your own TypoScript.

To-Do list

Writing documentation for putting a static template into an extension.

Volunteers?

I will not do that. I just provided this example as a start for template developers.

Any proof reading (english and content) of this document is welcome.

img-3 Template Green - 3