Typo3 - Standardeinstellungen

Aus Wikizone
Wechseln zu: Navigation, Suche

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

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

Wichtige Plugins

  • automakeTemplates
  • metatags
  • aktuelle tt_news


eventuell:

  • MailformPlus
  • DAM

Constants

  1. 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