Fixes bug #3522: Linking images to hidden pages results in click-enlarge
[Packages/TYPO3.CMS.git] / typo3 / sysext / css_styled_content / static / 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.php: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.php: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.php:label.toTop}</a></p>
275         innerWrap2.insertData = 1
276         innerWrap2.fieldRequired = linkToTop
277
278         dataWrap = <a id="c{field:uid}"></a> |
279
280         editPanel = 1
281         editPanel {
282                 allow = move,new,edit,hide,delete
283                 line = 5
284                 label = %s
285                 onlyCurrentPid = 1
286                 previewBorder = 4
287                 edit.displayRecord = 1
288         }
289
290         prefixComment = 1 | CONTENT ELEMENT, uid:{field:uid}/{field:CType}
291 }
292
293
294 # *****************
295 # CType: header
296 # *****************
297 # See Object path "lib.stdheader"
298 tt_content.header = COA
299 tt_content.header {
300         10 = < lib.stdheader
301
302         20 = TEXT
303         20 {
304                 field = subheader
305                 required = 1
306
307                 dataWrap = <p class="csc-subheader csc-subheader-{field:layout}">|</p>
308                 htmlSpecialChars = 1
309
310                 editIcons = tt_content:subheader,layout
311                 editIcons.beforeLastTag = 1
312                 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.subheader
313
314                 prefixComment = 2 | Subheader:
315         }
316 }
317
318
319 # *****************
320 # CType: text
321 # *****************
322 tt_content.text = COA
323 tt_content.text {
324         10 = < lib.stdheader
325
326         20 = TEXT
327         20 {
328                 field = bodytext
329                 required = 1
330
331                 parseFunc = < lib.parseFunc_RTE
332
333                 editIcons = tt_content:bodytext, rte_enabled
334                 editIcons.beforeLastTag = 1
335                 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.bodytext
336
337                 prefixComment = 2 | Text:
338         }
339 }
340
341
342 # *****************
343 # CType: image
344 # *****************
345 # (also used for rendering 'textpic' type):
346 tt_content.image = COA
347 tt_content.image.10 = < lib.stdheader
348 tt_content.image.20 = IMGTEXT
349 tt_content.image.20 {
350         imgList.field = image
351         textPos.field = imageorient
352         imgPath = uploads/pics/
353         imgObjNum = 1
354         1 {
355                 file.import.current = 1
356                 file.width.field = imagewidth
357                 params = align="top"
358                 imageLinkWrap = 1
359                 imageLinkWrap {
360                         bodyTag = <body bgcolor="black">
361                         wrap = <a href="javascript:close();"> | </a>
362                         width = {$styles.content.imgtext.linkWrap.width}
363                         height = {$styles.content.imgtext.linkWrap.height}
364                         effects = {$styles.content.imgtext.linkWrap.effects}
365
366                         JSwindow = 1
367                         JSwindow.newWindow = {$styles.content.imgtext.linkWrap.newWindow}
368                         JSwindow.expand = 17,20
369
370                         enable.field = image_zoom
371                         enable.ifEmpty.typolink.parameter.field = image_link
372                         enable.ifEmpty.typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM
373                         enable.ifEmpty.typolink.returnLast = url
374
375                         typolink.parameter.field = image_link
376                         typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM
377                         typolink.target = {$styles.content.links.target}
378                         typolink.extTarget = {$styles.content.links.extTarget}
379                 }
380
381                 altText = TEXT
382                 altText {
383                         field = altText
384                         split.token.char = 10
385                         split.token.if.isTrue = {$styles.content.imgtext.imageTextSplit}
386                         split.returnKey.data = register : IMAGE_NUM
387                 }
388
389                 titleText < .altText
390                 titleText.field = titleText
391
392                 longdescURL < .altText
393                 longdescURL.field = longdescURL
394
395                 emptyTitleHandling = {$styles.content.imgtext.emptyTitleHandling}
396                 titleInLink = {$styles.content.imgtext.titleInLink}
397                 titleInLinkAndImg = {$styles.content.imgtext.titleInLinkAndImg}
398         }
399
400         maxW = {$styles.content.imgtext.maxW}
401         maxW.override.data = register:maxImageWidth
402         maxWInText = {$styles.content.imgtext.maxWInText}
403         maxWInText.override.data = register:maxImageWidthInText
404
405         equalH.field = imageheight
406         spaceBelowAbove = 6
407
408         image_compression.field = image_compression
409         image_effects.field = image_effects
410
411         noRows.field = image_noRows
412
413         cols.field = imagecols
414         border.field = imageborder
415         caption {
416                 1 = TEXT
417                 1 {
418                         field = imagecaption
419                         required = 1
420                         parseFunc =< lib.parseFunc
421                         br = 1
422                         fontTag = <p class="csc-caption">|</p>
423                         wrapAlign.field = imagecaption_position
424                         split.token.char = 10
425                         split.token.if.isPositive = {$styles.content.imgtext.imageTextSplit} + {$styles.content.imgtext.captionSplit}
426                         split.returnKey.data = register : IMAGE_NUM
427                 }
428         }
429         # captionSplit is deprecated, use imageTextSplit instead
430         captionSplit = {$styles.content.imgtext.captionSplit}
431         # caption/alttext/title/longdescURL splitting
432         imageTextSplit = {$styles.content.imgtext.imageTextSplit}
433
434         borderCol = {$styles.content.imgtext.borderColor}
435         borderThick = {$styles.content.imgtext.borderThick}
436         colSpace = {$styles.content.imgtext.colSpace}
437         rowSpace = {$styles.content.imgtext.rowSpace}
438         textMargin = {$styles.content.imgtext.textMargin}
439
440         editIcons = tt_content : image [imageorient|imagewidth|imageheight], [imagecols|image_noRows|imageborder],[image_link|image_zoom],[image_compression|image_effects|image_frames],imagecaption[imagecaption_position]
441         editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.images
442
443         caption.editIcons = tt_content : imagecaption[imagecaption_position]
444         caption.editIcons.beforeLastTag=1
445         caption.editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.caption
446
447         stdWrap.prefixComment = 2 | Image block:
448 }
449
450
451 # *****************
452 # CType: textpic
453 # *****************
454 tt_content.textpic = COA
455 tt_content.textpic {
456         10 = COA
457         10.if.value = 25
458         10.if.isLessThan.field = imageorient
459         10.10 = < lib.stdheader
460
461         20  = < tt_content.image.20
462         20.text.10 = COA
463         20.text.10 {
464                 if.value = 24
465                 if.isGreaterThan.field = imageorient
466                 10 = < lib.stdheader
467                 10.stdWrap.dataWrap = <div class="csc-textpicHeader csc-textpicHeader-{field:imageorient}">|</div>
468         }
469         20.text.20 = < tt_content.text.20
470 }
471
472
473 # *****************
474 # CType: bullet
475 # *****************
476 # Rendered by a PHP function specifically written to handle CE bullet lists. See css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php
477 tt_content.bullets = COA
478 tt_content.bullets {
479         10 = < lib.stdheader
480
481         20 = USER
482         20.userFunc = tx_cssstyledcontent_pi1->render_bullets
483
484         20.innerStdWrap.parseFunc = < lib.parseFunc
485
486         20.stdWrap {
487                 editIcons = tt_content: bodytext, [layout]
488                 editIcons.beforeLastTag = 1
489                 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.bullets
490
491                 prefixComment = 2 | Bullet list:
492         }
493 }
494
495
496 # *****************
497 # CType: table
498 # *****************
499 # Rendered by a PHP function specifically written to handle CE tables. See css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php
500 tt_content.table = COA
501 tt_content.table {
502         10 = < lib.stdheader
503
504         20 = USER
505         20.userFunc = tx_cssstyledcontent_pi1->render_table
506
507         20.color {
508                 default =
509                 1 = #EDEBF1
510                 2 = #F5FFAA
511         }
512         20.tableParams_0 {
513                 border =
514                 cellpadding =
515                 cellspacing =
516         }
517         20.tableParams_1 {
518                 border =
519                 cellpadding =
520                 cellspacing =
521         }
522         20.tableParams_2 {
523                 border =
524                 cellpadding =
525                 cellspacing =
526         }
527         20.tableParams_3 {
528                 border =
529                 cellpadding =
530                 cellspacing =
531         }
532         20.innerStdWrap.wrap = <p>|</p>
533         20.innerStdWrap.parseFunc = < lib.parseFunc
534
535         20.stdWrap {
536                 editIcons = tt_content: cols, bodytext, [layout], [table_bgColor|table_border|table_cellspacing|table_cellpadding]
537                 editIcons.beforeLastTag = 1
538                 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.table
539
540                 prefixComment = 2 | Table:
541         }
542 }
543
544
545 # *****************
546 # CType: uploads
547 # *****************
548 # Rendered by a PHP function specifically written to handle CE filelists. See css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php
549 tt_content.uploads = COA
550 tt_content.uploads {
551         10 = < lib.stdheader
552
553         20 = USER
554         20.userFunc = tx_cssstyledcontent_pi1->render_uploads
555
556         20.color {
557                 default =
558                 1 = #EDEBF1
559                 2 = #F5FFAA
560         }
561         20.tableParams_0 {
562                 border =
563                 cellpadding =
564                 cellspacing =
565         }
566         20.tableParams_1 {
567                 border =
568                 cellpadding =
569                 cellspacing =
570         }
571         20.tableParams_2 {
572                 border =
573                 cellpadding =
574                 cellspacing =
575         }
576         20.tableParams_3 {
577                 border =
578                 cellpadding =
579                 cellspacing =
580         }
581
582         20.linkProc {
583                 target = _blank
584                 jumpurl = {$styles.content.uploads.jumpurl}
585                 jumpurl.secure = {$styles.content.uploads.jumpurl_secure}
586                 jumpurl.secure.mimeTypes = {$styles.content.uploads.jumpurl_secure_mimeTypes}
587                 removePrependedNumbers = 1
588
589                 iconCObject = IMAGE
590                 iconCObject.file.import.data = register : ICON_REL_PATH
591                 iconCObject.file.width = 150
592         }
593
594         20.stdWrap {
595                 editIcons = tt_content: media, layout [table_bgColor|table_border|table_cellspacing|table_cellpadding], filelink_size, imagecaption
596                 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.filelist
597
598                 prefixComment = 2 | File list:
599         }
600 }
601
602
603 # ******************
604 # CType: multimedia
605 # ******************
606 tt_content.multimedia = COA
607 tt_content.multimedia {
608         10 = < lib.stdheader
609
610         20 = MULTIMEDIA
611         20.file.field = multimedia
612         20.file.wrap = uploads/media/
613         20.file.listNum = 0
614         20.params.field = bodytext
615
616         20.stdWrap {
617                 editIcons = tt_content: multimedia, bodytext
618                 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.multimedia
619
620                 prefixComment = 2 | Multimedia element:
621         }
622 }
623
624
625 # ******************
626 # CType: mailform
627 # ******************
628 tt_content.mailform = COA
629 tt_content.mailform.10 = < lib.stdheader
630 tt_content.mailform.20 = FORM
631 tt_content.mailform.20 {
632         layout = <tr><td class="csc-form-labelcell">###LABEL###</td><td class="csc-form-fieldcell">###FIELD###</td></tr>
633         labelWrap.wrap = <p class="csc-form-label">|</p>
634         commentWrap.wrap = <p class="csc-form-comment">|</p>
635         radioWrap.wrap = <span class="csc-form-radio">|</span><br />
636         REQ = 1
637         REQ.labelWrap.wrap = <p class="csc-form-label-req">|</p>
638         COMMENT.layout = <tr><td colspan="2" class="csc-form-commentcell">###LABEL###</td></tr>
639         target = {$styles.content.mailform.target}
640         goodMess = {$styles.content.mailform.goodMess}
641         badMess = {$styles.content.mailform.badMess}
642         redirect.field = pages
643         redirect.listNum = 0
644         recipient.field = subheader
645         data.field = bodytext
646         locationData = 1
647
648         stdWrap.wrap = <table border="0" cellspacing="1" cellpadding="1" class="csc-mailform">  | </table>
649         stdWrap {
650                 editIcons = tt_content: bodytext, pages, subheader
651                 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.form
652
653                 prefixComment = 2 | Mail form inserted:
654         }
655 }
656
657
658 # ******************
659 # CType: search
660 # ******************
661 tt_content.search = COA
662 tt_content.search.10 = < lib.stdheader
663 # Result:
664 tt_content.search.20 = SEARCHRESULT
665 tt_content.search.20 {
666         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
667         languageField.tt_content = sys_language_uid
668         renderObj = COA
669         renderObj {
670
671                 10 = TEXT
672                 10.field = pages_title
673                 10.htmlSpecialChars = 1
674                 10.typolink {
675                         parameter.field = uid
676                         target = {$styles.content.searchresult.resultTarget}
677                         additionalParams.data = register:SWORD_PARAMS
678                         additionalParams.required = 1
679                         additionalParams.wrap = &no_cache=1
680                 }
681                 10.htmlSpecialChars = 1
682                 10.wrap = <h3 class="csc-searchResultHeader">|</h3>
683
684                 20 = COA
685                 20 {
686                         10 = TEXT
687                         10.field = tt_content_bodytext
688                         10.stripHtml = 1
689                         10.htmlSpecialChars = 1
690                 }
691                 20.stdWrap.crop = 200 | ...
692                 20.stdWrap.wrap = <p class="csc-searchResult">|</p>
693         }
694
695         layout = COA
696         layout {
697                 wrap = <table border="0" cellspacing="0" cellpadding="2" class="csc-searchResultInfo"><tr> | </tr></table> ###RESULT###
698
699                 10 = TEXT
700                 10.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.resultRange
701                 10.wrap = <td class="csc-searchResultRange"><p>|</p></td>
702
703                 20 = TEXT
704                 20.value = ###PREV###&nbsp;&nbsp;&nbsp;###NEXT###
705                 20.wrap = <td class="csc-searchResultPrevNext"><p>|</p></td>
706         }
707
708         noResultObj = COA
709         noResultObj {
710                 10 = TEXT
711                 10.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.emptySearch
712                 10.wrap = <h3 class="csc-noSearchResultMsg">|</h3>
713         }
714
715         next = TEXT
716         next.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.searchResultNext
717
718         prev = TEXT
719         prev.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.searchResultPrev
720
721         target = {$styles.content.searchresult.target}
722         range = 20
723
724         stdWrap.prefixComment = 2 | Search result:
725 }
726
727 # Form:
728 tt_content.search.30 < tt_content.mailform.20
729 tt_content.search.30 {
730         goodMess = {$styles.content.searchform.goodMess}
731         redirect >
732         recipient >
733         data >
734         dataArray {
735                 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.searchWord
736                 10.type = sword=input
737                 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.searchIn
738                 20.type = scols=select
739                 20.valueArray {
740                         10.label.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.headersKeywords
741                         10.value = pages.title-subtitle-keywords-description:tt_content.header
742                         20.label.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.pageContent
743                         20.value = tt_content.header-bodytext-imagecaption
744                 }
745                 30.type = stype=hidden
746                 30.value = L0
747                 40.type = submit=submit
748                 40.value.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.searchButton
749         }
750         type.field = pages
751         type.listNum = 0
752         locationData = HTTP_POST_VARS
753         no_cache = 1
754
755         stdWrap.wrap = <table border="0" cellspacing="1" cellpadding="1" class="csc-searchform">  | </table>
756         stdWrap {
757                 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.search
758
759                 prefixComment = 2 | Search form inserted:
760         }
761 }
762
763
764 # ******************
765 # CType: login
766 # ******************
767 tt_content.login < tt_content.mailform
768 tt_content.login.10 = < lib.stdheader
769 tt_content.login.20 {
770         goodMess = {$styles.content.loginform.goodMess}
771         redirect >
772         recipient >
773         data >
774         dataArray {
775                 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.php:login.username
776                 10.type = *user=input
777                 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.php:login.password
778                 20.type = *pass=password
779                 30.type = logintype=hidden
780                 30.value = login
781                 40.type = submit=submit
782                 40.value.data = LLL:EXT:css_styled_content/pi1/locallang.php:login.login
783         }
784         type.field = pages
785         type.listNum = 0
786         target = {$styles.content.loginform.target}
787         locationData = 0
788         hiddenFields.pid = TEXT
789         hiddenFields.pid {
790                 value = {$styles.content.loginform.pid}
791                 override.field = pages
792                 override.listNum = 1
793         }
794
795         stdWrap.wrap = <table border="0" cellspacing="1" cellpadding="1" class="csc-loginform">  | </table>
796         stdWrap {
797                 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.login
798
799                 prefixComment = 2 | Login/Logout form:
800         }
801 }
802 [loginUser = *]
803 tt_content.login.20 {
804         dataArray >
805         dataArray {
806                 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.php:login.username
807                 10.label.wrap = |&nbsp;<!--###USERNAME###-->
808                 30.type = logintype=hidden
809                 30.value = logout
810                 40.type = submit=submit
811                 40.value.data = LLL:EXT:css_styled_content/pi1/locallang.php:login.logout
812         }
813 }
814 [global]
815
816
817 # ******************
818 # CType: splash
819 # ******************
820 # Deprecated element.
821 # Still here for backwards compliance with plugins using the "text box" type.
822 tt_content.splash = CASE
823 tt_content.splash.key.field = splash_layout
824 tt_content.splash.stdWrap {
825         prefixComment = 2 | Textbox inserted (Deprecated)
826 }
827 tt_content.splash.default = COA
828 tt_content.splash.default {
829         20 = CTABLE
830         20 {
831                 c.1 = < tt_content.text
832                 lm.1 = IMAGE
833                 lm.1.file {
834                         import = uploads/pics/
835                         import.field = image
836                         import.listNum = 0
837                         maxW.field = imagewidth
838                         maxW.ifEmpty = 200
839                 }
840                 cMargins = 30,0,0,0
841         }
842 }
843 tt_content.splash.1 < tt_content.splash.default
844 tt_content.splash.1.20.lm.1.file >
845 tt_content.splash.1.20.lm.1.file = GIFBUILDER
846 tt_content.splash.1.20.lm.1.file {
847         XY = [10.w]+10,[10.h]+10
848         backColor = {$content.splash.bgCol}
849         backColor.override.data = register:pageColor
850         format = jpg
851         5 = BOX
852         5.dimensions = 3,3,[10.w],[10.h]
853         5.color = #333333
854         7 = EFFECT
855         7.value = blur=99|blur=99|blur=99|blur=99|blur=99|blur=99|blur=99
856         10 = IMAGE
857         10.file {
858                 import = uploads/pics/
859                 import.field = image
860                 import.listNum = 0
861                 maxW.field = imagewidth
862                 maxW.ifEmpty = 200
863         }
864 }
865 // The image frames are not available unless TypoScript code from styles.content.imgFrames.x is provided manually:
866 tt_content.splash.2 < tt_content.splash.default
867 #tt_content.splash.2.20.lm.1.file.m < styles.content.imgFrames.1
868 tt_content.splash.3 < tt_content.splash.default
869 #tt_content.splash.3.20.lm.1.file.m < styles.content.imgFrames.2
870
871 // From plugin.postit1, if included:
872 tt_content.splash.20 = < plugin.postit1
873
874
875
876
877 # ****************
878 # CType: menu
879 # ****************
880 tt_content.menu = COA
881 tt_content.menu {
882         10 = < lib.stdheader
883
884         20 = CASE
885         20 {
886                 key.field = menu_type
887
888                 # "Menu of these pages"
889                 default = HMENU
890                 default.wrap = <div class="csc-menu csc-menu-def">|</div>
891                 default {
892                         special = list
893                         special.value.field = pages
894                         1 = TMENU
895                         1.NO.allWrap = <p>|</p>
896                         1.NO.stdWrap.htmlSpecialChars = 1
897                         1.target = {$content.pageFrameObj}
898                 }
899
900                 # "Menu of subpages to these pages"
901                 1 < .default
902                 1.special = directory
903                 1.wrap = <div class="csc-menu csc-menu-1">|</div>
904
905                 # "Sitemap"
906                 2 = HMENU
907                 2.wrap = <div class="csc-menu csc-menu-2">|</div>
908                 2 {
909                         1 = TMENU
910                         1.NO.allWrap = <p class="csc-sitemap csc-sitemap-level1">|</p>
911                         1.NO.stdWrap.htmlSpecialChars = 1
912                         1.target = {$content.pageFrameObj}
913                         1.expAll = 1
914
915                         2 < .1
916                         2.NO.allWrap = <p class="csc-sitemap csc-sitemap-level2">|</p>
917
918                         3 < .1
919                         3.NO.allWrap = <p class="csc-sitemap csc-sitemap-level3">|</p>
920
921                         4 < .1
922                         4.NO.allWrap = <p class="csc-sitemap csc-sitemap-level4">|</p>
923                         4.expAll = 0
924                 }
925
926                 # "Section index (pagecontent w/Index checked)"
927                 3 < styles.content.get
928                 3.wrap = <div class="csc-menu csc-menu-3">|</div>
929                 3.select.andWhere = sectionIndex!=0
930                 3.select.pidInList.override.field = pages
931                 3.renderObj = TEXT
932                 3.renderObj {
933                         fieldRequired = header
934                         trim=1
935                         field = header
936                         htmlSpecialChars = 1
937                         wrap = <p class="csc-section">|</p>
938                         typolink.parameter.field = pid
939                         typolink.section.field = uid
940                 }
941
942                 # "Menu of subpages to these pages (with abstract)"
943                 4 < .1
944                 4.wrap = <div class="csc-menu csc-menu-4">|</div>
945                 4.1.NO {
946                         allWrap = <p>|</p>
947                         after.required = 1
948                         after.data = field : abstract // field : description // field : subtitle
949                         after.htmlSpecialChars = 1
950                         after.wrap = </p><p class="csc-abstract">|
951                 }
952
953                 # "Recently updated pages"
954                 5 < .default
955                 5.wrap = <div class="csc-menu csc-menu-5">|</div>
956                 5.special = updated
957                 5.special {
958                         maxAge = 3600*24*7
959                         excludeNoSearchPages = 1
960                 }
961
962                 # "Related pages (based on keywords)"
963                 6 < .default
964                 6.wrap = <div class="csc-menu csc-menu-6">|</div>
965                 6.special = keywords
966                 6.special {
967                         excludeNoSearchPages = 1
968                 }
969
970                 # "Menu of subpages to these pages + sections"
971                 7 < .1
972                 7.wrap = <div class="csc-menu csc-menu-7">|</div>
973                 7.1.expAll = 1
974                 7.2 < .7.1
975                 7.2.sectionIndex = 1
976                 7.2.sectionIndex.type = header
977                 7.2.NO.allWrap = <p class="csc-section">|</p>
978         }
979
980         20.stdWrap {
981                 editIcons = tt_content: menu_type, pages
982                 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.menuSitemap
983
984                 prefixComment = 2 | Menu/Sitemap element:
985         }
986 }
987
988
989 # ****************
990 # CType: shortcut
991 # ****************
992 # Should be a complete copy from the old static template "content (default)"
993 tt_content.shortcut = COA
994 tt_content.shortcut {
995         20 = CASE
996         20.key.field = layout
997         20.0= RECORDS
998         20.0 {
999                 source.field = records
1000                 tables = {$content.shortcut.tables}
1001                 # THESE are OLD plugins. Modern plugins registers themselves automatically!
1002                 conf.tt_content = < tt_content
1003                 conf.tt_address = < tt_address
1004                 conf.tt_links = < tt_links
1005                 conf.tt_guest = < tt_guest
1006                 conf.tt_board = < tt_board
1007                 conf.tt_calender = < tt_calender
1008                 conf.tt_rating < tt_rating
1009                 conf.tt_products = < tt_products
1010                 conf.tt_news = < tt_news
1011                 conf.tt_poll = < plugin.tt_poll
1012         }
1013         20.1= RECORDS
1014         20.1 {
1015                 source.field = records
1016                 tables = {$content.shortcut.tables}
1017                 conf.tt_poll = < plugin.tt_poll
1018                 conf.tt_poll.code = RESULT,SUBMITTEDVOTE
1019         }
1020
1021         20.stdWrap {
1022                 editIcons = tt_content: records
1023                 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.recordList
1024
1025                 prefixComment = 2 | Inclusion of other records (by reference):
1026         }
1027 }
1028
1029
1030 # ****************
1031 # CType: list
1032 # ****************
1033 # Should be a complete copy from the old static template "content (default)" (except "lib.stdheader")
1034 tt_content.list = COA
1035 tt_content.list {
1036         10 = < lib.stdheader
1037
1038         20 = CASE
1039         20.key.field = list_type
1040         20 {
1041                 # LIST element references (NOT copy of objects!)
1042                 # THESE are OLD plugins. Modern plugins registers themselves automatically!
1043                 3 = CASE
1044                 3.key.field = layout
1045                 3.0 = < plugin.tt_guest
1046
1047                 4 = CASE
1048                 4.key.field = layout
1049                 4.0 = < plugin.tt_board_list
1050                 4.1 = < plugin.tt_board_tree
1051
1052                 2 = CASE
1053                 2.key.field = layout
1054                 2.0 = < plugin.tt_board_tree
1055
1056                 5 = CASE
1057                 5.key.field = layout
1058                 5.0 = < plugin.tt_products
1059
1060                 7 = CASE
1061                 7.key.field = layout
1062                 7.0 = < plugin.tt_calender
1063
1064                 8 = CASE
1065                 8.key.field = layout
1066                 8.0 = < plugin.tt_rating
1067
1068                 9 = CASE
1069                 9.key.field = layout
1070                 9.0 = < plugin.tt_news
1071
1072                 11 = CASE
1073                 11.key.field = layout
1074                 11.0 = < plugin.tipafriend
1075
1076                 20 = CASE
1077                 20.key.field = layout
1078                 20.0 = < plugin.feadmin.fe_users
1079
1080                 21 = CASE
1081                 21.key.field = layout
1082                 21.0 = < plugin.feadmin.dmailsubscription
1083         }
1084
1085         20.stdWrap {
1086                 editIcons = tt_content: list_type, layout, select_key, pages [recursive]
1087                 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.plugin
1088
1089                 prefixComment = 2 | Plugin inserted:
1090         }
1091 }
1092
1093
1094 # ****************
1095 # CType: script
1096 # ****************
1097 # 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.
1098 tt_content.script = TEXT
1099 tt_content.script {
1100         value =
1101
1102         prefixComment = 2 | Script element (Deprecated)
1103 }
1104
1105
1106 # ****************
1107 # CType: div
1108 # ****************
1109 tt_content.div = TEXT
1110 tt_content.div {
1111         value =
1112         prefixComment = 2 | Div element
1113 }
1114
1115
1116 # ****************
1117 # CType: html
1118 # ****************
1119 # This truely IS a content object, launched from inside the PHP class of course.
1120 # Should be a complete copy from the old static template "content (default)"
1121 tt_content.html = TEXT
1122 tt_content.html {
1123         field = bodytext
1124
1125         editIcons = tt_content: pages
1126         editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.html
1127
1128         prefixComment = 2 | Raw HTML content:
1129 }
1130
1131
1132 # ****************
1133 # Default error msg:
1134 # ****************
1135 tt_content.default = TEXT
1136 tt_content.default {
1137         field = CType
1138         wrap = <p style="background-color: yellow;"><b>ERROR:</b> Content Element type "|" has no rendering definition!</p>
1139
1140         prefixComment = 2 | Unknown element message:
1141 }
1142
1143
1144 # *********************************************************************
1145 # ACCESSIBILTY MODE
1146 # *********************************************************************
1147
1148 # Match TYPO3 3.9.0 and later
1149 [compatVersion = 3.9.0]
1150
1151 # switch off <p>-Tags in table cells
1152 tt_content.table.20.innerStdWrap.wrap = |
1153
1154 # change mailform to accesssible mode
1155 tt_content.mailform.20 {
1156         accessibility = 1
1157         noWrapAttr=1
1158         formName = mailform
1159         dontMd5FieldNames = 1
1160         REQ = 1
1161         layout = <div class="csc-mailform-field">###LABEL### ###FIELD###</div>
1162         COMMENT.layout = <div class="csc-mailform-label">###LABEL###</div>
1163         RADIO.layout = <div class="csc-mailform-field">###LABEL### <span class="csc-mailform-radio">###FIELD###</span></div>
1164         LABEL.layout = <div class="csc-mailform-field">###LABEL### <span class="csc-mailform-label">###FIELD###</span></div>
1165         labelWrap.wrap = |
1166         commentWrap.wrap = |
1167         radioWrap.wrap = |<br />
1168         REQ.labelWrap.wrap = |
1169         stdWrap.wrap = <fieldset class="csc-mailform"> | </fieldset>
1170         params.radio = class="csc-mailform-radio"
1171         params.check = class="csc-mailform-check"
1172         params.submit = class="csc-mailform-submit"
1173 }
1174
1175 # accessible menu
1176 tt_content.menu.20 {
1177         # "Menu of these pages"
1178         default.wrap = <ul class="csc-menu csc-menu-def">|</ul>
1179         default.1.NO.allWrap >
1180         default.1.NO.wrapItemAndSub = <li>|</li>
1181         default.1.NO.ATagTitle.field = description // title
1182
1183         # "Menu of subpages to these pages"
1184         1.wrap = <ul class="csc-menu csc-menu-1">|</ul>
1185         1.1.NO.allWrap >
1186         1.1.NO.wrapItemAndSub = <li>|</li>
1187
1188         # "Sitemap - liststyle"
1189         2 >
1190         2 = HMENU
1191         2 {
1192                 wrap = <div class="csc-sitemap">|</div>
1193                 1 = TMENU
1194                 1 {
1195                         noBlur=1
1196                         expAll=1
1197                         wrap = <ul>|</ul>
1198                         NO {
1199                                 stdWrap.htmlSpecialChars = 1
1200                                 wrapItemAndSub = <li>|</li>
1201                                 ATagTitle.field = description // title
1202                         }
1203                 }
1204                 2<.1
1205                 3<.1
1206                 4<.1
1207                 5<.1
1208                 6<.1
1209                 7<.1
1210         }
1211
1212         # "Section index (pagecontent w/Index checked - liststyle)"
1213         3.wrap = <ul class="csc-menu csc-menu-3">|</ul>
1214         3.renderObj.noBlur = 1
1215         3.renderObj.wrap = <li class="csc-section">|</li>
1216
1217         # "Menu of subpages to these pages (with abstract)"
1218         4.wrap = <dl class="csc-menu csc-menu-4">|</dl>
1219         4.1.NO {
1220                 allWrap >
1221                 linkWrap = <dt>|</dt>
1222                 after.wrap = <dd>|</dd>
1223                 ATagTitle.field = description // title
1224         }
1225
1226         # "Recently updated pages"
1227         5.wrap = <ul class="csc-menu csc-menu-5">|</ul>
1228         5.1.NO.allWrap >
1229         5.1.NO.wrapItemAndSub = <li>|</li>
1230
1231         # "Related pages (based on keywords)"
1232         6.wrap = <ul class="csc-menu csc-menu-6">|</ul>
1233         6.1.NO.allWrap >
1234         6.1.NO.wrapItemAndSub = <li>|</li>
1235
1236         # "Menu of subpages to these pages + sections - liststyle"
1237         7.wrap = <ul class="csc-menu csc-menu-7">|</ul>
1238         7.1.NO.allWrap >
1239         7.1.NO.wrapItemAndSub = <li>|</li>
1240         7.2.wrap = <ul>|</ul>
1241         7.2.NO.allWrap >
1242         7.2.NO.wrapItemAndSub = <li class="csc-section">|</li>
1243         7.2.NO.ATagTitle.field = description // title
1244 }
1245
1246 # cObject: Image
1247
1248 tt_content.image.20 = USER
1249 tt_content.image.20 {
1250         userFunc = tx_cssstyledcontent_pi1->render_textpic
1251
1252         1 {
1253                 params >
1254                 imageLinkWrap {
1255                         bodyTag = <body style="margin:0; background:#fff;">
1256                         JSwindow.expand =
1257                 }
1258         }
1259
1260         caption.1.wrapAlign >
1261         caption.1.fontTag >
1262
1263         captionAlign.field = imagecaption_position
1264
1265         borderSpace = {$styles.content.imgtext.borderSpace}
1266         separateRows = {$styles.content.imgtext.separateRows}
1267         addClasses =
1268         addClassesImage =
1269         addClassesImage.ifEmpty = csc-textpic-firstcol csc-textpic-lastcol
1270         addClassesImage.override = csc-textpic-firstcol |*| |*| csc-textpic-lastcol
1271         addClassesImage.override.if {
1272                 isGreaterThan.field = imagecols
1273                 value = 1
1274         }
1275
1276         #
1277         imageStdWrap.dataWrap = <div class="csc-textpic-imagewrap" style="width:{register:totalwidth}px;"> | </div>
1278         imageStdWrapNoWidth.wrap = <div class="csc-textpic-imagewrap"> | </div>
1279
1280         # if noRows is set, wrap around each column:
1281         imageColumnStdWrap.dataWrap = <div class="csc-textpic-imagecolumn" style="width:{register:columnwidth}px;"> | </div>
1282
1283         layout = CASE
1284         layout {
1285                 key.field = imageorient
1286                 # above-center
1287                 default = TEXT
1288                 default.value = <div class="csc-textpic csc-textpic-center csc-textpic-above###CLASSES###">###IMAGES######TEXT###</div><div class="csc-textpic-clear"><!-- --></div>
1289                 # above-right
1290                 1 = TEXT
1291                 1.value = <div class="csc-textpic csc-textpic-right csc-textpic-above###CLASSES###">###IMAGES######TEXT###</div><div class="csc-textpic-clear"><!-- --></div>
1292                 # above-left
1293                 2 = TEXT
1294                 2.value = <div class="csc-textpic csc-textpic-left csc-textpic-above###CLASSES###">###IMAGES######TEXT###</div><div class="csc-textpic-clear"><!-- --></div>
1295                 # below-center
1296                 8 = TEXT
1297                 8.value = <div class="csc-textpic csc-textpic-center csc-textpic-below###CLASSES###">###TEXT######IMAGES###</div><div class="csc-textpic-clear"><!-- --></div>
1298                 # below-right
1299                 9 = TEXT
1300                 9.value = <div class="csc-textpic csc-textpic-right csc-textpic-below###CLASSES###">###TEXT######IMAGES###</div><div class="csc-textpic-clear"><!-- --></div>
1301                 # below-left
1302                 10 = TEXT
1303                 10.value = <div class="csc-textpic csc-textpic-left csc-textpic-below###CLASSES###">###TEXT######IMAGES###</div><div class="csc-textpic-clear"><!-- --></div>
1304                 # intext-right
1305                 17 = TEXT
1306                 17.value = <div class="csc-textpic csc-textpic-intext-right###CLASSES###">###IMAGES######TEXT###</div>
1307                 # intext-left
1308                 18 = TEXT
1309                 18.value = <div class="csc-textpic csc-textpic-intext-left###CLASSES###">###IMAGES######TEXT###</div>
1310                 # intext-right-nowrap
1311                 25 = TEXT
1312                 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>
1313                 25.insertData = 1
1314                 # intext-left-nowrap
1315                 26 = TEXT
1316                 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>
1317                 26.insertData = 1
1318         }
1319
1320         rendering {
1321                 dl {
1322                         imageRowStdWrap.dataWrap = <div class="csc-textpic-imagerow" style="width:{register:rowwidth}px;"> | </div>
1323                         noRowsStdWrap.wrap =
1324                         oneImageStdWrap.dataWrap = <dl class="csc-textpic-image###CLASSES###" style="width:{register:imagespace}px;"> | </dl>
1325                         imgTagStdWrap.wrap = <dt> | </dt>
1326                         editIconsStdWrap.wrap = <dd> | </dd>
1327                         caption.wrap = <dd class="csc-textpic-caption"> | </dd>
1328                 }
1329                 ul {
1330                         imageRowStdWrap.dataWrap = <div class="csc-textpic-imagerow" style="width:{register:rowwidth}px;"><ul> | </ul></div>
1331                         noRowsStdWrap.wrap = <ul> | </ul>
1332                         oneImageStdWrap.dataWrap = <li class="csc-textpic-image###CLASSES###" style="width:{register:imagespace}px;"> | </li>
1333                         imgTagStdWrap.wrap =
1334                         editIconsStdWrap.wrap = <div> | </div>
1335                         caption.wrap = <div class="csc-textpic-caption"> | </div>
1336                 }
1337                 div {
1338                         imageRowStdWrap.dataWrap = <div class="csc-textpic-imagerow" style="width:{register:rowwidth}px;"> | </div>
1339                         noRowsStdWrap.wrap =
1340                         oneImageStdWrap.dataWrap = <div class="csc-textpic-image###CLASSES###" style="width:{register:imagespace}px;"> | </div>
1341                         imgTagStdWrap.wrap = <div> | </div>
1342                         editIconsStdWrap.wrap = <div> | </div>
1343                         caption.wrap = <div class="csc-textpic-caption"> | </div>
1344                 }
1345         }
1346         renderMethod = dl
1347 }
1348
1349 # cObject: Text with image
1350
1351 tt_content.textpic.20 =< tt_content.image.20
1352 tt_content.textpic.20 {
1353         text.10 = COA
1354         text.10 {
1355                 if.value = 24
1356                 if.isGreaterThan.field = imageorient
1357                 10 = < lib.stdheader
1358                 10.stdWrap.dataWrap = <div class="csc-textpicHeader csc-textpicHeader-{field:imageorient}">|</div>
1359         }
1360         text.20 = < tt_content.text.20
1361         text.wrap = <div class="csc-textpic-text"> | </div>
1362 }
1363
1364
1365 plugin.tx_cssstyledcontent._CSS_DEFAULT_STYLE (
1366         /* Captions */
1367         DIV.csc-textpic-caption-c .csc-textpic-caption { text-align: center; }
1368         DIV.csc-textpic-caption-r .csc-textpic-caption { text-align: right; }
1369         DIV.csc-textpic-caption-l .csc-textpic-caption { text-align: left; }
1370
1371         /* Needed for noRows setting */
1372         DIV.csc-textpic DIV.csc-textpic-imagecolumn { float: left; display: inline; }
1373
1374         /* Border just around the image */
1375         {$styles.content.imgtext.borderSelector} {
1376                 border: {$styles.content.imgtext.borderThick}px solid {$styles.content.imgtext.borderColor};
1377                 padding: {$styles.content.imgtext.borderSpace}px {$styles.content.imgtext.borderSpace}px;
1378         }
1379
1380         DIV.csc-textpic-imagewrap { padding: 0; }
1381
1382         DIV.csc-textpic IMG { border: none; }
1383
1384         /* DIV: This will place the images side by side */
1385         DIV.csc-textpic DIV.csc-textpic-imagewrap DIV.csc-textpic-image { float: left; }
1386
1387         /* UL: This will place the images side by side */
1388         DIV.csc-textpic DIV.csc-textpic-imagewrap UL { list-style: none; margin: 0; padding: 0; }
1389         DIV.csc-textpic DIV.csc-textpic-imagewrap UL LI { float: left; margin: 0; padding: 0; }
1390
1391         /* DL: This will place the images side by side */
1392         DIV.csc-textpic DIV.csc-textpic-imagewrap DL.csc-textpic-image { float: left; }
1393         DIV.csc-textpic DIV.csc-textpic-imagewrap DL.csc-textpic-image DT { float: none; }
1394         DIV.csc-textpic DIV.csc-textpic-imagewrap DL.csc-textpic-image DD { float: none; }
1395         DIV.csc-textpic DIV.csc-textpic-imagewrap DL.csc-textpic-image DD IMG { border: none; } /* FE-Editing Icons */
1396         DL.csc-textpic-image { margin: 0; }
1397         DL.csc-textpic-image DT { margin: 0; display: inline; }
1398         DL.csc-textpic-image DD { margin: 0; }
1399
1400         /* Clearer */
1401         DIV.csc-textpic-clear { clear: both; }
1402
1403         /* Margins around images: */
1404
1405         /* Pictures on left, add margin on right */
1406         DIV.csc-textpic-left DIV.csc-textpic-imagewrap .csc-textpic-image,
1407         DIV.csc-textpic-intext-left-nowrap DIV.csc-textpic-imagewrap .csc-textpic-image,
1408         DIV.csc-textpic-intext-left DIV.csc-textpic-imagewrap .csc-textpic-image {
1409                 display: inline; /* IE fix for double-margin bug */
1410                 margin-right: {$styles.content.imgtext.colSpace}px;
1411         }
1412
1413         /* Pictures on right, add margin on left */
1414         DIV.csc-textpic-right DIV.csc-textpic-imagewrap .csc-textpic-image,
1415         DIV.csc-textpic-intext-right-nowrap DIV.csc-textpic-imagewrap .csc-textpic-image,
1416         DIV.csc-textpic-intext-right DIV.csc-textpic-imagewrap .csc-textpic-image {
1417                 display: inline; /* IE fix for double-margin bug */
1418                 margin-left: {$styles.content.imgtext.colSpace}px;
1419         }
1420
1421         /* Pictures centered, add margin on left */
1422         DIV.csc-textpic-center DIV.csc-textpic-imagewrap .csc-textpic-image {
1423                 display: inline; /* IE fix for double-margin bug */
1424                 margin-left: {$styles.content.imgtext.colSpace}px;
1425         }
1426         DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-image .csc-textpic-caption { margin: 0; }
1427         DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-image IMG { margin: 0; }
1428
1429         /* Space below each image (also in-between rows) */
1430         DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-image { margin-bottom: 5px; }
1431         DIV.csc-textpic-equalheight DIV.csc-textpic-imagerow { margin-bottom: 5px; display: block; }
1432         DIV.csc-textpic DIV.csc-textpic-imagerow { clear: both; }
1433
1434         /* No margins around the whole image-block */
1435         DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-firstcol { margin-left: 0px !important; }
1436         DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-lastcol { margin-right: 0px !important; }
1437
1438         /* Add margin from image-block to text (in case of "Text w/ images") */
1439         DIV.csc-textpic-intext-left DIV.csc-textpic-imagewrap,
1440         DIV.csc-textpic-intext-left-nowrap DIV.csc-textpic-imagewrap {
1441                 margin-right: {$styles.content.imgtext.textMargin}px !important;
1442         }
1443         DIV.csc-textpic-intext-right DIV.csc-textpic-imagewrap,
1444         DIV.csc-textpic-intext-right-nowrap DIV.csc-textpic-imagewrap {
1445                 margin-left: {$styles.content.imgtext.textMargin}px !important;
1446         }
1447
1448         /* Positioning of images: */
1449
1450         /* Above */
1451         DIV.csc-textpic-above DIV.csc-textpic-text { clear: both; }
1452
1453         /* Center (above or below) */
1454         DIV.csc-textpic-center { text-align: center; /* IE-hack */ }
1455         DIV.csc-textpic-center DIV.csc-textpic-imagewrap { margin: 0 auto; }
1456         DIV.csc-textpic-center DIV.csc-textpic-imagewrap .csc-textpic-image { text-align: left; /* Remove IE-hack */ }
1457         DIV.csc-textpic-center DIV.csc-textpic-text { text-align: left; /* Remove IE-hack */ }
1458
1459         /* Right (above or below) */
1460         DIV.csc-textpic-right DIV.csc-textpic-imagewrap { float: right; }
1461         DIV.csc-textpic-right DIV.csc-textpic-text { clear: right; }
1462
1463         /* Left (above or below) */
1464         DIV.csc-textpic-left DIV.csc-textpic-imagewrap { float: left; }
1465         DIV.csc-textpic-left DIV.csc-textpic-text { clear: left; }
1466
1467         /* Left (in text) */
1468         DIV.csc-textpic-intext-left DIV.csc-textpic-imagewrap { float: left; }
1469
1470         /* Right (in text) */
1471         DIV.csc-textpic-intext-right DIV.csc-textpic-imagewrap { float: right; }
1472
1473         /* Right (in text, no wrap around) */
1474         DIV.csc-textpic-intext-right-nowrap DIV.csc-textpic-imagewrap { float: right; clear: both; }
1475         /* Hide from IE5-mac. Only IE-win sees this. \*/
1476         * html DIV.csc-textpic-intext-right-nowrap .csc-textpic-text { height: 1%; }
1477         /* End hide from IE5/mac */
1478
1479         /* Left (in text, no wrap around) */
1480         DIV.csc-textpic-intext-left-nowrap DIV.csc-textpic-imagewrap { float: left; clear: both; }
1481         /* Hide from IE5-mac. Only IE-win sees this. \*/
1482         * html DIV.csc-textpic-intext-left-nowrap .csc-textpic-text { height: 1%; }
1483         /* End hide from IE5/mac */
1484 )
1485
1486 [END]
1487
1488
1489 <<<<<<< setup.txt
1490 # TYPO3 CVS ID: $Id$
1491 =======
1492 # TYPO3 CVS ID: $Id$>>>>>>> 1.7