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.

EXT: oecolorscheme

Author:Kasper Skårhøj
Created:2002-11-01T00:32:00
Changed:2013-04-04T11:54:07
Author:das oe
Email:christian.oettinger@gmx.de
Info 3:
Info 4:

EXT: oecolorscheme

Extension Key: oecolorscheme

Copyright 2000-2002, das oe, <christian.oettinger@gmx.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

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

What does it do?

This mostsimple extension adds different colors to the blocks of fields in BE. When you edit a Text with image for example header is one block, text is one and all fields used for image control are one. This is great for simplified working and the colors make it even easier to distiguish between the blocks. Thanks to the fairly consinstent pre-configuration for coloring of Typo3 itself you can so aid assoziative working for BE-users, for e.g. each block having something to do with images appears in the same color scheme. My clients love it.

Screenshots

img-1 without this extension

img-2 with this extension

Users manual

Simply install the extension using the extension manager and you are done. You might want to edit the default colors, though. In this case, see Administration.

img-3 Adminstration

To override the default values simply click on this extension in extension manager. You get an overview with Configuration options:

Just insert 3 RGB-Hex-Values (seperated by Commas) for each of the 5 colorscheme blocks. Example: #D5DDE4,#98ACBF,#98ACBF. First Value is Background of the Block, second is Background of Header, third is Background of highlighting inside the Block.

Click Update to write the values.

How to use Colorschemes in your own extension:

In your extensions you define the blocks (i.e. grouping of fields) in tca.php. An example:

if (!defined ('TYPO3_MODE')) die ('Access denied.');

$TCA["EXTENSIONKEY"] = Array (

"ctrl" => $TCA["EXTENSIONKEY"]["ctrl"],..."types" => Array ("0" => Array("showitem" => "hidden;;;;1-1-1, internaltitle;;;;2-2-2, title, image;;;;3-3-3, imageposition, keywords;;;;2-2-2")...

In this example hidden is in an extra block with the first colorscheme, internaltitle and title in another, image and imageposition in the next, keywords finally in yet another. Each block has another color. Keywords has the same colorscheme as the tile block . The strings like ";;;;1-1-1" start the new blocks and define wich colors are used. For more information see the core reference.

Which colors to choose for which field

The coloring of the fields in Typo3 is done in a fairly consistent manner. The idea behind this extension is to simplify working so in your own coloring you should try to keep this logic. Very roughly speaking Typo3 uses the following colorschemes for fields:

1 is used for the first block, usually “type” and “hidden”

2 is used for headers

3 is used for blocks regarding text

4 is used for blocks regarding images

5 is used for files and specific options

general options (found on the end) are without colorscheme, they resemble the most scheme 1

Configuration

See Administration.

Known problems

  • This extension may interfere with skin extensions, for maybe both define color schemes. This is not a real problem, though. Just make sure to install this extension after the skin extension.
  • After an update you may experience your colors lost. Same problem as above, the extension has to loaded as last extension dealing with skinning. Just de-install the extension and install it again and you are done.
  • With some Versions of TYPO3 IRRE Fields may not take the defined coloring. As far as I know this is because IRRE did not use the coloring scheme of TYPO3. With newer versions of TYPO3 this seems to have changed (very likely thanks to Oliver Hader who kindly listened to me about this problem). Thanks!
  • Please tell if you encounter any other problems.

To-Do list

For me it's enough like that, I don't see any real use in developing it further. But please contact me if you have wishes or ideas. I am happy to make the extension better.

Changelog

0.0.1 first version

0.1.0 added a small tutorial

0.2.0 added configuration option via Extension manager, revised tutorial. That's it!

0.2.1 added a rough list which colorschemes are used for which fields in Typo3

0.3.2 (Sorry, versioning confusion on upload) Added dependency because of TER clean up. Changed default colors

img-4 EXT: oecolorscheme - 3