Feature #10320: Split CSS styled content templates in version templates to get rid...
[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.color {
567 default =
568 1 = #EDEBF1
569 2 = #F5FFAA
570 }
571 20.tableParams_0 {
572 border =
573 cellpadding =
574 cellspacing =
575 }
576 20.tableParams_1 {
577 border =
578 cellpadding =
579 cellspacing =
580 }
581 20.tableParams_2 {
582 border =
583 cellpadding =
584 cellspacing =
585 }
586 20.tableParams_3 {
587 border =
588 cellpadding =
589 cellspacing =
590 }
591
592 20.linkProc {
593 target = _blank
594 jumpurl = {$styles.content.uploads.jumpurl}
595 jumpurl.secure = {$styles.content.uploads.jumpurl_secure}
596 jumpurl.secure.mimeTypes = {$styles.content.uploads.jumpurl_secure_mimeTypes}
597 removePrependedNumbers = 1
598
599 iconCObject = IMAGE
600 iconCObject.file.import.data = register : ICON_REL_PATH
601 iconCObject.file.width = 150
602 }
603
604 20.filesize {
605 bytes = 1
606 bytes.labels = {$styles.content.uploads.filesizeBytesLabels}
607 }
608
609 20.stdWrap {
610 editIcons = tt_content: media, layout [table_bgColor|table_border|table_cellspacing|table_cellpadding], filelink_size, imagecaption
611 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.filelist
612
613 prefixComment = 2 | File list:
614 }
615 }
616
617
618 # ******************
619 # CType: multimedia
620 # ******************
621 tt_content.multimedia = COA
622 tt_content.multimedia {
623 10 = < lib.stdheader
624
625 20 = MULTIMEDIA
626 20.file.field = multimedia
627 20.file.wrap = uploads/media/
628 20.file.listNum = 0
629 20.params.field = bodytext
630
631 20.stdWrap {
632 editIcons = tt_content: multimedia, bodytext
633 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.multimedia
634
635 prefixComment = 2 | Multimedia element:
636 }
637 }
638
639
640 # ******************
641 # CType: mailform
642 # ******************
643 tt_content.mailform = COA
644 tt_content.mailform.10 = < lib.stdheader
645 tt_content.mailform.20 = FORM
646 tt_content.mailform.20 {
647 layout = <tr><td class="csc-form-labelcell">###LABEL###</td><td class="csc-form-fieldcell">###FIELD###</td></tr>
648 labelWrap.wrap = <p class="csc-form-label">|</p>
649 commentWrap.wrap = <p class="csc-form-comment">|</p>
650 radioWrap.wrap = <span class="csc-form-radio">|</span><br />
651 REQ = 1
652 REQ.labelWrap.wrap = <p class="csc-form-label-req">|</p>
653 COMMENT.layout = <tr><td colspan="2" class="csc-form-commentcell">###LABEL###</td></tr>
654 target = {$styles.content.mailform.target}
655 goodMess = {$styles.content.mailform.goodMess}
656 badMess = {$styles.content.mailform.badMess}
657 redirect.field = pages
658 redirect.listNum = 0
659 recipient.field = subheader
660 data.field = bodytext
661 locationData = 1
662
663 stdWrap.wrap = <table border="0" cellspacing="1" cellpadding="1" class="csc-mailform"> | </table>
664 stdWrap {
665 editIcons = tt_content: bodytext, pages, subheader
666 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.form
667
668 prefixComment = 2 | Mail form inserted:
669 }
670 }
671
672
673 # ******************
674 # CType: search
675 # ******************
676 tt_content.search = COA
677 tt_content.search.10 = < lib.stdheader
678 # Result:
679 tt_content.search.20 = SEARCHRESULT
680 tt_content.search.20 {
681 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
682 languageField.tt_content = sys_language_uid
683 renderObj = COA
684 renderObj {
685
686 10 = TEXT
687 10.field = pages_title
688 10.htmlSpecialChars = 1
689 10.typolink {
690 parameter.field = uid
691 target = {$styles.content.searchresult.resultTarget}
692 additionalParams.data = register:SWORD_PARAMS
693 additionalParams.required = 1
694 additionalParams.wrap = &no_cache=1
695 }
696 10.htmlSpecialChars = 1
697 10.wrap = <h3 class="csc-searchResultHeader">|</h3>
698
699 20 = COA
700 20 {
701 10 = TEXT
702 10.field = tt_content_bodytext
703 10.stripHtml = 1
704 10.htmlSpecialChars = 1
705 }
706 20.stdWrap.crop = 200 | ...
707 20.stdWrap.wrap = <p class="csc-searchResult">|</p>
708 }
709
710 layout = COA
711 layout {
712 wrap = <table border="0" cellspacing="0" cellpadding="2" class="csc-searchResultInfo"><tr> | </tr></table> ###RESULT###
713
714 10 = TEXT
715 10.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.resultRange
716 10.wrap = <td class="csc-searchResultRange"><p>|</p></td>
717
718 20 = TEXT
719 20.value = ###PREV###&nbsp;&nbsp;&nbsp;###NEXT###
720 20.wrap = <td class="csc-searchResultPrevNext"><p>|</p></td>
721 }
722
723 noResultObj = COA
724 noResultObj {
725 10 = TEXT
726 10.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.emptySearch
727 10.wrap = <h3 class="csc-noSearchResultMsg">|</h3>
728 }
729
730 next = TEXT
731 next.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchResultNext
732
733 prev = TEXT
734 prev.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchResultPrev
735
736 target = {$styles.content.searchresult.target}
737 range = 20
738
739 stdWrap.prefixComment = 2 | Search result:
740 }
741
742 # Form:
743 tt_content.search.30 < tt_content.mailform.20
744 tt_content.search.30 {
745 goodMess = {$styles.content.searchform.goodMess}
746 redirect >
747 recipient >
748 data >
749 dataArray {
750 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchWord
751 10.type = sword=input
752 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchIn
753 20.type = scols=select
754 20.valueArray {
755 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.headersKeywords
756 10.value = pages.title-subtitle-keywords-description:tt_content.header
757 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.pageContent
758 20.value = tt_content.header-bodytext-imagecaption
759 }
760 30.type = stype=hidden
761 30.value = L0
762 40.type = submit=submit
763 40.value.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchButton
764 }
765 type.field = pages
766 type.listNum = 0
767 locationData = HTTP_POST_VARS
768 no_cache = 1
769
770 stdWrap.wrap = <table border="0" cellspacing="1" cellpadding="1" class="csc-searchform"> | </table>
771 stdWrap {
772 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.search
773
774 prefixComment = 2 | Search form inserted:
775 }
776 }
777
778
779 # ******************
780 # CType: login
781 # ******************
782 tt_content.login < tt_content.mailform
783 tt_content.login.10 = < lib.stdheader
784 tt_content.login.20 {
785 goodMess = {$styles.content.loginform.goodMess}
786 redirect >
787 recipient >
788 data >
789 dataArray {
790 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:login.username
791 10.type = *user=input
792 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:login.password
793 20.type = *pass=password
794 30.type = logintype=hidden
795 30.value = login
796 40.type = submit=submit
797 40.value.data = LLL:EXT:css_styled_content/pi1/locallang.xml:login.login
798 }
799 type.field = pages
800 type.listNum = 0
801 target = {$styles.content.loginform.target}
802 locationData = 0
803 hiddenFields.pid = TEXT
804 hiddenFields.pid {
805 value = {$styles.content.loginform.pid}
806 override.field = pages
807 override.listNum = 1
808 }
809
810 stdWrap.wrap = <table border="0" cellspacing="1" cellpadding="1" class="csc-loginform"> | </table>
811 stdWrap {
812 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.login
813
814 prefixComment = 2 | Login/Logout form:
815 }
816 }
817 [loginUser = *]
818 tt_content.login.20 {
819 dataArray >
820 dataArray {
821 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:login.username
822 10.label.wrap = |&nbsp;<!--###USERNAME###-->
823 30.type = logintype=hidden
824 30.value = logout
825 40.type = submit=submit
826 40.value.data = LLL:EXT:css_styled_content/pi1/locallang.xml:login.logout
827 }
828 }
829 [global]
830
831
832 # ******************
833 # CType: splash
834 # ******************
835 # Deprecated element.
836 # Still here for backwards compliance with plugins using the "text box" type.
837 tt_content.splash = CASE
838 tt_content.splash.key.field = splash_layout
839 tt_content.splash.stdWrap {
840 prefixComment = 2 | Textbox inserted (Deprecated)
841 }
842 tt_content.splash.default = COA
843 tt_content.splash.default {
844 20 = CTABLE
845 20 {
846 c.1 = < tt_content.text
847 lm.1 = IMAGE
848 lm.1.file {
849 import = uploads/pics/
850 import.field = image
851 import.listNum = 0
852 maxW.field = imagewidth
853 maxW.ifEmpty = 200
854 }
855 cMargins = 30,0,0,0
856 }
857 }
858 tt_content.splash.1 < tt_content.splash.default
859 tt_content.splash.1.20.lm.1.file >
860 tt_content.splash.1.20.lm.1.file = GIFBUILDER
861 tt_content.splash.1.20.lm.1.file {
862 XY = [10.w]+10,[10.h]+10
863 backColor = {$content.splash.bgCol}
864 backColor.override.data = register:pageColor
865 format = jpg
866 5 = BOX
867 5.dimensions = 3,3,[10.w],[10.h]
868 5.color = #333333
869 7 = EFFECT
870 7.value = blur=99|blur=99|blur=99|blur=99|blur=99|blur=99|blur=99
871 10 = IMAGE
872 10.file {
873 import = uploads/pics/
874 import.field = image
875 import.listNum = 0
876 maxW.field = imagewidth
877 maxW.ifEmpty = 200
878 }
879 }
880 // The image frames are not available unless TypoScript code from styles.content.imgFrames.x is provided manually:
881 tt_content.splash.2 < tt_content.splash.default
882 #tt_content.splash.2.20.lm.1.file.m < styles.content.imgFrames.1
883 tt_content.splash.3 < tt_content.splash.default
884 #tt_content.splash.3.20.lm.1.file.m < styles.content.imgFrames.2
885
886 // From plugin.postit1, if included:
887 tt_content.splash.20 = < plugin.postit1
888
889
890
891
892 # ****************
893 # CType: menu
894 # ****************
895 tt_content.menu = COA
896 tt_content.menu {
897 10 = < lib.stdheader
898
899 20 = CASE
900 20 {
901 key.field = menu_type
902
903 # "Menu of these pages"
904 default = HMENU
905 default.wrap = <div class="csc-menu csc-menu-def">|</div>
906 default {
907 special = list
908 special.value.field = pages
909 1 = TMENU
910 1.NO.allWrap = <p>|</p>
911 1.NO.stdWrap.htmlSpecialChars = 1
912 1.target = {$content.pageFrameObj}
913 }
914
915 # "Menu of subpages to these pages"
916 1 < .default
917 1.special = directory
918 1.wrap = <div class="csc-menu csc-menu-1">|</div>
919
920 # "Sitemap"
921 2 = HMENU
922 2.wrap = <div class="csc-menu csc-menu-2">|</div>
923 2 {
924 1 = TMENU
925 1.NO.allWrap = <p class="csc-sitemap csc-sitemap-level1">|</p>
926 1.NO.stdWrap.htmlSpecialChars = 1
927 1.target = {$content.pageFrameObj}
928 1.expAll = 1
929
930 2 < .1
931 2.NO.allWrap = <p class="csc-sitemap csc-sitemap-level2">|</p>
932
933 3 < .1
934 3.NO.allWrap = <p class="csc-sitemap csc-sitemap-level3">|</p>
935
936 4 < .1
937 4.NO.allWrap = <p class="csc-sitemap csc-sitemap-level4">|</p>
938 4.expAll = 0
939 }
940
941 # "Section index (pagecontent w/Index checked)"
942 3 < styles.content.get
943 3.wrap = <div class="csc-menu csc-menu-3">|</div>
944 3.select.andWhere = sectionIndex!=0
945 3.select.pidInList.override.field = pages
946 3.renderObj = TEXT
947 3.renderObj {
948 fieldRequired = header
949 trim=1
950 field = header
951 htmlSpecialChars = 1
952 wrap = <p class="csc-section">|</p>
953 typolink.parameter.field = pid
954 typolink.section.field = uid
955 }
956
957 # "Menu of subpages to these pages (with abstract)"
958 4 < .1
959 4.wrap = <div class="csc-menu csc-menu-4">|</div>
960 4.1.NO {
961 allWrap = <p>|</p>
962 after.required = 1
963 after.data = field : abstract // field : description // field : subtitle
964 after.htmlSpecialChars = 1
965 after.wrap = </p><p class="csc-abstract">|
966 }
967
968 # "Recently updated pages"
969 5 < .default
970 5.wrap = <div class="csc-menu csc-menu-5">|</div>
971 5.special = updated
972 5.special {
973 maxAge = 3600*24*7
974 excludeNoSearchPages = 1
975 }
976
977 # "Related pages (based on keywords)"
978 6 < .default
979 6.wrap = <div class="csc-menu csc-menu-6">|</div>
980 6.special = keywords
981 6.special {
982 excludeNoSearchPages = 1
983 }
984
985 # "Menu of subpages to these pages + sections"
986 7 < .1
987 7.wrap = <div class="csc-menu csc-menu-7">|</div>
988 7.1.expAll = 1
989 7.2 < .7.1
990 7.2.sectionIndex = 1
991 7.2.sectionIndex.type = header
992 7.2.NO.allWrap = <p class="csc-section">|</p>
993 }
994
995 20.stdWrap {
996 editIcons = tt_content: menu_type, pages
997 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.menuSitemap
998
999 prefixComment = 2 | Menu/Sitemap element:
1000 }
1001 }
1002
1003
1004 # ****************
1005 # CType: shortcut
1006 # ****************
1007 # Should be a complete copy from the old static template "content (default)"
1008 tt_content.shortcut = COA
1009 tt_content.shortcut {
1010 20 = CASE
1011 20.key.field = layout
1012 20.0= RECORDS
1013 20.0 {
1014 source.field = records
1015 tables = {$content.shortcut.tables}
1016 # THESE are OLD plugins. Modern plugins registers themselves automatically!
1017 conf.tt_content = < tt_content
1018 conf.tt_address = < tt_address
1019 conf.tt_links = < tt_links
1020 conf.tt_guest = < tt_guest
1021 conf.tt_board = < tt_board
1022 conf.tt_calender = < tt_calender
1023 conf.tt_rating < tt_rating
1024 conf.tt_products = < tt_products
1025 conf.tt_news = < tt_news
1026 conf.tt_poll = < plugin.tt_poll
1027 }
1028 20.1= RECORDS
1029 20.1 {
1030 source.field = records
1031 tables = {$content.shortcut.tables}
1032 conf.tt_poll = < plugin.tt_poll
1033 conf.tt_poll.code = RESULT,SUBMITTEDVOTE
1034 }
1035
1036 20.stdWrap {
1037 editIcons = tt_content: records
1038 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.recordList
1039
1040 prefixComment = 2 | Inclusion of other records (by reference):
1041 }
1042 }
1043
1044
1045 # ****************
1046 # CType: list
1047 # ****************
1048 # Should be a complete copy from the old static template "content (default)" (except "lib.stdheader")
1049 tt_content.list = COA
1050 tt_content.list {
1051 10 = < lib.stdheader
1052
1053 20 = CASE
1054 20.key.field = list_type
1055 20 {
1056 # LIST element references (NOT copy of objects!)
1057 # THESE are OLD plugins. Modern plugins registers themselves automatically!
1058 3 = CASE
1059 3.key.field = layout
1060 3.0 = < plugin.tt_guest
1061
1062 4 = CASE
1063 4.key.field = layout
1064 4.0 = < plugin.tt_board_list
1065 4.1 = < plugin.tt_board_tree
1066
1067 2 = CASE
1068 2.key.field = layout
1069 2.0 = < plugin.tt_board_tree
1070
1071 5 = CASE
1072 5.key.field = layout
1073 5.0 = < plugin.tt_products
1074
1075 7 = CASE
1076 7.key.field = layout
1077 7.0 = < plugin.tt_calender
1078
1079 8 = CASE
1080 8.key.field = layout
1081 8.0 = < plugin.tt_rating
1082
1083 9 = CASE
1084 9.key.field = layout
1085 9.0 = < plugin.tt_news
1086
1087 11 = CASE
1088 11.key.field = layout
1089 11.0 = < plugin.tipafriend
1090
1091 20 = CASE
1092 20.key.field = layout
1093 20.0 = < plugin.feadmin.fe_users
1094
1095 21 = CASE
1096 21.key.field = layout
1097 21.0 = < plugin.feadmin.dmailsubscription
1098 }
1099
1100 20.stdWrap {
1101 editIcons = tt_content: list_type, layout, select_key, pages [recursive]
1102 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.plugin
1103
1104 prefixComment = 2 | Plugin inserted:
1105 }
1106 }
1107
1108
1109 # ****************
1110 # CType: script
1111 # ****************
1112 # 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.
1113 tt_content.script = TEXT
1114 tt_content.script {
1115 value =
1116
1117 prefixComment = 2 | Script element (Deprecated)
1118 }
1119
1120
1121 # ****************
1122 # CType: div
1123 # ****************
1124 tt_content.div = TEXT
1125 tt_content.div {
1126 value =
1127 prefixComment = 2 | Div element
1128 }
1129
1130
1131 # ****************
1132 # CType: html
1133 # ****************
1134 # This truely IS a content object, launched from inside the PHP class of course.
1135 # Should be a complete copy from the old static template "content (default)"
1136 tt_content.html = TEXT
1137 tt_content.html {
1138 field = bodytext
1139
1140 editIcons = tt_content: pages
1141 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.html
1142
1143 prefixComment = 2 | Raw HTML content:
1144 }
1145
1146
1147 # ****************
1148 # Default error msg:
1149 # ****************
1150 tt_content.default = TEXT
1151 tt_content.default {
1152 field = CType
1153 wrap = <p style="background-color: yellow;"><b>ERROR:</b> Content Element type "|" has no rendering definition!</p>
1154
1155 prefixComment = 2 | Unknown element message:
1156 }
1157
1158
1159 # TYPO3 SVN ID: $Id: setup.txt 4493 2008-11-27 21:06:50Z steffenk $