Typo3 - Standardeinstellungen: Unterschied zwischen den Versionen
(→PageTS) |
|||
| Zeile 354: | Zeile 354: | ||
Wenn wie in neueren Versionen üblich die styled_content extension verwendet wird ist dieser Schritt nicht nötig. Dann legt Typo automatisch folgende Klassen an: | Wenn wie in neueren Versionen üblich die styled_content extension verwendet wird ist dieser Schritt nicht nötig. Dann legt Typo automatisch folgende Klassen an: | ||
| − | ==== HTML - Area ==== | + | ==== HTML - Area (RTE) ==== |
| + | |||
| + | <pre> | ||
| + | |||
| + | #*** RTE Classe des Interface (Ausrichtung) | ||
| + | RTE.classes { | ||
| + | align-left { | ||
| + | name = LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifyleft | ||
| + | value = text-align: left; | ||
| + | } | ||
| + | align-center { | ||
| + | name = LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifycenter | ||
| + | value = text-align: center; | ||
| + | } | ||
| + | align-right { | ||
| + | name = LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifyright | ||
| + | value = text-align: right; | ||
| + | } | ||
| + | } | ||
| + | |||
| + | # | ||
| + | # *** Entfernt das Bild vor den Links | ||
| + | RTE.classesAnchor { | ||
| + | internalLink { | ||
| + | class = internal-link | ||
| + | type = page | ||
| + | image > | ||
| + | } | ||
| + | externalLink { | ||
| + | class = external-link | ||
| + | type = url | ||
| + | image > | ||
| + | } | ||
| + | externalLinkInNewWindow { | ||
| + | class = external-link-new-window | ||
| + | type = url | ||
| + | image > | ||
| + | } | ||
| + | internalLinkInNewWindow { | ||
| + | class = internal-link-new-window | ||
| + | type = page | ||
| + | image > | ||
| + | } | ||
| + | download { | ||
| + | class = download | ||
| + | type = file | ||
| + | image > | ||
| + | } | ||
| + | mail { | ||
| + | class = mail | ||
| + | type = mail | ||
| + | image > | ||
| + | } | ||
| + | } | ||
| + | |||
| + | |||
| + | ## RTE Konfiguration | ||
| + | RTE.default { | ||
| + | |||
| + | # Zuweisung der CSS-Datei | ||
| + | contentCSS = rte_formate.css | ||
| + | |||
| + | ## Markup options | ||
| + | enableWordClean = 1 | ||
| + | removeTrailingBR = 1 | ||
| + | removeComments = 1 | ||
| + | removeTags = center, sdfield | ||
| + | removeTagsAndContents = style,script | ||
| + | |||
| + | # Buttons die gezeigt/versteckt werden | ||
| + | showButtons = textstyle, textstylelabel, blockstyle, blockstylelabel, bold, italic, underline, left, center, right, orderedlist, unorderedlist, insertcharacter, line, link, image, removeformat, table, toggleborders, tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge, findreplace, insertcharacter, undo, redo, showhelp, about | ||
| + | hideButtons = fontstyle, formatblock, fontsize, strikethrough,lefttoright, righttoleft, textcolor, bgcolor, textindicator, emoticon, user, spellcheck, chMode, inserttag, outdent, indent, justifyfull, subscript, superscript, acronym, copy, cut, paste | ||
| + | |||
| + | # Hält die RTE Icons gegroupt zusammen | ||
| + | keepButtonGroupTogether = 1 | ||
| + | |||
| + | # blendet Statusbar in htmlarea aus | ||
| + | showStatusBar = 0 | ||
| + | |||
| + | ## Add styles Left, center and right alignment of text in paragraphs and cells. | ||
| + | inlineStyle.text-alignment ( | ||
| + | p.align-left, h1.align-left, h2.align-left, h3.align-left, h4.align-left, h5.align-left, h6.align-left, td.align-left { text-align: left; } | ||
| + | p.align-center, h1.align-center, h2.align-center, h3.align-center, h4.align-center, h5.align-center, h6.align-center, td.align-center { text-align: center; } | ||
| + | p.align-right, h1.align-right, h2.align-right, h3.align-right, h4.align-right, h5.align-right, h6.align-right, td.align-right { text-align: right; } | ||
| + | ) | ||
| + | |||
| + | ## Use stylesheet file rather than the above mainStyleOverride and inlineStyle properties to style the contents (htmlArea RTE only) | ||
| + | ignoreMainStyleOverride = 1 | ||
| + | |||
| + | proc { | ||
| + | # tags die erlaubt / verboten sind | ||
| + | allowTags = table, tbody, tr, th, td, h1, h2, h3, h4, h5, h6, div, p, br, span, ul, ol, li, re, blockquote, strong, em, b, i, u, sub, sup, strike, a, img, nobr, hr, tt, q, cite, abbr, acronym, center | ||
| + | denyTags = font | ||
| + | |||
| + | # br wird nicht zu p konvertiert | ||
| + | dontConvBRtoParagraph = 1 | ||
| + | |||
| + | # tags sind erlaubt außerhalt von p, div | ||
| + | allowTagsOutside = img,hr | ||
| + | |||
| + | # erlaubte attribute in p, div tags | ||
| + | keepPDIVattribs = align,class,style,id | ||
| + | |||
| + | # List all class selectors that are allowed on the way to the database | ||
| + | allowedClasses ( | ||
| + | external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail, | ||
| + | align-left, align-center, align-right, author | ||
| + | ) | ||
| + | |||
| + | # html parser einstellungen | ||
| + | HTMLparser_rte { | ||
| + | |||
| + | # tags die erlaubt/verboten sind | ||
| + | allowTags < RTE.default.proc.allowTags | ||
| + | denyTags < RTE.default.proc.denyTags | ||
| + | |||
| + | # tags die untersagt sind | ||
| + | removeTags = font | ||
| + | |||
| + | # entfernt html-kommentare | ||
| + | removeComments = 1 | ||
| + | |||
| + | # tags die nicht übereinstimmen werden nicht entfernt (protect / 1 / 0) | ||
| + | keepNonMatchedTags = 0 | ||
| + | } | ||
| + | |||
| + | |||
| + | # Content to database | ||
| + | entryHTMLparser_db = 1 | ||
| + | entryHTMLparser_db { | ||
| + | |||
| + | # tags die erlaubt/verboten sind | ||
| + | allowTags < RTE.default.proc.allowTags | ||
| + | denyTags < RTE.default.proc.denyTags | ||
| + | |||
| + | # CLEAN TAGS | ||
| + | noAttrib = b, i, u, strike, sub, sup, strong, em, quote, blockquote, cite, tt, br, center | ||
| + | |||
| + | rmTagIfNoAttrib = span,div,font | ||
| + | |||
| + | # htmlSpecialChars = 1 | ||
| + | |||
| + | ## align attribute werden erlaubt | ||
| + | tags { | ||
| + | p.fixAttrib.align.unset > | ||
| + | p.allowedAttribs = class,style,align | ||
| + | |||
| + | div.fixAttrib.align.unset > | ||
| + | |||
| + | hr.allowedAttribs = class | ||
| + | |||
| + | # b und i tags werden ersetzt (em / strong) | ||
| + | b.remap = strong | ||
| + | i.remap = em | ||
| + | |||
| + | ## img tags werden erlaubt | ||
| + | img > | ||
| + | } | ||
| + | } | ||
| + | |||
| + | } | ||
| + | |||
| + | # Classes: Ausrichtung | ||
| + | classesParagraph ( | ||
| + | align-left, align-center, align-right | ||
| + | ) | ||
| + | |||
| + | # Classes: Eigene Stile | ||
| + | classesCharacter = author | ||
| + | classesImage= rte_image | ||
| + | |||
| + | |||
| + | # Classes für Links (These classes should also be in the list of allowedClasses) | ||
| + | classesAnchor = external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail | ||
| + | classesAnchor.default { | ||
| + | page = internal-link | ||
| + | url = external-link-new-window | ||
| + | file = download | ||
| + | mail = mail | ||
| + | } | ||
| + | |||
| + | # zeigt alle CSS-Klassen die in formate.css vorhanden sind | ||
| + | showTagFreeClasses = 1 | ||
| + | |||
| + | # Do not allow insertion of the following tags | ||
| + | hideTags = font | ||
| + | |||
| + | # Tabellen Optionen in der RTE Toolbar | ||
| + | hideTableOperationsInToolbar = 0 | ||
| + | keepToggleBordersInToolbar = 1 | ||
| + | |||
| + | # Tabellen Editierungs-Optionen (cellspacing/ cellpadding / border) | ||
| + | disableSpacingFieldsetInTableOperations = 1 | ||
| + | disableAlignmentFieldsetInTableOperations=1 | ||
| + | disableColorFieldsetInTableOperations=1 | ||
| + | disableLayoutFieldsetInTableOperations=1 | ||
| + | disableBordersFieldsetInTableOperations=0 | ||
| + | } | ||
| + | |||
| + | # Use same processing as on entry to database to clean content pasted into the editor | ||
| + | RTE.default.enableWordClean.HTMLparser < RTE.default.proc.entryHTMLparser_db | ||
| + | |||
| + | # FE RTE configuration (htmlArea RTE only) | ||
| + | RTE.default.FE < RTE.default | ||
| + | RTE.default.FE.userElements > | ||
| + | RTE.default.FE.userLinks > | ||
| + | |||
| + | # Breite des RTE in Fullscreen-Ansicht | ||
| + | TCEFORM.tt_content.bodytext.RTEfullScreenWidth= 80% | ||
| + | </pre> | ||
=== Wichtige Plugins === | === Wichtige Plugins === | ||
Version vom 20. März 2007, 12:05 Uhr
Einleitung
Hier findest Du Beispiele für immer wiederkehrende TypoScript-Einstellungen. Diese Einstellung lassen sich sinnvollerweise in einem externen Template auslagern, so kann man sie leicht wiederverwenden. Außerdem finden sich Standards für Seitenbaum, Extensions und die Ordnerstruktur
Allgemeine Standardeinstellungen
In einem externen Basis-Template stellen wir schon mal alle wichtigen Sachen ein:
das Template ext_standardSettings.tmpl
Constants
# interne Links im gleichen Fenster öffnen: PAGE_TARGET = _top #Bildunterschriften (für jedes Bild eine oder eine für alle) styles.content.imgtext.imageTextSplit = 1 #Rahmendicke wenn Rahmen bei Bildern styles.content.imgtext.borderThick = 1
Setup
config{
# zusätzliche Debug-Info als Kommentare im HTML Code
# sollte nach Fertigstellung der Seite wieder deaktiviert werden.
debug = 1
# Admin-Panel einschalten
admPanel = 1
# Externe Links
extTarget= _blank
# sonstiges
message_page_is_being_generated= Einen Moment bitte. Die Seite wird erstellt
# Kommentare abschalten
disablePrefixComment = 1
### SEO ###
# Achtung .htaccess Datei muss im Webverzeichnis angelegt werden
# Wenn realurl extension - dann simStatDocs = 0
#simulateStaticDocuments = 1
#simulateStaticDocuments_noTypeIfNoTitle = 1
#simulateStaticDocuments_pEnc = true
#simulateStaticDocuments_pEnc = md5
#simulateStaticDocuments_pEnc_onlyP = L
### nur wenn RealURL eingesetzt wird
#baseURL = 0
#tx_realurl_enable = 0
### Spracheinstellungen ###
#Länderspezifische Einstellungen (siehe auch mnultilanguage)
# damit Extensions etc. die richtige Übersetzung wählen
language = de
# HTML-Tag setzten
htmlTag_langKey = de_DE
# Betriebsystem abhängig (hier für Linux) damit php die richtigen
# Bezeichnungen wählt
locale_all = de_DE
headerComment = Homepage by WebMyNet feat. geo-bit - indihar.art
# in neueren Versionen standard (muß nicht mehr gesetzt werden)
# removeDefaultJS = external
# inlineStyle2TempFile = 1
# Fehlermeldung bei IE vermeiden wenn nach dem Senden eines
# Formulars der Back-Button gedrückt wird
sendCacheHeaders = 1
sendCacheHeaders_onlyWhenLoginDeniedInBranch = 1
}
####################################
### Einstellungen für Extensions ###
####################################
### AWSTATS ###
# Logdatei erzeugen für AWSTATS, eigene Zugriffe nicht zählen
#stat_apache = 1
#stat_apache_logfile = logfile.log
#stat_excludeBEuserHits = 1
# Statistiken auch in der Datenbank speichern
# Achtung: Datenbank kann bei Aktivierung sehr groß werden!
# stat_mysql = 1
# Klicks auf externe Links in Tabelle sys_stat speichern
#jumpurl = 1
### INDEX SEARCH ###
# Index-Suche einschalten, auch für externe Dateien (pdf, doc, etc.)
#index_enable = 1
#index_externals = 1
### LOGIN USER TRACK ###
# Zugriffe der Frontend Benutzer protokollieren
#tx_loginusertrack_enable = 1
#######################################
### Rendering der Seite und Inhalte ###
#######################################
config{
### HEADER ###
# DOCtype setzen
doctype = xhtml_trans
# erzeugten XHTML Code bereinigen
xhtml_cleaning = all
# <xml...> tag komplett ausschalten
#xmlprologue = none
### EMAIL ###
# Email-Adresse verschlüsseln, @ durch ' (at) ' ersetzen:
spamProtectEmailAddresses = 1
spamProtectEmailAddresses_atSubst = @
}
# MSIE soll nicht im Quirks-Modus arbeiten
[browser = msie]
# für IE bei xhtml_trans XML Prolog unter die Deklaration
# (Achtung validiert nicht nach W3C aber IE...)
config.doctypeSwitch = 1
[GLOBAL]
content.RTE_compliant = 1
# Metadaten für Beschreibung und Stichwörter einfügen, benötigt Extension "metatags"
page.headerData.999 < plugin.meta
### POPUPS ###
tt_content {
textpic.20{
colSpace = 5
rowSpace = 5
borderThick = 1
1.imageLinkWrap = 1
1.imageLinkWrap {
enable = 1
bodyTag = <body bgColor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
wrap = <a href="javascript:close();"> | </a>
JSwindow = 1
JSwindow.newWindow = 1
JSwindow.expand = 0,0
}
}
image.20 {
colSpace = 5
rowSpace = 5
borderThick = 1
1.imageLinkWrap = 1
1.imageLinkWrap {
enable = 1
bodyTag = <body bgColor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
wrap = <a href="javascript:close();"> | </a>
JSwindow = 1
JSwindow.newWindow = 1
JSwindow.expand = 0,0
}
}
}
### Formulare ###
styles.content.mailform {
fieldWrap = <div class="mailform"> | </div>
labelWrap = <div class="mailformlabel"> | </div>
commentWrap = <div class="mailformcomment"> | </div>
radioWrap = <div class="mailformradio"> | </div>
REQ.labelWrap = <div class="mailformrequired"> | </div>
target = _self
badMess = Bitte f�llen Sie noch folgendes Feld aus:
}
### Suchformular ###
styles.content.mailform.target = _self
styles.content.searchform.target = _self
styles.content.searchresult.target = _self
### Filelinks ###
tt_content.uploads.20.10.split.1.filelink{
stdWrap.wrap = |
file.wrap = <span class="filelink"> | </span>
size.wrap = |
size.innerWrap = |
size.wrap = <span class="filesize"> | </span>
size.bytes.labels = Byte| KB| MB| GB
descriptionWrap = <span class="small"> | </span>
}
tt_content.uploads.20.20.wrap = <span class="small">|</span>
# HTML Tags in Überschriften erlauben
lib.stdheader.10.setCurrent.htmlSpecialChars = 0
# Links in Sitemap nicht in neuem Fenster öffnen
tt_content.menu.20.2.1.noBlur = 1
tt_content.menu.20.2.1.target =
tt_content.menu.20.2.2.noBlur = 1
tt_content.menu.20.2.2.target =
tt_content.menu.20.2.3.noBlur = 1
tt_content.menu.20.2.3.target =
tt_content.menu.20.2.4.noBlur = 1
tt_content.menu.20.2.4.target =
#remove css attributes for p- and pre-tags
tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines.addAttributes {
P.style=
PRE.style=;
}
Ordnerstruktur
Sinnvoll ist eine Struktur, die es ermöglicht Daten für CSS und HTLML-Templates und Userdaten gut zu trennen. Zu Beginn kann man das z.B. so machen. -username/
-media/
-images
-pdf
-...
-templates/
-main/
-main.html
-main.css
-images/
Standardeinstellungen Typo3 Version >= 4
Standard Benutzer
Es empfiehlt sich die Standard Benutzereinstellungen frühzeitig zu machen und dafür zu sorgen, daß neue Seiten einer allgemein zugänglichen Gruppe zugänglich gemacht werden. Man hat schnell mal vergessen die Zugriffsrechte neu zu setzen, wenn man als Admin Seiten anlegt.
Die Auswahl im Assistenten aktiviert man besser. Stiftet nur Verwirrung. Als Seitentyp am besten nur Erweitert (nicht Standard) nur hier stehen die Alt und Title-Tags zur Verfügung (und das Mediafeld etc.)
Tables (modify)
Hinweis: Wenn eine Tabelle zum schreiben (modify) freigegeben ist, kann sie automatisch auch gesehen werden muß also nicht mehr in Tables (listing) aktiviert werden.
- Seite
- Seiteninhalt
- Media
Page Types
- Erweitert
- Shortcut
Allowed excludefields
- Seite
- Seite verstecken
- Start
- Stop
- Im Menü verstecken
- Beschreibung
- Stichworte
- Autor
- Wählen Sie eine Inhaltsvorlage (bei Template Selector)
- Seiteninhalt
- Verstecken
- Start
- Stop
- keine Reihen
- Klick vergrößern
- Alt
- Title
- Langbeschreibung URL
UserTS
config.admPanel = 1
options.uploadFieldsInTopOfEB = 1
options.saveDocNew = 1
options.showHistory = 1
options.createFoldersInEB = 1
setup.pane_clip_count = 5
setup.thumbnailsByDefault = 1
setup.saveTreePositions = 1
setup.edit_RTE = 1
setup.copyLevels = 6
setup.allSaveFunctions = 1
setup.noOnChangeAlertInTypoFields = 1
admPanel {
enable.edit = 1
module.edit.forceDisplayFieldIcons = 1
hide = 1
}
PageTS
Im PageTS der root Seite legen wir fest, daß neue Seiten automatisch einer bestimmten Benutzergruppe zugeordnet wird. Außerdem setzen wir einige Rechte für andere Benutzer.
Außerdem schalten wir gleich nicht benötigte Werte für die Formatierung der Rahmen ab und erstellen eigene die wir später mit CSS stylen.
TCEMAIN.permissions.groupid = 1 TCEMAIN.permissions.user = show, editcontent, new, edit, delete TCEMAIN.permissions.group = show, editcontent, new, edit, delete TCEMAIN.permissions.everybody = show, edit #Überflüssige Rahmeneinträge entfernen TCEFORM.tt_content.section_frame.removeItems = 10, 11, 12, 20, 21 TCEFORM.tt_content.section_frame.altLabels.1 = Breit TCEFORM.tt_content.section_frame.altLabels.5 = Schmal links TCEFORM.tt_content.section_frame.altLabels.6 = Schmal rechts
Dann im TS (alte Version)
tt_content.stdWrap{
innerWrap.cObject{
1.value >
1.value = <div class="breit">|</div>
5.value >
5.value = <div class="schmal-weiss">|</div>
6.value >
6.value = <div class="schmal-grau">|</div>
}
}
Wenn wie in neueren Versionen üblich die styled_content extension verwendet wird ist dieser Schritt nicht nötig. Dann legt Typo automatisch folgende Klassen an:
HTML - Area (RTE)
#*** RTE Classe des Interface (Ausrichtung)
RTE.classes {
align-left {
name = LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifyleft
value = text-align: left;
}
align-center {
name = LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifycenter
value = text-align: center;
}
align-right {
name = LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifyright
value = text-align: right;
}
}
#
# *** Entfernt das Bild vor den Links
RTE.classesAnchor {
internalLink {
class = internal-link
type = page
image >
}
externalLink {
class = external-link
type = url
image >
}
externalLinkInNewWindow {
class = external-link-new-window
type = url
image >
}
internalLinkInNewWindow {
class = internal-link-new-window
type = page
image >
}
download {
class = download
type = file
image >
}
mail {
class = mail
type = mail
image >
}
}
## RTE Konfiguration
RTE.default {
# Zuweisung der CSS-Datei
contentCSS = rte_formate.css
## Markup options
enableWordClean = 1
removeTrailingBR = 1
removeComments = 1
removeTags = center, sdfield
removeTagsAndContents = style,script
# Buttons die gezeigt/versteckt werden
showButtons = textstyle, textstylelabel, blockstyle, blockstylelabel, bold, italic, underline, left, center, right, orderedlist, unorderedlist, insertcharacter, line, link, image, removeformat, table, toggleborders, tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge, findreplace, insertcharacter, undo, redo, showhelp, about
hideButtons = fontstyle, formatblock, fontsize, strikethrough,lefttoright, righttoleft, textcolor, bgcolor, textindicator, emoticon, user, spellcheck, chMode, inserttag, outdent, indent, justifyfull, subscript, superscript, acronym, copy, cut, paste
# Hält die RTE Icons gegroupt zusammen
keepButtonGroupTogether = 1
# blendet Statusbar in htmlarea aus
showStatusBar = 0
## Add styles Left, center and right alignment of text in paragraphs and cells.
inlineStyle.text-alignment (
p.align-left, h1.align-left, h2.align-left, h3.align-left, h4.align-left, h5.align-left, h6.align-left, td.align-left { text-align: left; }
p.align-center, h1.align-center, h2.align-center, h3.align-center, h4.align-center, h5.align-center, h6.align-center, td.align-center { text-align: center; }
p.align-right, h1.align-right, h2.align-right, h3.align-right, h4.align-right, h5.align-right, h6.align-right, td.align-right { text-align: right; }
)
## Use stylesheet file rather than the above mainStyleOverride and inlineStyle properties to style the contents (htmlArea RTE only)
ignoreMainStyleOverride = 1
proc {
# tags die erlaubt / verboten sind
allowTags = table, tbody, tr, th, td, h1, h2, h3, h4, h5, h6, div, p, br, span, ul, ol, li, re, blockquote, strong, em, b, i, u, sub, sup, strike, a, img, nobr, hr, tt, q, cite, abbr, acronym, center
denyTags = font
# br wird nicht zu p konvertiert
dontConvBRtoParagraph = 1
# tags sind erlaubt außerhalt von p, div
allowTagsOutside = img,hr
# erlaubte attribute in p, div tags
keepPDIVattribs = align,class,style,id
# List all class selectors that are allowed on the way to the database
allowedClasses (
external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail,
align-left, align-center, align-right, author
)
# html parser einstellungen
HTMLparser_rte {
# tags die erlaubt/verboten sind
allowTags < RTE.default.proc.allowTags
denyTags < RTE.default.proc.denyTags
# tags die untersagt sind
removeTags = font
# entfernt html-kommentare
removeComments = 1
# tags die nicht übereinstimmen werden nicht entfernt (protect / 1 / 0)
keepNonMatchedTags = 0
}
# Content to database
entryHTMLparser_db = 1
entryHTMLparser_db {
# tags die erlaubt/verboten sind
allowTags < RTE.default.proc.allowTags
denyTags < RTE.default.proc.denyTags
# CLEAN TAGS
noAttrib = b, i, u, strike, sub, sup, strong, em, quote, blockquote, cite, tt, br, center
rmTagIfNoAttrib = span,div,font
# htmlSpecialChars = 1
## align attribute werden erlaubt
tags {
p.fixAttrib.align.unset >
p.allowedAttribs = class,style,align
div.fixAttrib.align.unset >
hr.allowedAttribs = class
# b und i tags werden ersetzt (em / strong)
b.remap = strong
i.remap = em
## img tags werden erlaubt
img >
}
}
}
# Classes: Ausrichtung
classesParagraph (
align-left, align-center, align-right
)
# Classes: Eigene Stile
classesCharacter = author
classesImage= rte_image
# Classes für Links (These classes should also be in the list of allowedClasses)
classesAnchor = external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail
classesAnchor.default {
page = internal-link
url = external-link-new-window
file = download
mail = mail
}
# zeigt alle CSS-Klassen die in formate.css vorhanden sind
showTagFreeClasses = 1
# Do not allow insertion of the following tags
hideTags = font
# Tabellen Optionen in der RTE Toolbar
hideTableOperationsInToolbar = 0
keepToggleBordersInToolbar = 1
# Tabellen Editierungs-Optionen (cellspacing/ cellpadding / border)
disableSpacingFieldsetInTableOperations = 1
disableAlignmentFieldsetInTableOperations=1
disableColorFieldsetInTableOperations=1
disableLayoutFieldsetInTableOperations=1
disableBordersFieldsetInTableOperations=0
}
# Use same processing as on entry to database to clean content pasted into the editor
RTE.default.enableWordClean.HTMLparser < RTE.default.proc.entryHTMLparser_db
# FE RTE configuration (htmlArea RTE only)
RTE.default.FE < RTE.default
RTE.default.FE.userElements >
RTE.default.FE.userLinks >
# Breite des RTE in Fullscreen-Ansicht
TCEFORM.tt_content.bodytext.RTEfullScreenWidth= 80%
Wichtige Plugins
finden sich in Typo3 - Extensions
Constants
- Konfiguration des Plugins metatags
plugin.meta{
description = Kunststoffspritzgussteile jeglicher Art, mechanische Baugruppen sowie montierte Frontblenden meta.keywords = Kunststoff, Spritzguss, mechanische Baugruppen, Frontblende meta.robots = follow meta.language = de copyright = © United-7 author = Burkhardt GmbH meta.revisit = 1
}
setup
### CONFIG ###
config {
### statische URL ###
simulateStaticDocuments = 1
simulateStaticDocuments_noTypeIfNoTitle = 1
# Hash wert für einige Extensions statt Parameter:
simulateStaticDocuments_pEnc=md5
simulateStaticDocuments_pEnc_onlyP = cHash, L, tx_ttNews[backPid], tx_ttnews[tt_news]
}
Steandardeinstellungen Typo3 - vor Version 4
VERALTET - selbst bei alten Typo3s bitte dieses Template überarbeiten (Tabellen etc.) Vor der Version 4 verhält sich Typo3 etwas anders. Einige Standardeinstellungnen sind ab V4 verändert oder gar nicht mehr vorhanden.
Beispielkonfiguration Burkhardt-Kunststoffe.de (Ausschnitt)
Constants
content.wrap{
header = |
header1 = <h1>|</h1>
header2 = <h2>|</h2>
header3 = <h3>|</h3>
header4 = <h4>|</h4>
bodytext = <p class="bodytext"> |</p>
}
# Festlegung des Standard-Headers Normal
content.defaultHeaderType = 1
# Entfernen des clear.gif bzw. der Abstände nach Seitenelementen
content.headerSpace = 0|10
content.space = 0|20
# Festlegung der Formatierung für Tabellen (Layout1=Ueberschrift oben, Layout2=Ueberschrift links, Layout3=Ueberschrift oben und links)
content.tableCellWrap = <b class='tableheader'> | </b>
# Formatierung von Dateilisten
styles.content.uploads.wrap = <p> | </p>
# Maximale Breite von Bildern
styles.content.imgtext.maxWInText = 600
# Nachricht, wenn in einem Formular Pflichtfelder nicht ausgefüllt werden
styles.content.mailform.badMess = Bitte füllen Sie noch folgende(s) Feld(er) aus:
# _top als Standardziel für interne Links, erfodert zusätzliche Eintragung im Setup
PAGE_TARGET =
content.pageFrameObj =
#Bild
styles.content.imgtext{
borderColor = silver
borderThick = 1
linkWrap.newWindow = 1
textMargin = 20
captionSplit = 1
linkSplit = 1
comment_CSL-LinkList =
}
styles.header.gfx1.fontColor = white
styles.content.imgFrames.comment_bottom =
# Konfiguration des Plugins Meta Tags
plugin.meta{
description = Kunststoffspritzgussteile jeglicher Art, mechanische Baugruppen sowie montierte Frontblenden
meta.keywords = Kunststoff, Spritzguss, mechanische Baugruppen, Frontblende
meta.robots = follow
meta.language = de
copyright = © United-7
author = Burkhardt GmbH
meta.revisit = 1
}
# Activates Tip a Friend
plugin.tipafriend{
file.templateFile = fileadmin/vorlagen/Burkhardt/tipafriend_template.tmpl
color1 =
color2 =
color3 =
wrap1 = <p>|</p>
wrap2 =<p>|</p>
htmlMail = 1
PIDtipForm = 48
}
Setup
# Ausblenden der Typ-Nummer in der HTML-Adresse
config.simulateStaticDocuments_noTypeIfNoTitle = 1
config {
linkVars = L
simulateStaticDocuments_pEnc = md5
# include the GET parameters from tt_news to the encoded vars (all in one line)
simulateStaticDocuments_pEnc_onlyP (
cHash, L, print, tx_ttnews[backPid], tx_ttnews[tt_news],
tx_ttnews[pS], tx_ttnews[pL], tx_ttnews[arc], tx_ttnews[cat],
tx_ttnews[pointer], tx_ttnews[swords]
)
language = de
}
# Ermöglicht die Konfiguration des Admin-Panels in der TSconfig der Backenduser
config.admPanel = 1
page.config.admPanel = 1
# Einschalten des Spam Schutzes
config.spamProtectEmailAddresses = 2
config.spamProtectEmailAddresses_atSubst = (at)
# Konfigurierung des Plugins Searchbox, wird innerhalb der Seite zugewiesen
# ID der Seite Suchen
plugin.tx_macinasearchbox_pi1.pidSearchpage = 111
plugin.tx_macinasearchbox_pi1.templateFile = fileadmin/vorlagen/Burkhardt/suchbox.html
# Loginbox auf allen Seiten, wird innerhalb der Seite zugewiesen
[usergroup = *]
# Logout
temp.10 = TEXT
temp.10.data = TSFE : id
temp.10.wrap (
<div id="logoutbox">
<form action="index.php?id= | " method="post" style="margin-top:0pt; margin-bottom:0pt">
<input type="hidden" name="logintype" value="logout" />
<input type="submit" name="submit" title="Abmelden" value="<!--###USERNAME###--> abmelden " style="height:15; width:130; border:solid 1px #666666; background-color:#FFFDDC; font-size:10px;" />
</form>
</div>
)
[else]
# Login, Id 108 ist die Anmeldeseite, Id 57 ist der Sys-Ordner Benutzer
temp.10 = TEXT
temp.10.data = TSFE : id
temp.10.wrap (
<div id="loginbox">
<form action="index.php?id=108" method="post" style="margin-top:0pt; margin-bottom:0pt">
<input name="user" type="text" id="user" title="Benutzername" onfocus="if (this.value==this.defaultValue) this.value=''" value="Name" style="height:15px; width:42px; background-color:#fff; border:solid 1px #666666; font-size:9px;" />
<input name="pass" type="password" id="pass" title="Passwort" onfocus="if (this.value==this.defaultValue) this.value=''" value="Login" style="height:15px; width:42px; background-color:#fff; border:solid 1px #666666; font-size:9px;" />
<input name="image" type="image" title="Anmelden" src="fileadmin/vorlagen/offradio/top.gif" alt="Login" />
<input type="hidden" name="redirect_url" value="index.php?id= | " />
<input type="hidden" name="logintype" value="login" />
<input type="hidden" name="pid" value="37" />
</form>
</div>
)
[global]
# Standardsprache festlegen
config.locale_all = de_DE@euro
#Seitensprache
config.linkVars = L
config.sys_language_uid = 0
config.language = de
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = en
config.locale_all = en-EN
[global]
# Formatierung von Dateilisten (kein Leerraum vor dem Verweis und 1 Leerzeichen zur Dateigrösse)
# Standardansicht
tt_content.uploads.20.default.split.1.filelink.stdWrap.wrap = <tr> | </tr>
tt_content.uploads.20.default.split.1.filelink.size.innerWrap =
# Layout 1
tt_content.uploads.20.1.split.1.filelink.stdWrap.wrap = <tr> | </tr>
tt_content.uploads.20.1.split.1.filelink.size.innerWrap =
# Ändern des Standard-Aufzählungszeichens
tt_content.text.20.parseFunc.tags.typolist.default.split.1.wrap = <div id="bulletlist"> | </div>
# Formatierung von Tabellen
# Standard, kein Text fett
tt_content.table.20.default.split.1.split.1.wrap = <td class="tabelle_1">|</td>
tt_content.table.20.default.split.1.split.2.wrap = <td class="tabelle_2">|</td>
tt_content.table.20.default.split.2.split.1.wrap = <td class="tabelle_1">|</td>
tt_content.table.20.default.split.2.split.2.wrap = <td class="tabelle_2">|</td>
# Layout 1, obere Linie fett
tt_content.table.20.1.split.1.split.1.wrap = <td class="tabelle_1"><b>|</b></td>
tt_content.table.20.1.split.1.split.2.wrap = <td class="tabelle_2"><b>|</b></td>
tt_content.table.20.1.split.2.split.1.wrap = <td class="tabelle_1">|</td>
tt_content.table.20.1.split.2.split.2.wrap = <td class="tabelle_2">|</td>
# Layout 2, linke Spalte fett
tt_content.table.20.2.split.1.split.1.wrap = <td class="tabelle_1"><b>|</b></td>
tt_content.table.20.2.split.1.split.2.wrap = <td class="tabelle_2">|</td>
tt_content.table.20.2.split.2.split.1.wrap = <td class="tabelle_1"><b>|</b></td>
tt_content.table.20.2.split.2.split.2.wrap = <td class="tabelle_2">|</td>
# Layout 3, obere Linie und linke Spalte fett
tt_content.table.20.3.split.1.split.1.wrap = <td class="tabelle_1">|</td>
tt_content.table.20.3.split.1.split.2.wrap = <td class="tabelle_2"><b>|</b></td>
tt_content.table.20.3.split.2.split.1.wrap = <td class="tabelle_1"><b>|</b></td>
tt_content.table.20.3.split.2.split.2.wrap = <td class="tabelle_2">|</td>
# Konfiguration des Kontakt-Formulars
tt_content.mailform.20.target = _top
tt_content.mailform.20 {
labelWrap.wrap = <p>|</p>
REQ.labelWrap.wrap = <p>|</p>
}
# Konfiguration des Plugin Erweiterte Suche
plugin.tx_indexedsearch.show.rules=0
# Ausschalten der CSS-Formatierung im Seitenkopf der HTML-Datei
plugin.tx_indexedsearch._CSS_DEFAULT_STYLE =
# Ausschalten der Auswahlmöglichkeiten des Plugins Erweiterte Suche
# Suchen in: Alle Medien/Interne Seite
plugin.tx_indexedsearch.blind.media=1
# Suche in: Standard/Alle Sprachen
plugin.tx_indexedsearch.blind.lang=1
# Suchen in: Ganze Webseite
plugin.tx_indexedsearch.blind.sections=1
# Sortieren nach: Trefferquote/Vorkommen
plugin.tx_indexedsearch.blind.order=1
# Sortieren nach: Höchste Zuerst
plugin.tx_indexedsearch.blind.desc=1
# Ansicht: Sektionshierarchie/Flache Liste
plugin.tx_indexedsearch.blind.group=1