[TASK] Remove SVN auto properties $Id$
[Packages/TYPO3.CMS.git] / typo3 / sysext / css_styled_content / static / v3.8 / 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
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 }
123 nonTypoTagStdWrap.encapsLines {
124 encapsTagList = div,p,pre,h1,h2,h3,h4,h5,h6
125 remapTag.DIV = P
126 nonWrappedTag = P
127 innerStdWrap_all.ifBlank = &nbsp;
128 addAttributes.P.class = bodytext
129 addAttributes.P.class.setOnly=blank
130 }
131 nonTypoTagStdWrap.HTMLparser = 1
132 nonTypoTagStdWrap.HTMLparser {
133 keepNonMatchedTags = 1
134 htmlSpecialChars = 2
135 }
136 }
137
138
139 # Content header:
140 lib.stdheader = COA
141 lib.stdheader {
142
143 # Create align style-attribute for <Hx> tags
144 2 = LOAD_REGISTER
145 2.headerStyle.field = header_position
146 2.headerStyle.required = 1
147 2.headerStyle.noTrimWrap = | style="text-align:|;"|
148
149 # Create class="csc-firstHeader" attribute for <Hx> tags
150 3 = LOAD_REGISTER
151 3.headerClass = csc-firstHeader
152 3.headerClass.if.value=1
153 3.headerClass.if.equals.data = cObj:parentRecordNumber
154 3.headerClass.noTrimWrap = | class="|"|
155
156 # Date format:
157 5 = TEXT
158 5.field = date
159 5.if.isTrue.field = date
160 5.date = d/m Y
161 5.wrap = <p class="csc-header-date">|</p>
162 5.prefixComment = 2 | Header date:
163
164 # This CASE cObject renders the header content:
165 # currentValue is set to the header data, possibly wrapped in link-tags.
166 10 = CASE
167 10.setCurrent {
168 field = header
169 htmlSpecialChars = 1
170 typolink.parameter.field = header_link
171 }
172 10.key.field = header_layout
173 10.key.ifEmpty = {$content.defaultHeaderType}
174 10.key.ifEmpty.override.data = register: defaultHeaderType
175
176 10.1 = TEXT
177 10.1.current = 1
178 10.1.insertData = 1
179 10.1.fontTag = <h1{register:headerStyle}{register:headerClass}>|</h1>
180
181 10.2 < .10.1
182 10.2.fontTag = <h2{register:headerStyle}{register:headerClass}>|</h2>
183
184 10.3 < .10.1
185 10.3.fontTag = <h3{register:headerStyle}{register:headerClass}>|</h3>
186
187 10.4 < .10.1
188 10.4.fontTag = <h4{register:headerStyle}{register:headerClass}>|</h4>
189
190 10.5 < .10.1
191 10.5.fontTag = <h5{register:headerStyle}{register:headerClass}>|</h5>
192
193 # Pops the used registers off the stack:
194 98 = RESTORE_REGISTER
195 99 = RESTORE_REGISTER
196
197 # Post-processing:
198 stdWrap.fieldRequired = header
199 stdWrap.if {
200 equals.field = header_layout
201 value = 100
202 negate = 1
203 }
204
205 stdWrap.editIcons = tt_content : header, [header_layout | header_position], [header_link|date]
206 stdWrap.editIcons.beforeLastTag = 1
207 stdWrap.editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.header
208
209 stdWrap.dataWrap = <div class="csc-header csc-header-n{cObj:parentRecordNumber}">|</div>
210 stdWrap.prefixComment = 2 | Header:
211 }
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227 #******************************************************
228 # Including library for processing of some elements:
229 #******************************************************
230 includeLibs.tx_cssstyledcontent_pi1 = EXT:css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php
231
232
233 #**********************************
234 # tt_content is started
235 #**********************************
236 tt_content >
237 tt_content = CASE
238 tt_content.key.field = CType
239 tt_content.stdWrap {
240
241 spaceBefore.field = spaceBefore
242 spaceAfter.field = spaceAfter
243 space = {$content.space}
244
245 innerWrap.cObject = CASE
246 innerWrap.cObject {
247 key.field = section_frame
248
249 1 = TEXT
250 1.value = <div class="csc-frame csc-frame-invisible">|</div>
251
252 5 = TEXT
253 5.value = <div class="csc-frame csc-frame-rulerBefore"></div>|
254
255 6 = TEXT
256 6.value = |<div class="csc-frame csc-frame-rulerAfter"></div>
257
258 10 = TEXT
259 10.value = <div class="csc-frame csc-frame-indent">|</div>
260
261 11 = TEXT
262 11.value = <div class="csc-frame csc-frame-indent3366">|</div>
263
264 12 = TEXT
265 12.value = <div class="csc-frame csc-frame-indent6633">|</div>
266
267 20 = TEXT
268 20.value = <div class="csc-frame csc-frame-frame1">|</div>
269
270 21 = TEXT
271 21.value = <div class="csc-frame csc-frame-frame2">|</div>
272 }
273
274 innerWrap2 = | <p class="csc-linkToTop"><a href="#">{LLL:EXT:css_styled_content/pi1/locallang.xml:label.toTop}</a></p>
275 innerWrap2.insertData = 1
276 innerWrap2.fieldRequired = linkToTop
277
278 dataWrap = <a id="c{field:uid}"></a> |
279
280 prepend = TEXT
281 prepend.dataWrap = <a id="c{field:_LOCALIZED_UID}"></a>
282 prepend.if.isTrue.field = _LOCALIZED_UID
283
284 editPanel = 1
285 editPanel {
286 allow = move,new,edit,hide,delete
287 line = 5
288 label = %s
289 onlyCurrentPid = 1
290 previewBorder = 4
291 edit.displayRecord = 1
292 }
293
294 prefixComment = 1 | CONTENT ELEMENT, uid:{field:uid}/{field:CType}
295
296 }
297
298
299
300 # *****************
301 # CType: header
302 # *****************
303 # See Object path "lib.stdheader"
304 tt_content.header = COA
305 tt_content.header {
306 10 = < lib.stdheader
307
308 20 = TEXT
309 20 {
310 field = subheader
311 required = 1
312
313 dataWrap = <p class="csc-subheader csc-subheader-{field:layout}">|</p>
314 htmlSpecialChars = 1
315
316 editIcons = tt_content:subheader,layout
317 editIcons.beforeLastTag = 1
318 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.subheader
319
320 prefixComment = 2 | Subheader:
321 }
322 }
323
324
325 # *****************
326 # CType: text
327 # *****************
328 tt_content.text = COA
329 tt_content.text {
330 10 = < lib.stdheader
331
332 20 = TEXT
333 20 {
334 field = bodytext
335 required = 1
336
337 parseFunc = < lib.parseFunc_RTE
338
339 editIcons = tt_content:bodytext, rte_enabled
340 editIcons.beforeLastTag = 1
341 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.bodytext
342
343 prefixComment = 2 | Text:
344 }
345 }
346
347
348 # *****************
349 # CType: image
350 # *****************
351 # (also used for rendering 'textpic' type):
352 tt_content.image = COA
353 tt_content.image.10 = < lib.stdheader
354 tt_content.image.20 = IMGTEXT
355 tt_content.image.20 {
356 imgList.field = image
357 textPos.field = imageorient
358 imgPath = uploads/pics/
359 imgObjNum = 1
360 1 {
361 file.import.current = 1
362 file.width.field = imagewidth
363 params = align="top"
364 imageLinkWrap = 1
365 imageLinkWrap {
366 bodyTag = <body bgcolor="black">
367 wrap = <a href="javascript:close();"> | </a>
368 width = {$styles.content.imgtext.linkWrap.width}
369 height = {$styles.content.imgtext.linkWrap.height}
370 effects = {$styles.content.imgtext.linkWrap.effects}
371
372 JSwindow = 1
373 JSwindow.newWindow = {$styles.content.imgtext.linkWrap.newWindow}
374 JSwindow.expand = 17,20
375
376 enable.field = image_zoom
377 enable.ifEmpty.typolink.parameter.field = image_link
378 enable.ifEmpty.typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT
379 enable.ifEmpty.typolink.returnLast = url
380
381 typolink.parameter.field = image_link
382 typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT
383 typolink.target = {$styles.content.links.target}
384 typolink.extTarget = {$styles.content.links.extTarget}
385 }
386
387 altText = TEXT
388 altText {
389 field = altText
390 stripHtml = 1
391 split.token.char = 10
392 split.token.if.isTrue = {$styles.content.imgtext.imageTextSplit}
393 split.returnKey.data = register : IMAGE_NUM_CURRENT
394 }
395
396 titleText < .altText
397 titleText.field = titleText
398
399 longdescURL < .altText
400 longdescURL.field = longdescURL
401
402 emptyTitleHandling = {$styles.content.imgtext.emptyTitleHandling}
403 titleInLink = {$styles.content.imgtext.titleInLink}
404 titleInLinkAndImg = {$styles.content.imgtext.titleInLinkAndImg}
405 }
406
407 maxW = {$styles.content.imgtext.maxW}
408 maxW.override.data = register:maxImageWidth
409 maxWInText = {$styles.content.imgtext.maxWInText}
410 maxWInText.override.data = register:maxImageWidthInText
411
412 equalH.field = imageheight
413 spaceBelowAbove = 6
414
415 image_compression.field = image_compression
416 image_effects.field = image_effects
417
418 noRows.field = image_noRows
419
420 cols.field = imagecols
421 border.field = imageborder
422 caption {
423 1 = TEXT
424 1 {
425 field = imagecaption
426 required = 1
427 parseFunc =< lib.parseFunc
428 br = 1
429 fontTag = <p class="csc-caption">|</p>
430 wrapAlign.field = imagecaption_position
431 split.token.char = 10
432 split.token.if.isPositive = {$styles.content.imgtext.imageTextSplit} + {$styles.content.imgtext.captionSplit}
433 split.returnKey.data = register : IMAGE_NUM_CURRENT
434 }
435 }
436 # captionSplit is deprecated, use imageTextSplit instead
437 captionSplit = {$styles.content.imgtext.captionSplit}
438 # caption/alttext/title/longdescURL splitting
439 imageTextSplit = {$styles.content.imgtext.imageTextSplit}
440
441 borderCol = {$styles.content.imgtext.borderColor}
442 borderThick = {$styles.content.imgtext.borderThick}
443 colSpace = {$styles.content.imgtext.colSpace}
444 rowSpace = {$styles.content.imgtext.rowSpace}
445 textMargin = {$styles.content.imgtext.textMargin}
446
447 editIcons = tt_content : image [imageorient|imagewidth|imageheight], [imagecols|image_noRows|imageborder],[image_link|image_zoom],[image_compression|image_effects|image_frames],imagecaption[imagecaption_position]
448 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.images
449
450 caption.editIcons = tt_content : imagecaption[imagecaption_position]
451 caption.editIcons.beforeLastTag=1
452 caption.editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.caption
453
454 stdWrap.prefixComment = 2 | Image block:
455 }
456
457
458 # *****************
459 # CType: textpic
460 # *****************
461 tt_content.textpic = COA
462 tt_content.textpic {
463 10 = COA
464 10.if.value = 25
465 10.if.isLessThan.field = imageorient
466 10.10 = < lib.stdheader
467
468 20 = < tt_content.image.20
469 20.text.10 = COA
470 20.text.10 {
471 if.value = 24
472 if.isGreaterThan.field = imageorient
473 10 = < lib.stdheader
474 10.stdWrap.dataWrap = <div class="csc-textpicHeader csc-textpicHeader-{field:imageorient}">|</div>
475 }
476 20.text.20 = < tt_content.text.20
477 }
478
479
480 # *****************
481 # CType: bullet
482 # *****************
483 # Rendered by a PHP function specifically written to handle CE bullet lists. See css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php
484 tt_content.bullets = COA
485 tt_content.bullets {
486 10 = < lib.stdheader
487
488 20 = USER
489 20.userFunc = tx_cssstyledcontent_pi1->render_bullets
490 20.field = bodytext
491
492 20.innerStdWrap.parseFunc = < lib.parseFunc
493
494 20.stdWrap {
495 editIcons = tt_content: bodytext, [layout]
496 editIcons.beforeLastTag = 1
497 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.bullets
498
499 prefixComment = 2 | Bullet list:
500 }
501 }
502
503
504 # *****************
505 # CType: table
506 # *****************
507 # Rendered by a PHP function specifically written to handle CE tables. See css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php
508 tt_content.table = COA
509 tt_content.table {
510 10 = < lib.stdheader
511
512 20 = USER
513 20.userFunc = tx_cssstyledcontent_pi1->render_table
514 20.field = bodytext
515
516 20.color {
517 default =
518 1 = #EDEBF1
519 2 = #F5FFAA
520 }
521 20.tableParams_0 {
522 border =
523 cellpadding =
524 cellspacing =
525 }
526 20.tableParams_1 {
527 border =
528 cellpadding =
529 cellspacing =
530 }
531 20.tableParams_2 {
532 border =
533 cellpadding =
534 cellspacing =
535 }
536 20.tableParams_3 {
537 border =
538 cellpadding =
539 cellspacing =
540 }
541 20.innerStdWrap.wrap = <p>|</p>
542 20.innerStdWrap.parseFunc = < lib.parseFunc
543
544 20.stdWrap {
545 editIcons = tt_content: cols, bodytext, [layout], [table_bgColor|table_border|table_cellspacing|table_cellpadding]
546 editIcons.beforeLastTag = 1
547 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.table
548
549 prefixComment = 2 | Table:
550 }
551 }
552
553
554 # *****************
555 # CType: uploads
556 # *****************
557 # Rendered by a PHP function specifically written to handle CE filelists. See css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php
558 tt_content.uploads = COA
559 tt_content.uploads {
560 10 = < lib.stdheader
561
562 20 = USER
563 20.userFunc = tx_cssstyledcontent_pi1->render_uploads
564 20.field = media
565
566 20 {
567 # Rendering for each file (e.g. rows of the table) as a cObject
568 itemRendering = COA
569 itemRendering {
570 wrap = <tr class="tr-odd tr-first">|</tr> |*| <tr class="tr-even">|</tr> || <tr class="tr-odd">|</tr> |*|
571
572 10 = TEXT
573 10.data = register:linkedIcon
574 10.wrap = <td class="csc-uploads-icon">|</td>
575 10.if.isPositive.field = layout
576
577 20 = COA
578 20.wrap = <td class="csc-uploads-fileName">|</td>
579 20.1 = TEXT
580 20.1 {
581 data = register:linkedLabel
582 wrap = <p>|</p>
583 }
584 20.2 = TEXT
585 20.2 {
586 data = register:description
587 wrap = <p class="csc-uploads-description">|</p>
588 required = 1
589 }
590
591 30 = TEXT
592 30.if.isTrue.field = filelink_size
593 30.data = register:fileSize
594 30.wrap = <td class="csc-uploads-fileSize">|</td>
595 30.bytes = 1
596 30.bytes.labels = {$styles.content.uploads.filesizeBytesLabels}
597 }
598 }
599
600 20.color {
601 default =
602 1 = #EDEBF1
603 2 = #F5FFAA
604 }
605 20.tableParams_0 {
606 border =
607 cellpadding =
608 cellspacing =
609 }
610 20.tableParams_1 {
611 border =
612 cellpadding =
613 cellspacing =
614 }
615 20.tableParams_2 {
616 border =
617 cellpadding =
618 cellspacing =
619 }
620 20.tableParams_3 {
621 border =
622 cellpadding =
623 cellspacing =
624 }
625
626 20.linkProc {
627 target = _blank
628 jumpurl = {$styles.content.uploads.jumpurl}
629 jumpurl.secure = {$styles.content.uploads.jumpurl_secure}
630 jumpurl.secure.mimeTypes = {$styles.content.uploads.jumpurl_secure_mimeTypes}
631 removePrependedNumbers = 1
632
633 iconCObject = IMAGE
634 iconCObject.file.import.data = register : ICON_REL_PATH
635 iconCObject.file.width = 150
636 }
637
638 20.filesize {
639 bytes = 1
640 bytes.labels = {$styles.content.uploads.filesizeBytesLabels}
641 }
642
643 20.stdWrap {
644 editIcons = tt_content: media, layout [table_bgColor|table_border|table_cellspacing|table_cellpadding], filelink_size, imagecaption
645 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.filelist
646
647 prefixComment = 2 | File list:
648 }
649 }
650
651
652 # ******************
653 # CType: multimedia
654 # ******************
655 tt_content.multimedia = COA
656 tt_content.multimedia {
657 10 = < lib.stdheader
658
659 20 = MULTIMEDIA
660 20.file.field = multimedia
661 20.file.wrap = uploads/media/
662 20.file.listNum = 0
663 20.params.field = bodytext
664
665 20.stdWrap {
666 editIcons = tt_content: multimedia, bodytext
667 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.multimedia
668
669 prefixComment = 2 | Multimedia element:
670 }
671 }
672
673
674 # ******************
675 # CType: mailform
676 # ******************
677 tt_content.mailform = COA
678 tt_content.mailform.10 = < lib.stdheader
679 tt_content.mailform.20 = FORM
680 tt_content.mailform.20 {
681 layout = <tr><td class="csc-form-labelcell">###LABEL###</td><td class="csc-form-fieldcell">###FIELD###</td></tr>
682 labelWrap.wrap = <p class="csc-form-label">|</p>
683 commentWrap.wrap = <p class="csc-form-comment">|</p>
684 radioWrap.wrap = <span class="csc-form-radio">|</span><br />
685 REQ = 1
686 REQ.labelWrap.wrap = <p class="csc-form-label-req">|</p>
687 COMMENT.layout = <tr><td colspan="2" class="csc-form-commentcell">###LABEL###</td></tr>
688 target = {$styles.content.mailform.target}
689 goodMess = {$styles.content.mailform.goodMess}
690 badMess = {$styles.content.mailform.badMess}
691 redirect.field = pages
692 redirect.listNum = 0
693 recipient.field = subheader
694 data.field = bodytext
695 locationData = 1
696
697 stdWrap.wrap = <table border="0" cellspacing="1" cellpadding="1" class="csc-mailform"> | </table>
698 stdWrap {
699 editIcons = tt_content: bodytext, pages, subheader
700 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.form
701
702 prefixComment = 2 | Mail form inserted:
703 }
704 }
705
706
707 # ******************
708 # CType: search
709 # ******************
710 tt_content.search = COA
711 tt_content.search.10 = < lib.stdheader
712 # Result:
713 tt_content.search.20 = SEARCHRESULT
714 tt_content.search.20 {
715 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
716 languageField.tt_content = sys_language_uid
717 renderObj = COA
718 renderObj {
719
720 10 = TEXT
721 10.field = pages_title
722 10.htmlSpecialChars = 1
723 10.typolink {
724 parameter.field = uid
725 target = {$styles.content.searchresult.resultTarget}
726 additionalParams.data = register:SWORD_PARAMS
727 additionalParams.required = 1
728 additionalParams.wrap = &no_cache=1
729 }
730 10.htmlSpecialChars = 1
731 10.wrap = <h3 class="csc-searchResultHeader">|</h3>
732
733 20 = COA
734 20 {
735 10 = TEXT
736 10.field = tt_content_bodytext
737 10.stripHtml = 1
738 10.htmlSpecialChars = 1
739 }
740 20.stdWrap.crop = 200 | ...
741 20.stdWrap.wrap = <p class="csc-searchResult">|</p>
742 }
743
744 layout = COA
745 layout {
746 wrap = <table border="0" cellspacing="0" cellpadding="2" class="csc-searchResultInfo"><tr> | </tr></table> ###RESULT###
747
748 10 = TEXT
749 10.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.resultRange
750 10.wrap = <td class="csc-searchResultRange"><p>|</p></td>
751
752 20 = TEXT
753 20.value = ###PREV###&nbsp;&nbsp;&nbsp;###NEXT###
754 20.wrap = <td class="csc-searchResultPrevNext"><p>|</p></td>
755 }
756
757 noResultObj = COA
758 noResultObj {
759 10 = TEXT
760 10.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.emptySearch
761 10.wrap = <h3 class="csc-noSearchResultMsg">|</h3>
762 }
763
764 next = TEXT
765 next.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchResultNext
766
767 prev = TEXT
768 prev.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchResultPrev
769
770 target = {$styles.content.searchresult.target}
771 range = 20
772
773 stdWrap.prefixComment = 2 | Search result:
774 }
775
776 # Form:
777 tt_content.search.30 < tt_content.mailform.20
778 tt_content.search.30 {
779 goodMess = {$styles.content.searchform.goodMess}
780 redirect >
781 recipient >
782 data >
783 dataArray {
784 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchWord
785 10.type = sword=input
786 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchIn
787 20.type = scols=select
788 20.valueArray {
789 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.headersKeywords
790 10.value = pages.title-subtitle-keywords-description:tt_content.header
791 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.pageContent
792 20.value = tt_content.header-bodytext-imagecaption
793 }
794 30.type = stype=hidden
795 30.value = L0
796 40.type = submit=submit
797 40.value.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchButton
798 }
799 type.field = pages
800 type.listNum = 0
801 locationData = HTTP_POST_VARS
802 no_cache = 1
803
804 stdWrap.wrap = <table border="0" cellspacing="1" cellpadding="1" class="csc-searchform"> | </table>
805 stdWrap {
806 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.search
807
808 prefixComment = 2 | Search form inserted:
809 }
810 }
811
812
813 # ******************
814 # CType: login
815 # ******************
816 tt_content.login < tt_content.mailform
817 tt_content.login.10 = < lib.stdheader
818 tt_content.login.20 {
819 goodMess = {$styles.content.loginform.goodMess}
820 redirect >
821 recipient >
822 data >
823 dataArray {
824 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:login.username
825 10.type = *user=input
826 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:login.password
827 20.type = *pass=password
828 30.type = logintype=hidden
829 30.value = login
830 40.type = submit=submit
831 40.value.data = LLL:EXT:css_styled_content/pi1/locallang.xml:login.login
832 }
833 type.field = pages
834 type.listNum = 0
835 target = {$styles.content.loginform.target}
836 locationData = 0
837 hiddenFields.pid = TEXT
838 hiddenFields.pid {
839 value = {$styles.content.loginform.pid}
840 override.field = pages
841 override.listNum = 1
842 }
843
844 stdWrap.wrap = <table border="0" cellspacing="1" cellpadding="1" class="csc-loginform"> | </table>
845 stdWrap {
846 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.login
847
848 prefixComment = 2 | Login/Logout form:
849 }
850 }
851 [loginUser = *]
852 tt_content.login.20 {
853 dataArray >
854 dataArray {
855 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:login.username
856 10.label.wrap = |&nbsp;<!--###USERNAME###-->
857 30.type = logintype=hidden
858 30.value = logout
859 40.type = submit=submit
860 40.value.data = LLL:EXT:css_styled_content/pi1/locallang.xml:login.logout
861 }
862 }
863 [global]
864
865
866 # ******************
867 # CType: splash
868 # ******************
869 # Deprecated element.
870 # Still here for backwards compliance with plugins using the "text box" type.
871 tt_content.splash = CASE
872 tt_content.splash.key.field = splash_layout
873 tt_content.splash.stdWrap {
874 prefixComment = 2 | Textbox inserted (Deprecated)
875 }
876 tt_content.splash.default = COA
877 tt_content.splash.default {
878 20 = CTABLE
879 20 {
880 c.1 = < tt_content.text
881 lm.1 = IMAGE
882 lm.1.file {
883 import = uploads/pics/
884 import.field = image
885 import.listNum = 0
886 maxW.field = imagewidth
887 maxW.ifEmpty = 200
888 }
889 cMargins = 30,0,0,0
890 }
891 }
892 tt_content.splash.1 < tt_content.splash.default
893 tt_content.splash.1.20.lm.1.file >
894 tt_content.splash.1.20.lm.1.file = GIFBUILDER
895 tt_content.splash.1.20.lm.1.file {
896 XY = [10.w]+10,[10.h]+10
897 backColor = {$content.splash.bgCol}
898 backColor.override.data = register:pageColor
899 format = jpg
900 5 = BOX
901 5.dimensions = 3,3,[10.w],[10.h]
902 5.color = #333333
903 7 = EFFECT
904 7.value = blur=99|blur=99|blur=99|blur=99|blur=99|blur=99|blur=99
905 10 = IMAGE
906 10.file {
907 import = uploads/pics/
908 import.field = image
909 import.listNum = 0
910 maxW.field = imagewidth
911 maxW.ifEmpty = 200
912 }
913 }
914 // The image frames are not available unless TypoScript code from styles.content.imgFrames.x is provided manually:
915 tt_content.splash.2 < tt_content.splash.default
916 #tt_content.splash.2.20.lm.1.file.m < styles.content.imgFrames.1
917 tt_content.splash.3 < tt_content.splash.default
918 #tt_content.splash.3.20.lm.1.file.m < styles.content.imgFrames.2
919
920 // From plugin.postit1, if included:
921 tt_content.splash.20 = < plugin.postit1
922
923
924
925
926 # ****************
927 # CType: menu
928 # ****************
929 tt_content.menu = COA
930 tt_content.menu {
931 10 = < lib.stdheader
932
933 20 = CASE
934 20 {
935 key.field = menu_type
936
937 # "Menu of these pages"
938 default = HMENU
939 default.wrap = <div class="csc-menu csc-menu-def">|</div>
940 default {
941 special = list
942 special.value.field = pages
943 1 = TMENU
944 1.NO.allWrap = <p>|</p>
945 1.NO.stdWrap.htmlSpecialChars = 1
946 1.target = {$content.pageFrameObj}
947 }
948
949 # "Menu of subpages to these pages"
950 1 < .default
951 1.special = directory
952 1.wrap = <div class="csc-menu csc-menu-1">|</div>
953
954 # "Sitemap"
955 2 = HMENU
956 2.wrap = <div class="csc-menu csc-menu-2">|</div>
957 2 {
958 1 = TMENU
959 1.NO.allWrap = <p class="csc-sitemap csc-sitemap-level1">|</p>
960 1.NO.stdWrap.htmlSpecialChars = 1
961 1.target = {$content.pageFrameObj}
962 1.expAll = 1
963
964 2 < .1
965 2.NO.allWrap = <p class="csc-sitemap csc-sitemap-level2">|</p>
966
967 3 < .1
968 3.NO.allWrap = <p class="csc-sitemap csc-sitemap-level3">|</p>
969
970 4 < .1
971 4.NO.allWrap = <p class="csc-sitemap csc-sitemap-level4">|</p>
972 4.expAll = 0
973 }
974
975 # "Section index (pagecontent w/Index checked)"
976 3 < styles.content.get
977 3.wrap = <div class="csc-menu csc-menu-3">|</div>
978 3.select.andWhere = sectionIndex!=0
979 3.select.pidInList.override.field = pages
980 3.renderObj = TEXT
981 3.renderObj {
982 fieldRequired = header
983 trim=1
984 field = header
985 htmlSpecialChars = 1
986 wrap = <p class="csc-section">|</p>
987 typolink.parameter.field = pid
988 typolink.section.field = uid
989 }
990
991 # "Menu of subpages to these pages (with abstract)"
992 4 < .1
993 4.wrap = <div class="csc-menu csc-menu-4">|</div>
994 4.1.NO {
995 allWrap = <p>|</p>
996 after.required = 1
997 after.data = field : abstract // field : description // field : subtitle
998 after.htmlSpecialChars = 1
999 after.wrap = </p><p class="csc-abstract">|
1000 }
1001
1002 # "Recently updated pages"
1003 5 < .default
1004 5.wrap = <div class="csc-menu csc-menu-5">|</div>
1005 5.special = updated
1006 5.special {
1007 maxAge = 3600*24*7
1008 excludeNoSearchPages = 1
1009 }
1010
1011 # "Related pages (based on keywords)"
1012 6 < .default
1013 6.wrap = <div class="csc-menu csc-menu-6">|</div>
1014 6.special = keywords
1015 6.special {
1016 excludeNoSearchPages = 1
1017 }
1018
1019 # "Menu of subpages to these pages + sections"
1020 7 < .1
1021 7.wrap = <div class="csc-menu csc-menu-7">|</div>
1022 7.1.expAll = 1
1023 7.2 < .7.1
1024 7.2.sectionIndex = 1
1025 7.2.sectionIndex.type = header
1026 7.2.NO.allWrap = <p class="csc-section">|</p>
1027 }
1028
1029 20.stdWrap {
1030 editIcons = tt_content: menu_type, pages
1031 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.menuSitemap
1032
1033 prefixComment = 2 | Menu/Sitemap element:
1034 }
1035 }
1036
1037
1038 # ****************
1039 # CType: shortcut
1040 # ****************
1041 # Should be a complete copy from the old static template "content (default)"
1042 tt_content.shortcut = COA
1043 tt_content.shortcut {
1044 20 = CASE
1045 20.key.field = layout
1046 20.0= RECORDS
1047 20.0 {
1048 source.field = records
1049 tables = {$content.shortcut.tables}
1050 # THESE are OLD plugins. Modern plugins registers themselves automatically!
1051 conf.tt_content = < tt_content
1052 conf.tt_address = < tt_address
1053 conf.tt_links = < tt_links
1054 conf.tt_guest = < tt_guest
1055 conf.tt_board = < tt_board
1056 conf.tt_calender = < tt_calender
1057 conf.tt_rating < tt_rating
1058 conf.tt_products = < tt_products
1059 conf.tt_news = < tt_news
1060 conf.tt_poll = < plugin.tt_poll
1061 }
1062 20.1= RECORDS
1063 20.1 {
1064 source.field = records
1065 tables = {$content.shortcut.tables}
1066 conf.tt_poll = < plugin.tt_poll
1067 conf.tt_poll.code = RESULT,SUBMITTEDVOTE
1068 }
1069
1070 20.stdWrap {
1071 editIcons = tt_content: records
1072 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.recordList
1073
1074 prefixComment = 2 | Inclusion of other records (by reference):
1075 }
1076 }
1077
1078
1079 # ****************
1080 # CType: list
1081 # ****************
1082 # Should be a complete copy from the old static template "content (default)" (except "lib.stdheader")
1083 tt_content.list = COA
1084 tt_content.list {
1085 10 = < lib.stdheader
1086
1087 20 = CASE
1088 20.key.field = list_type
1089 20 {
1090 # LIST element references (NOT copy of objects!)
1091 # THESE are OLD plugins. Modern plugins registers themselves automatically!
1092 3 = CASE
1093 3.key.field = layout
1094 3.0 = < plugin.tt_guest
1095
1096 4 = CASE
1097 4.key.field = layout
1098 4.0 = < plugin.tt_board_list
1099 4.1 = < plugin.tt_board_tree
1100
1101 2 = CASE
1102 2.key.field = layout
1103 2.0 = < plugin.tt_board_tree
1104
1105 5 = CASE
1106 5.key.field = layout
1107 5.0 = < plugin.tt_products
1108
1109 7 = CASE
1110 7.key.field = layout
1111 7.0 = < plugin.tt_calender
1112
1113 8 = CASE
1114 8.key.field = layout
1115 8.0 = < plugin.tt_rating
1116
1117 9 = CASE
1118 9.key.field = layout
1119 9.0 = < plugin.tt_news
1120
1121 11 = CASE
1122 11.key.field = layout
1123 11.0 = < plugin.tipafriend
1124
1125 20 = CASE
1126 20.key.field = layout
1127 20.0 = < plugin.feadmin.fe_users
1128
1129 21 = CASE
1130 21.key.field = layout
1131 21.0 = < plugin.feadmin.dmailsubscription
1132 }
1133
1134 20.stdWrap {
1135 editIcons = tt_content: list_type, layout, select_key, pages [recursive]
1136 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.plugin
1137
1138 prefixComment = 2 | Plugin inserted:
1139 }
1140 }
1141
1142
1143 # ****************
1144 # CType: script
1145 # ****************
1146 # 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.
1147 tt_content.script = TEXT
1148 tt_content.script {
1149 value =
1150
1151 prefixComment = 2 | Script element (Deprecated)
1152 }
1153
1154
1155 # ****************
1156 # CType: div
1157 # ****************
1158 tt_content.div = TEXT
1159 tt_content.div {
1160 value =
1161 prefixComment = 2 | Div element
1162 }
1163
1164
1165 # ****************
1166 # CType: html
1167 # ****************
1168 # This truely IS a content object, launched from inside the PHP class of course.
1169 # Should be a complete copy from the old static template "content (default)"
1170 tt_content.html = TEXT
1171 tt_content.html {
1172 field = bodytext
1173
1174 editIcons = tt_content: pages
1175 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.html
1176
1177 prefixComment = 2 | Raw HTML content:
1178 }
1179
1180
1181 # ****************
1182 # Default error msg:
1183 # ****************
1184 tt_content.default = TEXT
1185 tt_content.default {
1186 field = CType
1187 wrap = <p style="background-color: yellow;"><b>ERROR:</b> Content Element type "|" has no rendering definition!</p>
1188
1189 prefixComment = 2 | Unknown element message:
1190 }
1191
1192