(M)Ein Setup- und Konstanten-TypoScript  t3n Social News

Folgende Setups nutze ich standardmäßig für jedes neue Projekt. Deckt (fast) alle bekannten Dinge ab, die für barriere- und fehlerfreie Typo3-Layouts wichtig sind. Zudem werden einige deutsche Default-Werte für ein paar Extensions gesetzt.

Constants:

1
2
3
4
5
6
7
8
9
10
11
12
PAGE_TARGET = _self
styles.sitemap.text.target = _self
styles.content.imgtext.caption.1.wrap = |
styles.content.imgtext.caption.1.spaceBefore = 0
styles.content.imgtext.caption.1.br = 0
styles.sitemap.text.target = _self
content.pageFrameObj = _self
styles.content.mailform.badMess = Einige Felder wurden nicht ausgefüllt.
styles.sitemap.text.totalWrap = |
content.subMenuWrap = |
content.menuWrap = |
content.headerSpace = 0|0

Setup:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
#Linkziele für die Sitemap-Seitentypen
tt_content.menu.20.5.1.target = _self
tt_content.menu.20.7.1.target = _self
tt_content.menu.20.7.2.target = _self
tt_content.menu.20.1.1.target = _self
tt_content.menu.20.4.1.target = _self
tt_content.menu.20.6.1.target = _self
 
tt_content.image.20.renderMethod = div
tt_content.image.20.rendering.dl.caption.if.isTrue.field = imagecaption
 
#Formatierung der CSS styled Filelinks
tt_content.uploads.20.layout {
  global = <div class="filelinks filelinks_layout_###LAYOUT###">###FILE###</div>
  fileSize {
    layout = (###SIZE### ###SIZEFORMAT###)
    char = none
    format = auto
    desc = Bytes|KB|MB
    round = 2
  }
}
 
tt_content.uploads.20.layout.file >
tt_content.uploads.20.layout.file.cObject = COA
tt_content.uploads.20.layout.file.cObject {
  wrap = <div class="###CLASS###">|</div>
  10 = TEXT
  10.wrap = <span>|</span>
  10.value = <a href="###URL###" ###TARGET###>###DESCRIPTION###</a>
  20 < .10
  20.value = <small>###FILESIZE###</small>
}
 
tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines.nonWrappedTag >
tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines.addAttributes.P.style =
 
#Einstellungen für barrierearmes Typo3 Kontaktform
tt_content.mailform.20 {
  accessibility = 1
  noWrapAttr=1
  formName = mailform
  REQ = 1
}
 
config {
  cache_clearAtMidnight = 1
  admPanel = 0
  noPageTitle = 1
  index_enable = 1
  index_externals = 1
  simulateStaticDocuments_addTitle = 60
  simulateStaticDocuments_pEnc_onlyP = cHash, no_cache, 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]
  spamProtectEmailAddresses = 1
  spamProtectEmailAddresses_atSubst = &nbsp;(at)&nbsp;
  tx_realurl_enable = 0
  removeDefaultJS = 1
  removeDefaultJS = external
  doctype = xhtml_trans
  inlineStyle2TempFile = 1
  disablePrefixComment = 1
  xmlprologue = none
  xhtml_cleaning = all
  htmlTag_setParams = xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"
}
 
#RTE Tuning
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.class >
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.remapTag >
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.DIV.class >
#Angabe von Tags, die nicht mit einem zusätzlichen wrap umgeben werden dürfen
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.encapsTagList = cite, div, p, pre, h1, h2, h3, h4, h5, h6
 
#Entfernt die zusätzlichen CSS-Klassen
lib.stdheader.3 = LOAD_REGISTER
lib.stdheader.3.headerClass =
lib.stdheader.3.headerClass.noTrimWrap = |
lib.stdheader.stdWrap.dataWrap = |
 
#Content Elemente aufräumen und Kommentare entfernen
tt_content.stdWrap.dataWrap >
tt_content.stdWrap.prefixComment >
tt_content.header.20.dataWrap >
tt_content.header.20.prefixComment >
tt_content.default.prefixComment >
tt_content.text.stdWrap.prefixComment >
tt_content.text.20.prefixComment >
tt_content.textpic.20.stdWrap.prefixComment >
tt_content.table.20.stdWrap.prefixComment >
tt_content.mailform.20.stdWrap.wrap >
tt_content.menu.20.stdWrap.prefixComment >
tt_content.image.20.stdWrap.prefixComment >
tt_content.list.20.stdWrap.prefixComment >
 
#Seitensprachen setzen
config.linkVars = L
config.sys_language_uid = 0
config.language = de
config.locale_all = de_DE
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = en
config.locale_all = english
[global]
 
#tt_news Tuning-Einstellungen
plugin.tt_news.sys_language_mode = strict
plugin.tt_news.showNewsWithoutDefaultTranslation = 1
 
plugin.tt_news {
  displaySingle.age_stdWrap.age = Minute(n)| Stunde(n)| Tag(e)| Jahr(e)
  displayList.age_stdWrap.age = Minute(n)| Stunde(n)| Tag(e)| Jahr(e)
  displayList.date_stdWrap.strftime = %A, %d. %B %Y
  displaySingle.date_stdWrap.strftime = %A, %d. %B %Y | 
}
 
#indexed_search Datums-Tuning
plugin.tx_indexedsearch {
  displayList.date_stdWrap.strftime = %A, %d. %B %Y
  displaySingle.date_stdWrap.strftime = %A, %d. %B %Y | 
}
 
page = PAGE
 
#Titel-Metas schreiben
page {
  headerData {
    10 = TEXT
    10 {
      field = title
      wrap = <title>IhrWebsiteTitel/Ihr Firmenname -&nbsp;|</title>
    }
  }
  headerData {
    11 = TEXT
    11.value = <meta http-equiv="Content-Script-Type" content="text/javascript" />
  }
  headerData {
    14 = TEXT
    14.value = <meta name="language" content="de" />
  }
}
 
page.includeCSS {
  file1 = 
  file1.media = screen
}
 
page.meta.description = 
page.meta.keywords = 
page.meta.robots = index,follow




Über den Autor

Dieser Beitrag wurde von Oliver Schlöbe verfasst. Er arbeitet als Web- und (TYPO3-)-Entwickler, schreibt redaktionell über Windows Vista/ Windows 7, ist aktives Mitglied bzw. Administrator oder Moderator in diversen Webforen, darunter die TYPO3- und WordPress-Communities, und sammelt seine bisherigen Erweiterungen für diverse Systeme unter http://extend.schloebe.de/
Bei Fragen nutzen Sie die Kommentare oder wenden Sie sich an info@typo3.schloebe.de.

Weitere Beiträge von Oliver Schlöbe.


Über diesen Eintrag


Interessante Links


Informiert bleiben