[TYPO3-dev] Typoscript question
J. Lingott
jbl at deweblop.de
Mon Dec 6 17:13:58 CET 2010
Hi Matthias, list
Mathias Schreiber [wmdb] wrote:
> What is "2" in this case?
> Does "2" have stdWrap capabilities at this point?
It contains the default stdheader. See the full template for modifying
stdheader for different columns/ parent pages below.
Thanks for the hint it might helpt to track it down.
Regards
J. Lingott
# Temporary grafical header object
temp.headlineGenerator = IMAGE
temp.headlineGenerator {
wrap = <div class="csc-header"><h1>|</h1></div>
file = GIFBUILDER
file {
XY = [10.w],[10.h]
transparentColor = #95a2a9
format = jpeg
quality = 100
backColor = #95a2a9
10 = TEXT
10 {
text.field =
text.current = 1
text.HTMLparser = 1
text.HTMLparser.htmlSpecialChars = -1
text.listNum = 0
text.listNum.splitChar = \
text.case = upper
fontSize = 7
offset = 0,7
fontFile = fileadmin/fonts/ariblk.ttf
fontColor = #CED2D5
niceText = 0
}
15 < .10
15.text.listNum = 1
15.offset = 10,10
}
}
# Enable subheader for all content elements
lib.stdheader.20 = TEXT
lib.stdheader.20 {
field = subheader
wrap = <h2>|</h2>
}
# Add arrow wrap to main category headers (former line 10, as I couldn't
get it applied down there)
lib.stdheader.wrap = |<div class="nav-arw"></div>
# Different headers depending on column
temp.stdheader < lib.stdheader
lib.stdheader >
lib.stdheader = CASE
lib.stdheader {
key.field = colPos
1 < temp.stdheader
# Set graphical headers
2 < temp.stdheader
2.10.1 < temp.headlineGenerator
2.stdWrap.dataWrap >
3 < temp.stdheader
# Add links/ arrow to main category headers in default column
0 = CASE
0 {
key.field = pid
# Works if pid is 2
2 < temp.stdheader
2.10.10 = TEXT
2.10.10 {
field = header
typolink.parameter.field = header_link
}
# This one fails at the moment
19 < temp.stdheader
19.10.10 = TEXT
19.10.10 {
field = header
typolink.parameter.field = header_link
}
default < temp.stdheader
}
}
# Grafical output of stdheader for fces in column 2
lib.fceHeader < lib.stdheader.2.10.1
More information about the TYPO3-dev
mailing list