Style guide
Constant Editor
Um eine Variable im Constant Editor bearbeiten zu können folgenden Kommentar voranstellen;:
# cat=news; type=string; label= Storage: page id of news storage
plugin.tt_news.pid_list = 37
Es sieht dann folgendermassen aus:
Name: Storage [plugin.tt_news.pid_list]
Beschreibung.: page id of news storage
Wert: 37
Kategorien
basic
Constants of superior importance for the template-layout. This is dimensions, imagefiles and enabling of
various features. The most basic constants, which you would almost always want to configure.
menu:
Menu setup. This includes fontfiles, sizes, background images. Depending on the menutype.
content:
All constants related to the display of pagecontent elements
page:
General configuration like metatags, link targets
advanced:
Advanced functions, which are used very seldomly.
Unterkategorien
z.B. "cat=basic/color/a"
enable
Used for options that enable or disable primary functions of a template
dims
Dimensions of all kinds; pixels, widths, heights of images, frames, cells and so on.
file
Files like background images, fonts and so on. Other options related to the file may also
enter
typo
Typography and related constants
color
Color setup. Many colors will be found with related options in other categories though.
links
Links: Targets typically
language
Language specific options
Typ
int
[low-high] integer, opt. in range "low" to "high"
int+
positive integer
offset [L1,L2,...L6]
comma-separated integers. Default is ?x,y?, but as comma separated parameters in brackets you can specify up to 6 labels being comma separated! If you wish to omit one of the last 4 fields, just don't enter a label for that element.
color
HTML color
wrap
HTML-code that is wrapped around some content.
options [item1,item2,...]
Selectbox with values/labels item1, item2 etc. Commaseparated. Split by "=" also and in that case, first part is label, second is value
boolean [truevalue]
Boolean, opt. you can define the value of "true", def.=1
comment
Boolean, checked= "", not-checked = "#".
file
[ext-list/IMAGE_EXT] Selectorbox with resources. Opt. list allowed extensions (no space in list!), eg. "[ttf]" or "[txt,html,htm]". You can also enter "[IMAGE_EXT]" in which case the default image- extensions are listed. (used for datatype "imgResouce")
string
(the default) Just a string value
Label
Teilen mit "|" um Sprachen zu unterscheiden, der Reihenfolge der Sprachen entsprechend in TYPO3.
Teilen mit dem ersten ":" um einen Header und Body des Kommentars zu unterscheiden. Der Header wird auf einer eigenen Zeile in Fettdrucj angezeigt.