[!!!][FEATURE] Streamline Fluid Styled Content and CSS Styled Content
[Packages/TYPO3.CMS.git] / typo3 / sysext / css_styled_content / Configuration / TypoScript / setup.txt
1 # Include setup
2 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/Helper/ParseFunc.txt">
3 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/Helper/StandardHeader.txt">
4
5 # default link target for external URLs
6 config.extTarget = {$styles.content.links.extTarget}
7
8 # Content element rendering
9 tt_content.stdWrap {
10     innerWrap.cObject = CASE
11     innerWrap.cObject {
12         key.field = frame_class
13         default = COA
14         default {
15             10 = TEXT
16             10 {
17                 cObject = CASE
18                 cObject {
19                     key.field = CType
20                     default = TEXT
21                     default {
22                         value = <div id="c{field:uid}"
23                     }
24                     div = TEXT
25                     div {
26                         value = <div
27                     }
28                 }
29                 insertData = 1
30             }
31             20 = COA
32             20 {
33                 # Create default class for content
34                 10 = TEXT
35                 10 {
36                     value = csc-frame csc-frame-default
37                     required = 1
38                     noTrimWrap = || |
39                 }
40                 # Create class for space before content
41                 20 = TEXT
42                 20 {
43                     field = space_before_class
44                     required = 1
45                     noTrimWrap = |csc-space-before-| |
46                 }
47                 # Create class for space after content
48                 30 = TEXT
49                 30 {
50                     field = space_after_class
51                     required = 1
52                     noTrimWrap = |csc-space-after-| |
53                 }
54                 stdWrap {
55                     trim = 1
56                     noTrimWrap = | class="|"|
57                     required = 1
58                 }
59             }
60             30 = TEXT
61             30 {
62                 cObject = CASE
63                 cObject {
64                     key.field = CType
65
66                     default = TEXT
67                     default {
68                         value = >|</div>
69                     }
70                 }
71             }
72         }
73         ruler-before =< tt_content.stdWrap.innerWrap.cObject.default
74         ruler-before.20.10.value = csc-frame csc-frame-ruler-before
75         ruler-after =< tt_content.stdWrap.innerWrap.cObject.default
76         ruler-after.20.10.value = csc-frame csc-frame-ruler-after
77         indent =< tt_content.stdWrap.innerWrap.cObject.default
78         indent.20.10.value = csc-frame csc-frame-indent
79         indent-left =< tt_content.stdWrap.innerWrap.cObject.default
80         indent-left.20.10.value = csc-frame csc-frame-indent-left
81         indent-right =< tt_content.stdWrap.innerWrap.cObject.default
82         indent-right.20.10.value = csc-frame csc-frame-indent-right
83         none = COA
84         none {
85             10 = TEXT
86             10 {
87                 value = <a id="c{field:uid}"></a>
88                 insertData = 1
89             }
90             # Create div with class for space before content
91             20 = TEXT
92             20 {
93                 field = space_before_class
94                 required = 1
95                 wrap = <div class="csc-space-before-|"></div>
96             }
97             30 = TEXT
98             30 {
99                 value = |
100             }
101             # Create div with class for space after content
102             40 = TEXT
103             40 {
104                 field = space_after_class
105                 required = 1
106                 wrap = <div class="csc-space-after-|"></div>
107             }
108         }
109     }
110     innerWrap2 = | <p class="csc-linkToTop"><a href="#">{LLL:EXT:css_styled_content/Resources/Private/Language/locallang.xlf:label.toTop}</a></p>
111     innerWrap2.insertData = 1
112     innerWrap2.fieldRequired = linkToTop
113     prepend = TEXT
114     prepend.dataWrap = <a id="c{field:_LOCALIZED_UID}"></a>
115     prepend.if.isTrue.field = _LOCALIZED_UID
116     editPanel = 1
117     editPanel {
118         allow = move,new,edit,hide,delete
119         line = 5
120         label = %s
121         onlyCurrentPid = 1
122         previewBorder = 4
123         edit.displayRecord = 1
124     }
125     prefixComment = 1 | CONTENT ELEMENT, uid:{field:uid}/{field:CType}
126 }
127
128
129 # Typical content elements
130 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/Bullets.txt">
131 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/Div.txt">
132 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/Header.txt">
133 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/Html.txt">
134 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/Image.txt">
135 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/List.txt">
136 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/Shortcut.txt">
137 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/Table.txt">
138 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/Text.txt">
139 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/Textpic.txt">
140 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/Textmedia.txt">
141 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/Uploads.txt">
142
143
144 # Menu content elements
145 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElementPartials/Menu.txt">
146 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/MenuAbstract.txt">
147 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/MenuCategorizedContent.txt">
148 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/MenuCategorizedPages.txt">
149 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/MenuPages.txt">
150 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/MenuSubpages.txt">
151 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/MenuSection.txt">
152 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/MenuSectionPages.txt">
153 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/MenuRecentlyUpdated.txt">
154 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/MenuRelatedPages.txt">
155 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/MenuSitemap.txt">
156 <INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/ContentElement/MenuSitemapPages.txt">