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