Added feature #6147: Sitemaps/Menu of subpages with active state - Prerequisite ...
[Packages/TYPO3.CMS.git] / typo3 / sysext / css_styled_content / static / v4.4 / setup.txt
1 # ***************************************************************************
2 # Notice: "styles." (and "temp.") objects are UNSET after template parsing!
3 # Use "lib." for persisting storage of objects.
4 # ***************************************************************************
5
6 # Clear out any constants in this reserved room!
7 styles.content >
8
9 # get content
10 styles.content.get = CONTENT
11 styles.content.get {
12 table = tt_content
13 select.orderBy = sorting
14 select.where = colPos=0
15 select.languageField = sys_language_uid
16 }
17
18 # get content, left
19 styles.content.getLeft < styles.content.get
20 styles.content.getLeft.select.where = colPos=1
21
22 # get content, right
23 styles.content.getRight < styles.content.get
24 styles.content.getRight.select.where = colPos=2
25
26 # get content, margin
27 styles.content.getBorder < styles.content.get
28 styles.content.getBorder.select.where = colPos=3
29
30 # get news
31 styles.content.getNews < styles.content.get
32 styles.content.getNews.select.pidInList = {$styles.content.getNews.newsPid}
33
34 # Edit page object:
35 styles.content.editPanelPage = COA
36 styles.content.editPanelPage {
37 10 = EDITPANEL
38 10 {
39 allow = toolbar,move,hide
40 label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.page
41 label.wrap = |&nbsp;<b>%s</b>
42 }
43 }
44
45
46
47
48
49
50
51
52
53
54
55 # *********************************************************************
56 # "lib." objects are preserved from unsetting after template parsing
57 # *********************************************************************
58
59 # Creates persistent ParseFunc setup for non-HTML content. This is recommended to use (as a reference!)
60 lib.parseFunc {
61 makelinks = 1
62 makelinks.http.keep = {$styles.content.links.keep}
63 makelinks.http.extTarget = {$styles.content.links.extTarget}
64 makelinks.mailto.keep = path
65 tags {
66 link = TEXT
67 link {
68 current = 1
69 typolink.parameter.data = parameters : allParams
70 typolink.extTarget = {$styles.content.links.extTarget}
71 typolink.target = {$styles.content.links.target}
72 parseFunc.constants =1
73 }
74 }
75 allowTags = {$styles.content.links.allowTags}
76 denyTags = *
77 sword = <span class="csc-sword">|</span>
78 constants = 1
79
80 nonTypoTagStdWrap.HTMLparser = 1
81 nonTypoTagStdWrap.HTMLparser {
82 keepNonMatchedTags = 1
83 htmlSpecialChars = 2
84 }
85 }
86
87 # good old parsefunc in "styles.content.parseFunc" is created for backwards compatibility. Don't use it, just ignore.
88 styles.content.parseFunc < lib.parseFunc
89
90 # Creates persistent ParseFunc setup for RTE content (which is mainly HTML) based on the "ts_css" transformation.
91 lib.parseFunc_RTE < lib.parseFunc
92 lib.parseFunc_RTE {
93 // makelinks >
94 # Processing <table> and <blockquote> blocks separately
95 externalBlocks = table, blockquote, ol,ul, div
96 externalBlocks {
97 # The blockquote content is passed into parseFunc again...
98 blockquote.stripNL=1
99 blockquote.callRecursive=1
100 blockquote.callRecursive.tagStdWrap.HTMLparser = 1
101 blockquote.callRecursive.tagStdWrap.HTMLparser.tags.blockquote.overrideAttribs = style="margin-bottom:0;margin-top:0;"
102
103 ol.stripNL=1
104 ol.stdWrap.parseFunc = < lib.parseFunc
105
106 ul.stripNL=1
107 ul.stdWrap.parseFunc = < lib.parseFunc
108
109 table.stripNL=1
110 table.stdWrap.HTMLparser = 1
111 table.stdWrap.HTMLparser.tags.table.fixAttrib.class {
112 default = contenttable
113 always = 1
114 list = contenttable
115 }
116 table.stdWrap.HTMLparser.keepNonMatchedTags = 1
117 table.HTMLtableCells=1
118 table.HTMLtableCells {
119 default.callRecursive=1
120 addChr10BetweenParagraphs=1
121 }
122 div.stripNL = 1
123 div.callRecursive = 1
124 }
125 nonTypoTagStdWrap.encapsLines {
126 encapsTagList = p,pre,h1,h2,h3,h4,h5,h6
127 remapTag.DIV = P
128 nonWrappedTag = P
129 innerStdWrap_all.ifBlank = &nbsp;
130 addAttributes.P.class = bodytext
131 addAttributes.P.class.setOnly=blank
132 }
133 nonTypoTagStdWrap.HTMLparser = 1
134 nonTypoTagStdWrap.HTMLparser {
135 keepNonMatchedTags = 1
136 htmlSpecialChars = 2
137 }
138 }
139
140
141 # Content header:
142 lib.stdheader = COA
143 lib.stdheader {
144
145 # Create align style-attribute for <Hx> tags
146 2 = LOAD_REGISTER
147 2.headerStyle.field = header_position
148 2.headerStyle.required = 1
149 2.headerStyle.noTrimWrap = | style="text-align:|;"|
150
151 # Create class="csc-firstHeader" attribute for <Hx> tags
152 3 = LOAD_REGISTER
153 3.headerClass = csc-firstHeader
154 3.headerClass.if.value=1
155 3.headerClass.if.equals.data = cObj:parentRecordNumber
156 3.headerClass.noTrimWrap = | class="|"|
157
158 # Date format:
159 5 = TEXT
160 5.field = date
161 5.if.isTrue.field = date
162 5.strftime = %x
163 5.wrap = <p class="csc-header-date">|</p>
164 5.prefixComment = 2 | Header date:
165
166 # This CASE cObject renders the header content:
167 # currentValue is set to the header data, possibly wrapped in link-tags.
168 10 = CASE
169 10.setCurrent {
170 field = header
171 htmlSpecialChars = 1
172 typolink.parameter.field = header_link
173 }
174 10.key.field = header_layout
175 10.key.ifEmpty = {$content.defaultHeaderType}
176 10.key.ifEmpty.override.data = register: defaultHeaderType
177
178 10.1 = TEXT
179 10.1.current = 1
180 10.1.insertData = 1
181 10.1.fontTag = <h1{register:headerStyle}{register:headerClass}>|</h1>
182
183 10.2 < .10.1
184 10.2.fontTag = <h2{register:headerStyle}{register:headerClass}>|</h2>
185
186 10.3 < .10.1
187 10.3.fontTag = <h3{register:headerStyle}{register:headerClass}>|</h3>
188
189 10.4 < .10.1
190 10.4.fontTag = <h4{register:headerStyle}{register:headerClass}>|</h4>
191
192 10.5 < .10.1
193 10.5.fontTag = <h5{register:headerStyle}{register:headerClass}>|</h5>
194
195 # Pops the used registers off the stack:
196 98 = RESTORE_REGISTER
197 99 = RESTORE_REGISTER
198
199 # Post-processing:
200 stdWrap.fieldRequired = header
201 stdWrap.if {
202 equals.field = header_layout
203 value = 100
204 negate = 1
205 }
206
207 stdWrap.editIcons = tt_content : header, [header_layout | header_position], [header_link|date]
208 stdWrap.editIcons.beforeLastTag = 1
209 stdWrap.editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.header
210
211 stdWrap.dataWrap = <div class="csc-header csc-header-n{cObj:parentRecordNumber}">|</div>
212 stdWrap.prefixComment = 2 | Header:
213 }
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229 #******************************************************
230 # Including library for processing of some elements:
231 #******************************************************
232 includeLibs.tx_cssstyledcontent_pi1 = EXT:css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php
233
234
235 #**********************************
236 # tt_content is started
237 #**********************************
238 tt_content >
239 tt_content = CASE
240 tt_content.key.field = CType
241 tt_content.stdWrap {
242 innerWrap.cObject = CASE
243 innerWrap.cObject {
244 key.field = section_frame
245
246 default = COA
247 default {
248 10 = TEXT
249 10 {
250 value = <div id="c{field:uid}"
251 override.cObject = TEXT
252 override.cObject {
253 value = <div
254 if.value = div
255 if.equals.field = CType
256 }
257 insertData = 1
258 }
259
260 15 = TEXT
261 15 {
262 value = csc-default
263 noTrimWrap = | class="|" |
264 required = 1
265 }
266
267 20 = COA
268 20 {
269 10 = COA
270 10 {
271 10 = TEXT
272 10 {
273 value = {$content.spaceBefore}
274 wrap = |+
275 if.isTrue = {$content.spaceBefore}
276 }
277
278 20 = TEXT
279 20 {
280 field = spaceBefore
281 }
282
283 stdWrap {
284 prioriCalc = intval
285 wrap = margin-top:|px;
286 required = 1
287 ifEmpty.value =
288 }
289 }
290
291 20 = COA
292 20 {
293 10 = TEXT
294 10 {
295 value = {$content.spaceAfter}
296 wrap = |+
297 if.isTrue = {$content.spaceAfter}
298 }
299
300 20 = TEXT
301 20 {
302 field = spaceAfter
303 }
304
305 stdWrap {
306 prioriCalc = intval
307 wrap = margin-bottom:|px;
308 required = 1
309 ifEmpty.value =
310 }
311 }
312
313 stdWrap.noTrimWrap = | style="|" |
314 stdWrap.required = 1
315 }
316 30 = TEXT
317 30.value = >|</div>
318 }
319
320 1 =< tt_content.stdWrap.innerWrap.cObject.default
321 1.15.value = csc-frame csc-frame-invisible
322
323 5 =< tt_content.stdWrap.innerWrap.cObject.default
324 5.15.value = csc-frame csc-frame-rulerBefore
325
326 6 =< tt_content.stdWrap.innerWrap.cObject.default
327 6.15.value = csc-frame csc-frame-rulerAfter
328
329 10 =< tt_content.stdWrap.innerWrap.cObject.default
330 10.15.value = csc-frame csc-frame-indent
331
332 11 =< tt_content.stdWrap.innerWrap.cObject.default
333 11.15.value = csc-frame csc-frame-indent3366
334
335 12 =< tt_content.stdWrap.innerWrap.cObject.default
336 12.15.value = csc-frame csc-frame-indent6633
337
338 20 =< tt_content.stdWrap.innerWrap.cObject.default
339 20.15.value = csc-frame csc-frame-frame1
340
341 21 =< tt_content.stdWrap.innerWrap.cObject.default
342 21.15.value = csc-frame csc-frame-frame2
343
344 66 = COA
345 66 {
346 10 = TEXT
347 10 {
348 value = <a id="c{field:uid}"></a>
349 insertData = 1
350 }
351
352 20 = COA
353 20 {
354 10 = TEXT
355 10 {
356 value = {$content.spaceBefore}
357 wrap = |+
358 if.isTrue = {$content.spaceBefore}
359 }
360
361 20 = TEXT
362 20 {
363 field = spaceBefore
364 }
365
366 stdWrap {
367 prioriCalc = intval
368 wrap = margin-top:|px;
369 required = 1
370 ifEmpty.value =
371 wrap2 = <div style="|"></div>
372 }
373 }
374
375 30 = TEXT
376 30 {
377 value = |
378 }
379
380 40 < .20
381 40 {
382 10 {
383 value = {$content.spaceAfter}
384 if.isTrue = {$content.spaceAfter}
385 }
386 20.field = spaceAfter
387 stdWrap.wrap = margin-bottom:|px;
388 }
389 }
390
391 }
392
393 innerWrap2 = | <p class="csc-linkToTop"><a href="#">{LLL:EXT:css_styled_content/pi1/locallang.xml:label.toTop}</a></p>
394 innerWrap2.insertData = 1
395 innerWrap2.fieldRequired = linkToTop
396
397 prepend = TEXT
398 prepend.dataWrap = <a id="c{field:_LOCALIZED_UID}"></a>
399 prepend.if.isTrue.field = _LOCALIZED_UID
400
401 editPanel = 1
402 editPanel {
403 allow = move,new,edit,hide,delete
404 line = 5
405 label = %s
406 onlyCurrentPid = 1
407 previewBorder = 4
408 edit.displayRecord = 1
409 }
410
411 prefixComment = 1 | CONTENT ELEMENT, uid:{field:uid}/{field:CType}
412 }
413
414
415
416 # *****************
417 # CType: header
418 # *****************
419 # See Object path "lib.stdheader"
420 tt_content.header = COA
421 tt_content.header {
422 10 = < lib.stdheader
423
424 20 = TEXT
425 20 {
426 field = subheader
427 required = 1
428
429 dataWrap = <p class="csc-subheader csc-subheader-{field:layout}">|</p>
430 htmlSpecialChars = 1
431
432 editIcons = tt_content:subheader,layout
433 editIcons.beforeLastTag = 1
434 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.subheader
435
436 prefixComment = 2 | Subheader:
437 }
438 }
439
440
441
442 # *****************
443 # CType: text
444 # *****************
445 tt_content.text = COA
446 tt_content.text {
447 10 = < lib.stdheader
448
449 20 = TEXT
450 20 {
451 field = bodytext
452 required = 1
453
454 parseFunc = < lib.parseFunc_RTE
455
456 editIcons = tt_content:bodytext, rte_enabled
457 editIcons.beforeLastTag = 1
458 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.bodytext
459
460 prefixComment = 2 | Text:
461 }
462 }
463
464
465
466 # *****************
467 # CType: image
468 # *****************
469 # (also used for rendering 'textpic' type):
470 tt_content.image = COA
471 tt_content.image.10 = < lib.stdheader
472 tt_content.image.20 = USER
473 tt_content.image.20 {
474 userFunc = tx_cssstyledcontent_pi1->render_textpic
475
476 # Image source
477 imgList.field = image
478 imgPath = uploads/pics/
479
480 # Single image rendering
481 imgObjNum = 1
482 1 {
483 file.import.current = 1
484 file.width.field = imagewidth
485 imageLinkWrap = 1
486 imageLinkWrap {
487 bodyTag = <body style="margin:0; background:#fff;">
488 wrap = <a href="javascript:close();"> | </a>
489 width = {$styles.content.imgtext.linkWrap.width}
490 height = {$styles.content.imgtext.linkWrap.height}
491 effects = {$styles.content.imgtext.linkWrap.effects}
492
493 JSwindow = 1
494 JSwindow.newWindow = {$styles.content.imgtext.linkWrap.newWindow}
495 JSwindow.if.isFalse = {$styles.content.imgtext.linkWrap.lightboxEnabled}
496
497 directImageLink = {$styles.content.imgtext.linkWrap.lightboxEnabled}
498
499 enable.field = image_zoom
500 enable.ifEmpty.typolink.parameter.field = image_link
501 enable.ifEmpty.typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT
502 enable.ifEmpty.typolink.returnLast = url
503
504 typolink.parameter.field = image_link
505 typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT
506 typolink.target = {$styles.content.links.target}
507 typolink.extTarget = {$styles.content.links.extTarget}
508
509 linkParams.ATagParams.dataWrap = class="{$styles.content.imgtext.linkWrap.lightboxCssClass}" rel="{$styles.content.imgtext.linkWrap.lightboxRelAttribute}"
510 }
511
512 altText = TEXT
513 altText {
514 field = altText
515 stripHtml = 1
516 split.token.char = 10
517 split.token.if.isTrue = {$styles.content.imgtext.imageTextSplit}
518 split.returnKey.data = register : IMAGE_NUM_CURRENT
519 }
520
521 titleText < .altText
522 titleText.field = titleText
523
524 longdescURL < .altText
525 longdescURL.field = longdescURL
526
527 emptyTitleHandling = {$styles.content.imgtext.emptyTitleHandling}
528 titleInLink = {$styles.content.imgtext.titleInLink}
529 titleInLinkAndImg = {$styles.content.imgtext.titleInLinkAndImg}
530 }
531
532 textPos.field = imageorient
533 maxW = {$styles.content.imgtext.maxW}
534 maxW.override.data = register:maxImageWidth
535 maxWInText = {$styles.content.imgtext.maxWInText}
536 maxWInText.override.data = register:maxImageWidthInText
537
538 equalH.field = imageheight
539
540 image_compression.field = image_compression
541 image_effects.field = image_effects
542
543 noRows.field = image_noRows
544
545 cols.field = imagecols
546 border.field = imageborder
547
548 caption {
549 1 = TEXT
550 1 {
551 field = imagecaption
552 required = 1
553 parseFunc =< lib.parseFunc
554 br = 1
555 split.token.char = 10
556 split.token.if.isPositive = {$styles.content.imgtext.imageTextSplit} + {$styles.content.imgtext.captionSplit}
557 split.returnKey.data = register : IMAGE_NUM_CURRENT
558 }
559 }
560 # captionSplit is deprecated, use imageTextSplit instead
561 captionSplit = {$styles.content.imgtext.captionSplit}
562 captionAlign.field = imagecaption_position
563 # caption/alttext/title/longdescURL splitting
564 imageTextSplit = {$styles.content.imgtext.imageTextSplit}
565
566 borderCol = {$styles.content.imgtext.borderColor}
567 borderThick = {$styles.content.imgtext.borderThick}
568 borderClass = {$styles.content.imgtext.borderClass}
569 colSpace = {$styles.content.imgtext.colSpace}
570 rowSpace = {$styles.content.imgtext.rowSpace}
571 textMargin = {$styles.content.imgtext.textMargin}
572
573 borderSpace = {$styles.content.imgtext.borderSpace}
574 separateRows = {$styles.content.imgtext.separateRows}
575 addClasses =
576 addClassesImage =
577 addClassesImage.ifEmpty = csc-textpic-firstcol csc-textpic-lastcol
578 addClassesImage.override = csc-textpic-firstcol |*| |*| csc-textpic-lastcol
579 addClassesImage.override.if {
580 isGreaterThan.field = imagecols
581 value = 1
582 }
583
584 #
585 imageStdWrap.dataWrap = <div class="csc-textpic-imagewrap" style="width:{register:totalwidth}px;"> | </div>
586 imageStdWrapNoWidth.wrap = <div class="csc-textpic-imagewrap"> | </div>
587
588 # if noRows is set, wrap around each column:
589 imageColumnStdWrap.dataWrap = <div class="csc-textpic-imagecolumn" style="width:{register:columnwidth}px;"> | </div>
590
591 layout = CASE
592 layout {
593 key.field = imageorient
594 # above-center
595 default = TEXT
596 default.value = <div class="csc-textpic csc-textpic-center csc-textpic-above###CLASSES###">###IMAGES######TEXT###</div><div class="csc-textpic-clear"><!-- --></div>
597 # above-right
598 1 = TEXT
599 1.value = <div class="csc-textpic csc-textpic-right csc-textpic-above###CLASSES###">###IMAGES######TEXT###</div><div class="csc-textpic-clear"><!-- --></div>
600 # above-left
601 2 = TEXT
602 2.value = <div class="csc-textpic csc-textpic-left csc-textpic-above###CLASSES###">###IMAGES######TEXT###</div><div class="csc-textpic-clear"><!-- --></div>
603 # below-center
604 8 = TEXT
605 8.value = <div class="csc-textpic csc-textpic-center csc-textpic-below###CLASSES###">###TEXT######IMAGES###</div><div class="csc-textpic-clear"><!-- --></div>
606 # below-right
607 9 = TEXT
608 9.value = <div class="csc-textpic csc-textpic-right csc-textpic-below###CLASSES###">###TEXT######IMAGES###</div><div class="csc-textpic-clear"><!-- --></div>
609 # below-left
610 10 = TEXT
611 10.value = <div class="csc-textpic csc-textpic-left csc-textpic-below###CLASSES###">###TEXT######IMAGES###</div><div class="csc-textpic-clear"><!-- --></div>
612 # intext-right
613 17 = TEXT
614 17.value = <div class="csc-textpic csc-textpic-intext-right###CLASSES###">###IMAGES######TEXT###</div>
615 17.override = <div class="csc-textpic csc-textpic-intext-right###CLASSES###">###IMAGES######TEXT###</div><div class="csc-textpic-clear"><!-- --></div>
616 17.override.if.isTrue = {$styles.content.imgtext.addIntextClearer}
617 # intext-left
618 18 = TEXT
619 18.value = <div class="csc-textpic csc-textpic-intext-left###CLASSES###">###IMAGES######TEXT###</div>
620 18.override = <div class="csc-textpic csc-textpic-intext-left###CLASSES###">###IMAGES######TEXT###</div><div class="csc-textpic-clear"><!-- --></div>
621 18.override.if.isTrue = {$styles.content.imgtext.addIntextClearer}
622 # intext-right-nowrap
623 25 = TEXT
624 25.value = <div class="csc-textpic csc-textpic-intext-right-nowrap###CLASSES###">###IMAGES###<div style="margin-right:{register:rowWidthPlusTextMargin}px;">###TEXT###</div></div><div class="csc-textpic-clear"><!-- --></div>
625 25.insertData = 1
626 # intext-left-nowrap
627 26 = TEXT
628 26.value = <div class="csc-textpic csc-textpic-intext-left-nowrap###CLASSES###">###IMAGES###<div style="margin-left:{register:rowWidthPlusTextMargin}px;">###TEXT###</div></div><div class="csc-textpic-clear"><!-- --></div>
629 26.insertData = 1
630 }
631
632 rendering {
633 dl {
634 # Choose another rendering for special edge cases
635 fallbackRendering = COA
636 fallbackRendering {
637 # Just one image without a caption => don't need the dl-overhead, use the "simple" rendering
638 10 = TEXT
639 10 {
640 if {
641 isFalse.field = imagecaption
642 value = 1
643 equals.data = register:imageCount
644 }
645 value = simple
646 }
647
648 # Multiple images and one global caption => "ul"
649 20 = TEXT
650 20 {
651 if {
652 value = 1
653 isGreaterThan.data = register:imageCount
654 isTrue.if.isTrue.data = register:renderGlobalCaption
655 isTrue.field = imagecaption
656 }
657 value = ul
658 }
659
660 # Multiple images and no caption at all => "ul"
661 30 = TEXT
662 30 {
663 if {
664 value = 1
665 isGreaterThan.data = register:imageCount
666 isFalse.field = imagecaption
667 }
668 value = ul
669 }
670 }
671 imageRowStdWrap.dataWrap = <div class="csc-textpic-imagerow" style="width:{register:rowwidth}px;"> | </div>
672 imageLastRowStdWrap.dataWrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-last" style="width:{register:rowwidth}px;"> | </div>
673 noRowsStdWrap.wrap =
674 oneImageStdWrap.dataWrap = <dl class="csc-textpic-image###CLASSES###" style="width:{register:imagespace}px;"> | </dl>
675 imgTagStdWrap.wrap = <dt> | </dt>
676 editIconsStdWrap.wrap = <dd> | </dd>
677 caption {
678 required = 1
679 wrap = <dd class="csc-textpic-caption"> | </dd>
680 }
681 }
682 ul {
683 # Just one image without a caption => don't need the ul-overhead, use the "simple" rendering
684 fallbackRendering < tt_content.image.20.rendering.dl.fallbackRendering.10
685 imageRowStdWrap.dataWrap = <div class="csc-textpic-imagerow" style="width:{register:rowwidth}px;"><ul> | </ul></div>
686 imageLastRowStdWrap.dataWrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-last" style="width:{register:rowwidth}px;"><ul> | </ul></div>
687 noRowsStdWrap.wrap = <ul> | </ul>
688 oneImageStdWrap.dataWrap = <li class="csc-textpic-image###CLASSES###" style="width:{register:imagespace}px;"> | </li>
689 imgTagStdWrap.wrap =
690 editIconsStdWrap.wrap = <div> | </div>
691 caption.wrap = <div class="csc-textpic-caption"> | </div>
692 }
693 div {
694 # Just one image without a caption => don't need the div-overhead, use the "simple" rendering
695 fallbackRendering < tt_content.image.20.rendering.dl.fallbackRendering.10
696 imageRowStdWrap.dataWrap = <div class="csc-textpic-imagerow" style="width:{register:rowwidth}px;"> | </div>
697 imageLastRowStdWrap.dataWrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-last" style="width:{register:rowwidth}px;"> | </div>
698 noRowsStdWrap.wrap =
699 oneImageStdWrap.dataWrap = <div class="csc-textpic-image###CLASSES###" style="width:{register:imagespace}px;"> | </div>
700 imgTagStdWrap.wrap = <div> | </div>
701 editIconsStdWrap.wrap = <div> | </div>
702 caption.wrap = <div class="csc-textpic-caption"> | </div>
703 }
704 simple {
705 imageRowStdWrap.dataWrap = |
706 imageLastRowStdWrap.dataWrap = |
707 noRowsStdWrap.wrap =
708 oneImageStdWrap.dataWrap = |
709 imgTagStdWrap.wrap = |
710 editIconsStdWrap.wrap = |
711 caption.wrap = <div class="csc-textpic-caption"> | </div>
712 imageStdWrap.dataWrap = <div class="csc-textpic-imagewrap csc-textpic-single-image" style="width:{register:totalwidth}px;"> | </div>
713 imageStdWrapNoWidth.wrap = <div class="csc-textpic-imagewrap csc-textpic-single-image"> | </div>
714 }
715 }
716 renderMethod = dl
717
718 editIcons = tt_content : image [imageorient|imagewidth|imageheight], [imagecols|image_noRows|imageborder],[image_link|image_zoom],[image_compression|image_effects|image_frames],imagecaption[imagecaption_position]
719 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.images
720
721 caption.editIcons = tt_content : imagecaption[imagecaption_position]
722 caption.editIcons.beforeLastTag=1
723 caption.editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.caption
724
725 stdWrap.prefixComment = 2 | Image block:
726 }
727
728 # *****************
729 # CType: textpic
730 # *****************
731 tt_content.textpic = COA
732 tt_content.textpic {
733 10 = COA
734 10.if.value = 25
735 10.if.isLessThan.field = imageorient
736 10.10 = < lib.stdheader
737
738 20 = < tt_content.image.20
739 20 {
740 text.10 = COA
741 text.10 {
742 if.value = 24
743 if.isGreaterThan.field = imageorient
744 10 = < lib.stdheader
745 10.stdWrap.dataWrap = <div class="csc-textpicHeader csc-textpicHeader-{field:imageorient}">|</div>
746 }
747 text.20 = < tt_content.text.20
748 text.wrap = <div class="csc-textpic-text"> | </div>
749 }
750 }
751
752
753
754 # *****************
755 # CType: bullet
756 # *****************
757 tt_content.bullets = COA
758 tt_content.bullets {
759 10 = < lib.stdheader
760
761 20 = TEXT
762 20 {
763 field = bodytext
764 trim = 1
765 split{
766 token.char = 10
767 cObjNum = |*|1|| 2|*|
768 1.current = 1
769 1.parseFunc =< lib.parseFunc
770 1.wrap = <li class="odd">|</li>
771
772 2.current = 1
773 2.parseFunc =< lib.parseFunc
774 2.wrap = <li class="even">|</li>
775 }
776 dataWrap = <ul class="csc-bulletlist csc-bulletlist-{field:layout}">|</ul>
777 editIcons = tt_content: bodytext, [layout]
778 editIcons.beforeLastTag = 1
779 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.bullets
780
781 prefixComment = 2 | Bullet list:
782 }
783 }
784
785
786
787 # *****************
788 # CType: table
789 # *****************
790 # Rendered by a PHP function specifically written to handle CE tables. See css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php
791 tt_content.table = COA
792 tt_content.table {
793 10 = < lib.stdheader
794
795 20 = USER
796 20.userFunc = tx_cssstyledcontent_pi1->render_table
797 20.field = bodytext
798
799 20.color {
800 default =
801 1 = #EDEBF1
802 2 = #F5FFAA
803 }
804 20.tableParams_0 {
805 border =
806 cellpadding =
807 cellspacing =
808 }
809 20.tableParams_1 {
810 border =
811 cellpadding =
812 cellspacing =
813 }
814 20.tableParams_2 {
815 border =
816 cellpadding =
817 cellspacing =
818 }
819 20.tableParams_3 {
820 border =
821 cellpadding =
822 cellspacing =
823 }
824 20.innerStdWrap.wrap = |
825 20.innerStdWrap.parseFunc = < lib.parseFunc
826
827 20.stdWrap {
828 editIcons = tt_content: cols, bodytext, [layout], [table_bgColor|table_border|table_cellspacing|table_cellpadding]
829 editIcons.beforeLastTag = 1
830 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.table
831
832 prefixComment = 2 | Table:
833 }
834 }
835
836
837 # *****************
838 # CType: uploads
839 # *****************
840 # Rendered by a PHP function specifically written to handle CE filelists. See css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php
841 tt_content.uploads = COA
842 tt_content.uploads {
843 10 = < lib.stdheader
844
845 20 = USER
846 20.userFunc = tx_cssstyledcontent_pi1->render_uploads
847 20.field = media
848 20.filePath.field = select_key
849
850 20 {
851 # Rendering for each file (e.g. rows of the table) as a cObject
852 itemRendering = COA
853 itemRendering {
854 wrap = <tr class="tr-odd tr-first">|</tr> |*| <tr class="tr-even">|</tr> || <tr class="tr-odd">|</tr> |*|
855
856 10 = TEXT
857 10.data = register:linkedIcon
858 10.wrap = <td class="csc-uploads-icon">|</td>
859 10.if.isPositive.field = layout
860
861 20 = COA
862 20.wrap = <td class="csc-uploads-fileName">|</td>
863 20.1 = TEXT
864 20.1 {
865 data = register:linkedLabel
866 wrap = <p>|</p>
867 }
868 20.2 = TEXT
869 20.2 {
870 data = register:description
871 wrap = <p class="csc-uploads-description">|</p>
872 required = 1
873 }
874
875 30 = TEXT
876 30.if.isTrue.field = filelink_size
877 30.data = register:fileSize
878 30.wrap = <td class="csc-uploads-fileSize">|</td>
879 30.bytes = 1
880 30.bytes.labels = {$styles.content.uploads.filesizeBytesLabels}
881 }
882 }
883
884 20.color {
885 default =
886 1 = #EDEBF1
887 2 = #F5FFAA
888 }
889 20.tableParams_0 {
890 border =
891 cellpadding =
892 cellspacing =
893 }
894 20.tableParams_1 {
895 border =
896 cellpadding =
897 cellspacing =
898 }
899 20.tableParams_2 {
900 border =
901 cellpadding =
902 cellspacing =
903 }
904 20.tableParams_3 {
905 border =
906 cellpadding =
907 cellspacing =
908 }
909
910 20.linkProc {
911 target = _blank
912 jumpurl = {$styles.content.uploads.jumpurl}
913 jumpurl.secure = {$styles.content.uploads.jumpurl_secure}
914 jumpurl.secure.mimeTypes = {$styles.content.uploads.jumpurl_secure_mimeTypes}
915 removePrependedNumbers = 1
916
917 iconCObject = IMAGE
918 iconCObject.file.import.data = register : ICON_REL_PATH
919 iconCObject.file.width = 150
920 }
921
922 20.filesize {
923 bytes = 1
924 bytes.labels = {$styles.content.uploads.filesizeBytesLabels}
925 }
926
927 20.stdWrap {
928 editIcons = tt_content: media, layout [table_bgColor|table_border|table_cellspacing|table_cellpadding], filelink_size, imagecaption
929 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.filelist
930
931 prefixComment = 2 | File list:
932 }
933 }
934
935
936 # ******************
937 # CType: multimedia
938 # ******************
939 tt_content.multimedia = COA
940 tt_content.multimedia {
941 10 = < lib.stdheader
942
943 20 = MULTIMEDIA
944 20.file.field = multimedia
945 20.file.wrap = uploads/media/
946 20.file.listNum = 0
947 20.params.field = bodytext
948
949 20.stdWrap {
950 editIcons = tt_content: multimedia, bodytext
951 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.multimedia
952
953 prefixComment = 2 | Multimedia element:
954 }
955 }
956
957 # *****************
958 # CType: swfobject
959 # *****************
960 tt_content.swfobject = COA
961 tt_content.swfobject {
962 10 = < lib.stdheader
963
964 20 = SWFOBJECT
965 20 {
966 file =
967 width =
968 height =
969
970 flexParams.field = pi_flexform
971
972 alternativeContent.field = bodytext
973
974 layout = ###SWFOBJECT###
975
976 video {
977 player = {$styles.content.media.videoPlayer}
978
979 defaultWidth = {$styles.content.media.defaultVideoWidth}
980 defaultHeight = {$styles.content.media.defaultVideoHeight}
981
982 default {
983 params.quality = high
984 params.menu = false
985 params.allowScriptAccess = sameDomain
986 params.allowFullScreen = true
987 }
988 mapping {
989
990 }
991 }
992
993 audio {
994 player = {$styles.content.media.audioPlayer}
995
996 defaultWidth = {$styles.content.media.defaultAudioWidth}
997 defaultHeight = {$styles.content.media.defaultAudioHeight}
998
999 default {
1000 params.quality = high
1001 params.allowScriptAccess = sameDomain
1002 params.menu = false
1003 }
1004 mapping {
1005 flashvars.file = soundFile
1006 }
1007 }
1008
1009 }
1010 20.stdWrap {
1011 editIcons = tt_content: multimedia, imagewidth, imageheight, pi_flexform, bodytext
1012 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.multimedia
1013
1014 prefixComment = 2 | SWFobject element:
1015 }
1016 }
1017
1018 # *****************
1019 # CType: qtobject
1020 # *****************
1021 tt_content.qtobject = COA
1022 tt_content.qtobject {
1023 10 = < lib.stdheader
1024
1025 20 = QTOBJECT
1026 20 {
1027 file =
1028 width =
1029 height =
1030
1031 flexParams.field = pi_flexform
1032
1033 alternativeContent.field = bodytext
1034
1035 layout = ###QTOBJECT###
1036
1037 video {
1038 player = {$styles.content.media.videoPlayer}
1039
1040 defaultWidth = {$styles.content.media.defaultVideoWidth}
1041 defaultHeight = {$styles.content.media.defaultVideoHeight}
1042
1043 default {
1044 params.quality = high
1045 params.menu = false
1046 params.allowScriptAccess = sameDomain
1047 params.allowFullScreen = true
1048 }
1049 mapping {
1050
1051 }
1052 }
1053
1054 audio {
1055 player = {$styles.content.media.audioPlayer}
1056
1057 defaultWidth = {$styles.content.media.defaultAudioWidth}
1058 defaultHeight = {$styles.content.media.defaultAudioHeight}
1059
1060 default {
1061 params.quality = high
1062 params.allowScriptAccess = sameDomain
1063 params.menu = false
1064 }
1065 mapping {
1066 flashvars.file = soundFile
1067 }
1068 }
1069 }
1070 20.stdWrap {
1071 editIcons = tt_content: multimedia, imagewidth, imageheight, pi_flexform, bodytext
1072 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.multimedia
1073
1074 prefixComment = 2 | QTobject element:
1075 }
1076 }
1077
1078 # *****************
1079 # CType: media
1080 # *****************
1081 tt_content.media = COA
1082 tt_content.media {
1083 10 = < lib.stdheader
1084
1085 20 = MEDIA
1086 20 {
1087
1088 flexParams.field = pi_flexform
1089 alternativeContent < tt_content.text.20
1090 alternativeContent.field = bodytext
1091
1092 type = video
1093 renderType = auto
1094 allowEmptyUrl = 0
1095 forcePlayer = 1
1096
1097 fileExtHandler {
1098 default = MEDIA
1099 avi = MEDIA
1100 asf = MEDIA
1101 class = MEDIA
1102 wmv = MEDIA
1103 mp3 = SWF
1104 mp4 = SWF
1105 m4v = SWF
1106 swa = SWF
1107 flv = SWF
1108 swf = SWF
1109 mov = QT
1110 m4v = QT
1111 m4a = QT
1112 }
1113
1114 mimeConf.swfobject < tt_content.swfobject.20
1115 mimeConf.qtobject < tt_content.qtobject.20
1116
1117 }
1118 20.stdWrap {
1119 editIcons = tt_content: pi_flexform, bodytext
1120 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.multimedia
1121
1122 prefixComment = 2 | Media element:
1123 }
1124 }
1125
1126 # ******************
1127 # CType: mailform
1128 # ******************
1129 tt_content.mailform = COA
1130 tt_content.mailform.10 = < lib.stdheader
1131 tt_content.mailform.20 = FORM
1132 tt_content.mailform.20 {
1133 accessibility = 1
1134 noWrapAttr=1
1135 formName = mailform
1136 dontMd5FieldNames = 1
1137 layout = <div class="csc-mailform-field">###LABEL### ###FIELD###</div>
1138 labelWrap.wrap = |
1139 commentWrap.wrap = |
1140 radioWrap.wrap = |<br />
1141 radioWrap.accessibilityWrap = <fieldset###RADIO_FIELD_ID###><legend>###RADIO_GROUP_LABEL###</legend>|</fieldset>
1142 REQ = 1
1143 REQ.labelWrap.wrap = |
1144 COMMENT.layout = <div class="csc-mailform-label">###LABEL###</div>
1145 RADIO.layout = <div class="csc-mailform-field">###LABEL### <span class="csc-mailform-radio">###FIELD###</span></div>
1146 LABEL.layout = <div class="csc-mailform-field">###LABEL### <span class="csc-mailform-label">###FIELD###</span></div>
1147 target = {$styles.content.mailform.target}
1148 goodMess = {$styles.content.mailform.goodMess}
1149 badMess = {$styles.content.mailform.badMess}
1150 redirect.field = pages
1151 redirect.listNum = 0
1152 recipient.field = subheader
1153 data.field = bodytext
1154 locationData = 1
1155
1156 params.radio = class="csc-mailform-radio"
1157 params.check = class="csc-mailform-check"
1158 params.submit = class="csc-mailform-submit"
1159
1160 stdWrap.wrap = <fieldset class="csc-mailform"> | </fieldset>
1161 stdWrap {
1162 editIcons = tt_content: bodytext, pages, subheader
1163 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.form
1164
1165 prefixComment = 2 | Mail form inserted:
1166 }
1167 }
1168
1169
1170 # ******************
1171 # CType: search
1172 # ******************
1173 tt_content.search = COA
1174 tt_content.search.10 = < lib.stdheader
1175 # Result:
1176 tt_content.search.20 = SEARCHRESULT
1177 tt_content.search.20 {
1178 allowedCols = pages.title-subtitle-keywords-description : tt_content.header-bodytext-imagecaption : tt_address.name-title-address-email-company-city-country : tt_links.title-note-note2-url : tt_board.subject-message-author-email : tt_calender.title-note : tt_products.title-note-itemnumber
1179 languageField.tt_content = sys_language_uid
1180 renderObj = COA
1181 renderObj {
1182
1183 10 = TEXT
1184 10.field = pages_title
1185 10.htmlSpecialChars = 1
1186 10.typolink {
1187 parameter.field = uid
1188 target = {$styles.content.searchresult.resultTarget}
1189 additionalParams.data = register:SWORD_PARAMS
1190 additionalParams.required = 1
1191 additionalParams.wrap = &no_cache=1
1192 }
1193 10.htmlSpecialChars = 1
1194 10.wrap = <h3 class="csc-searchResultHeader">|</h3>
1195
1196 20 = COA
1197 20 {
1198 10 = TEXT
1199 10.field = tt_content_bodytext
1200 10.stripHtml = 1
1201 10.htmlSpecialChars = 1
1202 }
1203 20.stdWrap.crop = 200 | ...
1204 20.stdWrap.wrap = <p class="csc-searchResult">|</p>
1205 }
1206
1207 layout = COA
1208 layout {
1209 wrap = <table border="0" cellspacing="0" cellpadding="2" class="csc-searchResultInfo"><tr> | </tr></table> ###RESULT###
1210
1211 10 = TEXT
1212 10.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.resultRange
1213 10.wrap = <td class="csc-searchResultRange"><p>|</p></td>
1214
1215 20 = TEXT
1216 20.value = ###PREV###&nbsp;&nbsp;&nbsp;###NEXT###
1217 20.wrap = <td class="csc-searchResultPrevNext"><p>|</p></td>
1218 }
1219
1220 noResultObj = COA
1221 noResultObj {
1222 10 = TEXT
1223 10.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.emptySearch
1224 10.wrap = <h3 class="csc-noSearchResultMsg">|</h3>
1225 }
1226
1227 next = TEXT
1228 next.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchResultNext
1229
1230 prev = TEXT
1231 prev.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchResultPrev
1232
1233 target = {$styles.content.searchresult.target}
1234 range = 20
1235
1236 stdWrap.prefixComment = 2 | Search result:
1237 }
1238
1239 # Form:
1240 tt_content.search.30 < tt_content.mailform.20
1241 tt_content.search.30 {
1242 goodMess = {$styles.content.searchform.goodMess}
1243 redirect >
1244 recipient >
1245 data >
1246 dataArray {
1247 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchWord
1248 10.type = sword=input
1249 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchIn
1250 20.type = scols=select
1251 20.valueArray {
1252 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.headersKeywords
1253 10.value = pages.title-subtitle-keywords-description:tt_content.header
1254 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.pageContent
1255 20.value = tt_content.header-bodytext-imagecaption
1256 }
1257 30.type = stype=hidden
1258 30.value = L0
1259 40.type = submit=submit
1260 40.value.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchButton
1261 }
1262 type.field = pages
1263 type.listNum = 0
1264 locationData = HTTP_POST_VARS
1265 no_cache = 1
1266
1267 stdWrap.wrap = <table border="0" cellspacing="1" cellpadding="1" class="csc-searchform"> | </table>
1268 stdWrap {
1269 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.search
1270
1271 prefixComment = 2 | Search form inserted:
1272 }
1273 }
1274
1275
1276 # ******************
1277 # CType: login
1278 # ******************
1279 tt_content.login < tt_content.mailform
1280 tt_content.login.10 = < lib.stdheader
1281 tt_content.login.20 {
1282 goodMess = {$styles.content.loginform.goodMess}
1283 redirect >
1284 recipient >
1285 data >
1286 dataArray {
1287 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:login.username
1288 10.type = *user=input
1289 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:login.password
1290 20.type = *pass=password
1291 30.type = logintype=hidden
1292 30.value = login
1293 40.type = submit=submit
1294 40.value.data = LLL:EXT:css_styled_content/pi1/locallang.xml:login.login
1295 }
1296 type.field = pages
1297 type.listNum = 0
1298 target = {$styles.content.loginform.target}
1299 locationData = 0
1300 hiddenFields.pid = TEXT
1301 hiddenFields.pid {
1302 value = {$styles.content.loginform.pid}
1303 override.field = pages
1304 override.listNum = 1
1305 }
1306
1307 stdWrap.wrap = <div class="csc-loginform"> | </div>
1308 stdWrap {
1309 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.login
1310
1311 prefixComment = 2 | Login/Logout form:
1312 }
1313 }
1314 [loginUser = *]
1315 tt_content.login.20 {
1316 dataArray >
1317 dataArray {
1318 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:login.username
1319 10.label.wrap = |&nbsp;<!--###USERNAME###-->
1320 30.type = logintype=hidden
1321 30.value = logout
1322 40.type = submit=submit
1323 40.value.data = LLL:EXT:css_styled_content/pi1/locallang.xml:login.logout
1324 }
1325 }
1326 [global]
1327
1328
1329 # ******************
1330 # CType: splash
1331 # ******************
1332 # Deprecated element.
1333 # Still here for backwards compliance with plugins using the "text box" type.
1334 tt_content.splash = CASE
1335 tt_content.splash.key.field = splash_layout
1336 tt_content.splash.stdWrap {
1337 prefixComment = 2 | Textbox inserted (Deprecated)
1338 }
1339 tt_content.splash.default = COA
1340 tt_content.splash.default {
1341 20 = CTABLE
1342 20 {
1343 c.1 = < tt_content.text
1344 lm.1 = IMAGE
1345 lm.1.file {
1346 import = uploads/pics/
1347 import.field = image
1348 import.listNum = 0
1349 maxW.field = imagewidth
1350 maxW.ifEmpty = 200
1351 }
1352 cMargins = 30,0,0,0
1353 }
1354 }
1355 tt_content.splash.1 < tt_content.splash.default
1356 tt_content.splash.1.20.lm.1.file >
1357 tt_content.splash.1.20.lm.1.file = GIFBUILDER
1358 tt_content.splash.1.20.lm.1.file {
1359 XY = [10.w]+10,[10.h]+10
1360 backColor = {$content.splash.bgCol}
1361 backColor.override.data = register:pageColor
1362 format = jpg
1363 5 = BOX
1364 5.dimensions = 3,3,[10.w],[10.h]
1365 5.color = #333333
1366 7 = EFFECT
1367 7.value = blur=99|blur=99|blur=99|blur=99|blur=99|blur=99|blur=99
1368 10 = IMAGE
1369 10.file {
1370 import = uploads/pics/
1371 import.field = image
1372 import.listNum = 0
1373 maxW.field = imagewidth
1374 maxW.ifEmpty = 200
1375 }
1376 }
1377 // The image frames are not available unless TypoScript code from styles.content.imgFrames.x is provided manually:
1378 tt_content.splash.2 < tt_content.splash.default
1379 #tt_content.splash.2.20.lm.1.file.m < styles.content.imgFrames.1
1380 tt_content.splash.3 < tt_content.splash.default
1381 #tt_content.splash.3.20.lm.1.file.m < styles.content.imgFrames.2
1382
1383 // From plugin.postit1, if included:
1384 tt_content.splash.20 = < plugin.postit1
1385
1386
1387
1388 # ****************
1389 # CType: menu
1390 # ****************
1391 tt_content.menu = COA
1392 tt_content.menu {
1393 10 = < lib.stdheader
1394
1395 20 = CASE
1396 20 {
1397 key.field = menu_type
1398
1399 # "Menu of these pages"
1400 default = HMENU
1401 default {
1402 special = list
1403 special.value.field = pages
1404 wrap = <ul class="csc-menu csc-menu-def">|</ul>
1405 1 = TMENU
1406 1 {
1407 target = {$PAGE_TARGET}
1408 NO {
1409 stdWrap.htmlSpecialChars = 1
1410 wrapItemAndSub = <li>|</li>
1411 ATagTitle.field = description // title
1412 }
1413 noBlur = 1
1414 }
1415 }
1416
1417 # "Menu of subpages to these pages"
1418 1 < .default
1419 1 {
1420 special = directory
1421 wrap = <ul class="csc-menu csc-menu-1">|</ul>
1422 }
1423
1424 # "Sitemap - liststyle"
1425 2 = HMENU
1426 2 {
1427 wrap = <div class="csc-sitemap">|</div>
1428 1 = TMENU
1429 1 {
1430 target = {$PAGE_TARGET}
1431 noBlur = 1
1432 expAll = 1
1433 wrap = <ul>|</ul>
1434 NO {
1435 stdWrap.htmlSpecialChars = 1
1436 wrapItemAndSub = <li>|</li>
1437 ATagTitle.field = description // title
1438 }
1439 }
1440 2 < .1
1441 3 < .1
1442 4 < .1
1443 5 < .1
1444 6 < .1
1445 7 < .1
1446 }
1447
1448 # "Section index (pagecontent w/Index checked - liststyle)"
1449 3 < styles.content.get
1450 3 {
1451 wrap = <ul class="csc-menu csc-menu-3">|</ul>
1452 select.andWhere = sectionIndex!=0
1453 select.pidInList.override.field = pages
1454 renderObj = TEXT
1455 renderObj {
1456 fieldRequired = header
1457 trim = 1
1458 field = header
1459 htmlSpecialChars = 1
1460 noBlur = 1
1461 wrap = <li class="csc-section">|</li>
1462 typolink.parameter.field = pid
1463 typolink.section.field = uid
1464 }
1465 }
1466
1467 # "Menu of subpages to these pages (with abstract)"
1468 4 < .1
1469 4 {
1470 wrap = <dl class="csc-menu csc-menu-4">|</dl>
1471 1.NO {
1472 wrapItemAndSub >
1473 linkWrap = <dt>|</dt>
1474 after {
1475 data = field : abstract // field : description // field : subtitle
1476 required = 1
1477 htmlSpecialChars = 1
1478 wrap = <dd>|</dd>
1479 }
1480 ATagTitle.field = description // title
1481 }
1482 }
1483
1484 # "Recently updated pages"
1485 5 < .default
1486 5 {
1487 wrap = <ul class="csc-menu csc-menu-5">|</ul>
1488 special = updated
1489 special {
1490 maxAge = 3600*24*7
1491 excludeNoSearchPages = 1
1492 }
1493 }
1494
1495 # "Related pages (based on keywords)"
1496 6 < .default
1497 6 {
1498 wrap = <ul class="csc-menu csc-menu-6">|</ul>
1499 special = keywords
1500 special {
1501 excludeNoSearchPages = 1
1502 }
1503 }
1504
1505 # "Menu of subpages to these pages + sections - liststyle"
1506 7 < .1
1507 7 {
1508 wrap = <ul class="csc-menu csc-menu-7">|</ul>
1509 1.expAll = 1
1510 2 < .1
1511 2 {
1512 sectionIndex = 1
1513 sectionIndex.type = header
1514 wrap = <ul>|</ul>
1515 NO.wrapItemAndSub = <li class="csc-section">|</li>
1516 }
1517 }
1518 }
1519
1520 20.stdWrap {
1521 editIcons = tt_content: menu_type, pages
1522 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.menuSitemap
1523
1524 prefixComment = 2 | Menu/Sitemap element:
1525 }
1526 }
1527
1528
1529
1530 # ****************
1531 # CType: shortcut
1532 # ****************
1533 # Should be a complete copy from the old static template "content (default)"
1534 tt_content.shortcut = COA
1535 tt_content.shortcut {
1536 20 = CASE
1537 20.key.field = layout
1538 20.0= RECORDS
1539 20.0 {
1540 source.field = records
1541 tables = {$content.shortcut.tables}
1542 # THESE are OLD plugins. Modern plugins registers themselves automatically!
1543 conf.tt_content = < tt_content
1544 conf.tt_address = < tt_address
1545 conf.tt_links = < tt_links
1546 conf.tt_guest = < tt_guest
1547 conf.tt_board = < tt_board
1548 conf.tt_calender = < tt_calender
1549 conf.tt_rating < tt_rating
1550 conf.tt_products = < tt_products
1551 conf.tt_news = < tt_news
1552 conf.tt_poll = < plugin.tt_poll
1553 }
1554 20.1= RECORDS
1555 20.1 {
1556 source.field = records
1557 tables = {$content.shortcut.tables}
1558 conf.tt_poll = < plugin.tt_poll
1559 conf.tt_poll.code = RESULT,SUBMITTEDVOTE
1560 }
1561
1562 20.stdWrap {
1563 editIcons = tt_content: records
1564 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.recordList
1565
1566 prefixComment = 2 | Inclusion of other records (by reference):
1567 }
1568 }
1569
1570
1571 # ****************
1572 # CType: list
1573 # ****************
1574 # Should be a complete copy from the old static template "content (default)" (except "lib.stdheader")
1575 tt_content.list = COA
1576 tt_content.list {
1577 10 = < lib.stdheader
1578
1579 20 = CASE
1580 20.key.field = list_type
1581 20 {
1582 # LIST element references (NOT copy of objects!)
1583 # THESE are OLD plugins. Modern plugins registers themselves automatically!
1584 3 = CASE
1585 3.key.field = layout
1586 3.0 = < plugin.tt_guest
1587
1588 4 = CASE
1589 4.key.field = layout
1590 4.0 = < plugin.tt_board_list
1591 4.1 = < plugin.tt_board_tree
1592
1593 2 = CASE
1594 2.key.field = layout
1595 2.0 = < plugin.tt_board_tree
1596
1597 5 = CASE
1598 5.key.field = layout
1599 5.0 = < plugin.tt_products
1600
1601 7 = CASE
1602 7.key.field = layout
1603 7.0 = < plugin.tt_calender
1604
1605 8 = CASE
1606 8.key.field = layout
1607 8.0 = < plugin.tt_rating
1608
1609 9 = CASE
1610 9.key.field = layout
1611 9.0 = < plugin.tt_news
1612
1613 11 = CASE
1614 11.key.field = layout
1615 11.0 = < plugin.tipafriend
1616
1617 20 = CASE
1618 20.key.field = layout
1619 20.0 = < plugin.feadmin.fe_users
1620
1621 21 = CASE
1622 21.key.field = layout
1623 21.0 = < plugin.feadmin.dmailsubscription
1624 }
1625
1626 20.stdWrap {
1627 editIcons = tt_content: list_type, layout, select_key, pages [recursive]
1628 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.plugin
1629
1630 prefixComment = 2 | Plugin inserted:
1631 }
1632 }
1633
1634
1635 # ****************
1636 # CType: script
1637 # ****************
1638 # OBSOLETE! Please make extensions instead. The "script" content element was meant for these custom purposes in the past. Today extensions will do the job better.
1639 tt_content.script = TEXT
1640 tt_content.script {
1641 value =
1642
1643 prefixComment = 2 | Script element (Deprecated)
1644 }
1645
1646
1647 # ****************
1648 # CType: div
1649 # ****************
1650 tt_content.div = TEXT
1651 tt_content.div {
1652 value = <hr />
1653 wrap = <div class="divider">|</div>
1654 prefixComment = 2 | Div element
1655 }
1656
1657
1658 # ****************
1659 # CType: html
1660 # ****************
1661 # This truely IS a content object, launched from inside the PHP class of course.
1662 # Should be a complete copy from the old static template "content (default)"
1663 tt_content.html = TEXT
1664 tt_content.html {
1665 field = bodytext
1666
1667 editIcons = tt_content: pages
1668 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.html
1669
1670 prefixComment = 2 | Raw HTML content:
1671 }
1672
1673
1674 # ****************
1675 # Default error msg:
1676 # ****************
1677 tt_content.default = TEXT
1678 tt_content.default {
1679 field = CType
1680 wrap = <p style="background-color: yellow;"><b>ERROR:</b> Content Element type "|" has no rendering definition!</p>
1681
1682 prefixComment = 2 | Unknown element message:
1683 }
1684
1685 # *********************************************************************
1686 # ACCESSIBILTY MODE
1687 # *********************************************************************
1688
1689
1690
1691
1692
1693
1694
1695 plugin.tx_cssstyledcontent._CSS_DEFAULT_STYLE (
1696 /* Captions */
1697 DIV.csc-textpic-caption-c .csc-textpic-caption { text-align: center; }
1698 DIV.csc-textpic-caption-r .csc-textpic-caption { text-align: right; }
1699 DIV.csc-textpic-caption-l .csc-textpic-caption { text-align: left; }
1700
1701 /* Needed for noRows setting */
1702 DIV.csc-textpic DIV.csc-textpic-imagecolumn { float: left; display: inline; }
1703
1704 /* Border just around the image */
1705 {$styles.content.imgtext.borderSelector} {
1706 border: {$styles.content.imgtext.borderThick}px solid {$styles.content.imgtext.borderColor};
1707 padding: {$styles.content.imgtext.borderSpace}px {$styles.content.imgtext.borderSpace}px;
1708 }
1709
1710 DIV.csc-textpic-imagewrap { padding: 0; }
1711
1712 DIV.csc-textpic IMG { border: none; }
1713
1714 /* DIV: This will place the images side by side */
1715 DIV.csc-textpic DIV.csc-textpic-imagewrap DIV.csc-textpic-image { float: left; }
1716
1717 /* UL: This will place the images side by side */
1718 DIV.csc-textpic DIV.csc-textpic-imagewrap UL { list-style: none; margin: 0; padding: 0; }
1719 DIV.csc-textpic DIV.csc-textpic-imagewrap UL LI { float: left; margin: 0; padding: 0; }
1720
1721 /* DL: This will place the images side by side */
1722 DIV.csc-textpic DIV.csc-textpic-imagewrap DL.csc-textpic-image { float: left; }
1723 DIV.csc-textpic DIV.csc-textpic-imagewrap DL.csc-textpic-image DT { float: none; }
1724 DIV.csc-textpic DIV.csc-textpic-imagewrap DL.csc-textpic-image DD { float: none; }
1725 DIV.csc-textpic DIV.csc-textpic-imagewrap DL.csc-textpic-image DD IMG { border: none; } /* FE-Editing Icons */
1726 DL.csc-textpic-image { margin: 0; }
1727 DL.csc-textpic-image DT { margin: 0; display: inline; }
1728 DL.csc-textpic-image DD { margin: 0; }
1729
1730 /* Clearer */
1731 DIV.csc-textpic-clear { clear: both; }
1732
1733 /* Margins around images: */
1734
1735 /* Pictures on left, add margin on right */
1736 DIV.csc-textpic-left DIV.csc-textpic-imagewrap .csc-textpic-image,
1737 DIV.csc-textpic-intext-left-nowrap DIV.csc-textpic-imagewrap .csc-textpic-image,
1738 DIV.csc-textpic-intext-left DIV.csc-textpic-imagewrap .csc-textpic-image {
1739 display: inline; /* IE fix for double-margin bug */
1740 margin-right: {$styles.content.imgtext.colSpace}px;
1741 }
1742
1743 /* Pictures on right, add margin on left */
1744 DIV.csc-textpic-right DIV.csc-textpic-imagewrap .csc-textpic-image,
1745 DIV.csc-textpic-intext-right-nowrap DIV.csc-textpic-imagewrap .csc-textpic-image,
1746 DIV.csc-textpic-intext-right DIV.csc-textpic-imagewrap .csc-textpic-image {
1747 display: inline; /* IE fix for double-margin bug */
1748 margin-left: {$styles.content.imgtext.colSpace}px;
1749 }
1750
1751 /* Pictures centered, add margin on left */
1752 DIV.csc-textpic-center DIV.csc-textpic-imagewrap .csc-textpic-image {
1753 display: inline; /* IE fix for double-margin bug */
1754 margin-left: {$styles.content.imgtext.colSpace}px;
1755 }
1756 DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-image .csc-textpic-caption { margin: 0; }
1757 DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-image IMG { margin: 0; vertical-align:bottom; }
1758
1759 /* Space below each image (also in-between rows) */
1760 DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-image { margin-bottom: {$styles.content.imgtext.rowSpace}px; }
1761 DIV.csc-textpic-equalheight DIV.csc-textpic-imagerow { margin-bottom: {$styles.content.imgtext.rowSpace}px; display: block; }
1762 DIV.csc-textpic DIV.csc-textpic-imagerow { clear: both; }
1763 DIV.csc-textpic DIV.csc-textpic-single-image IMG { margin-bottom: {$styles.content.imgtext.rowSpace}px; }
1764
1765 /* IE7 hack for margin between image rows */
1766 *+html DIV.csc-textpic DIV.csc-textpic-imagerow .csc-textpic-image { margin-bottom: 0; }
1767 *+html DIV.csc-textpic DIV.csc-textpic-imagerow { margin-bottom: {$styles.content.imgtext.rowSpace}px; }
1768
1769 /* No margins around the whole image-block */
1770 DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-firstcol { margin-left: 0px !important; }
1771 DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-lastcol { margin-right: 0px !important; }
1772
1773 /* Add margin from image-block to text (in case of "Text w/ images") */
1774 DIV.csc-textpic-intext-left DIV.csc-textpic-imagewrap,
1775 DIV.csc-textpic-intext-left-nowrap DIV.csc-textpic-imagewrap {
1776 margin-right: {$styles.content.imgtext.textMargin}px !important;
1777 }
1778 DIV.csc-textpic-intext-right DIV.csc-textpic-imagewrap,
1779 DIV.csc-textpic-intext-right-nowrap DIV.csc-textpic-imagewrap {
1780 margin-left: {$styles.content.imgtext.textMargin}px !important;
1781 }
1782
1783 /* Positioning of images: */
1784
1785 /* Above */
1786 DIV.csc-textpic-above DIV.csc-textpic-text { clear: both; }
1787
1788 /* Center (above or below) */
1789 DIV.csc-textpic-center { text-align: center; /* IE-hack */ }
1790 DIV.csc-textpic-center DIV.csc-textpic-imagewrap { margin: 0 auto; }
1791 DIV.csc-textpic-center DIV.csc-textpic-imagewrap .csc-textpic-image { text-align: left; /* Remove IE-hack */ }
1792 DIV.csc-textpic-center DIV.csc-textpic-text { text-align: left; /* Remove IE-hack */ }
1793
1794 /* Right (above or below) */
1795 DIV.csc-textpic-right DIV.csc-textpic-imagewrap { float: right; }
1796 DIV.csc-textpic-right DIV.csc-textpic-text { clear: right; }
1797
1798 /* Left (above or below) */
1799 DIV.csc-textpic-left DIV.csc-textpic-imagewrap { float: left; }
1800 DIV.csc-textpic-left DIV.csc-textpic-text { clear: left; }
1801
1802 /* Left (in text) */
1803 DIV.csc-textpic-intext-left DIV.csc-textpic-imagewrap { float: left; }
1804
1805 /* Right (in text) */
1806 DIV.csc-textpic-intext-right DIV.csc-textpic-imagewrap { float: right; }
1807
1808 /* Right (in text, no wrap around) */
1809 DIV.csc-textpic-intext-right-nowrap DIV.csc-textpic-imagewrap { float: right; clear: both; }
1810 /* Hide from IE5-mac. Only IE-win sees this. \*/
1811 * html DIV.csc-textpic-intext-right-nowrap .csc-textpic-text { height: 1%; }
1812 /* End hide from IE5/mac */
1813
1814 /* Left (in text, no wrap around) */
1815 DIV.csc-textpic-intext-left-nowrap DIV.csc-textpic-imagewrap { float: left; clear: both; }
1816 /* Hide from IE5-mac. Only IE-win sees this. \*/
1817 * html DIV.csc-textpic-intext-left-nowrap .csc-textpic-text,
1818 * html .csc-textpic-intext-left ol,
1819 * html .csc-textpic-intext-left ul { height: 1%; }
1820 /* End hide from IE5/mac */
1821
1822 DIV.csc-textpic DIV.csc-textpic-imagerow-last { margin-bottom: 0; }
1823
1824 /* Browser fixes: */
1825
1826 /* Fix for unordered and ordered list with image "In text, left" */
1827 .csc-textpic-intext-left ol, .csc-textpic-intext-left ul {padding-left: 40px; overflow: auto; }
1828 )
1829
1830 # TYPO3 SVN ID: $Id: setup.txt 8782 2010-09-13 08:34:33Z psychomieze $