[!!!][FEATURE] Streamline Fluid Styled Content and CSS Styled Content
[Packages/TYPO3.CMS.git] / typo3 / sysext / compatibility7 / Configuration / TypoScript / ContentElement / CssStyledContent / setup.txt
1 #
2 # Menu configuration for css_styled_content
3 #
4 tt_content.stdWrap.innerWrap.cObject.default {
5     10.cObject.menu = TEXT
6     10.cObject.menu.value = <nav id="c{field:uid}"
7     30.cObject.menu = TEXT
8     30.cObject.menu.value = >|</nav>
9 }
10
11
12 #
13 # cType: menu
14 #
15 tt_content.menu = COA
16 tt_content.menu {
17     10 = < lib.stdheader
18     20 = CASE
19     20 {
20         key.field = menu_type
21         # "Menu of these pages"
22         default = HMENU
23         default {
24             special = list
25             special.value.field = pages
26             stdWrap {
27                 prepend = COA
28                 prepend {
29                     stdWrap {
30                         if.isTrue.field = accessibility_bypass
31                     }
32                     10 = LOAD_REGISTER
33                     10 {
34                         accessibility_bypass_text = TEXT
35                         accessibility_bypass_text {
36                             field = accessibility_bypass_text
37                         }
38                     }
39                     20 = CONTENT
40                     20 {
41                         table = tt_content
42                         select {
43                             pidInList = this
44                             orderBy = sorting
45                             where {
46                                 dataWrap = sorting>{field:sorting}
47                             }
48                             languageField = sys_language_uid
49                             max = 1
50                         }
51                         renderObj = TEXT
52                         renderObj {
53                             required = 1
54                             data = LLL:EXT:css_styled_content/Resources/Private/Language/locallang.xlf:menu.bypassNavigation
55                             override.data = register:accessibility_bypass_text
56                             trim = 1
57                             htmlSpecialChars = 1
58                             typolink {
59                                 parameter {
60                                     field = pid
61                                 }
62                                 section {
63                                     field = uid
64                                 }
65                             }
66                             wrap = <li class="csc-nav-bypass">|</li>
67                         }
68                     }
69                     30 = RESTORE_REGISTER
70                 }
71                 outerWrap = <ul class="csc-menu csc-menu-def">|</ul>
72                 required = 1
73             }
74             1 = TMENU
75             1 {
76                 target < lib.parseTarget
77                 target =
78                 target.override = {$PAGE_TARGET}
79                 NO {
80                     stdWrap.htmlSpecialChars = 1
81                     wrapItemAndSub = <li>|</li>
82                     ATagTitle.field = description // title
83                 }
84             }
85         }
86         # "Menu of subpages to these pages"
87         1 < .default
88         1 {
89             special = directory
90             stdWrap {
91                 outerWrap = <ul class="csc-menu csc-menu-1">|</ul>
92             }
93         }
94         # "Sitemap - liststyle"
95         2 = HMENU
96         2 {
97             stdWrap < tt_content.menu.20.default.stdWrap
98             stdWrap {
99                 outerWrap = <div class="csc-sitemap">|</div>
100             }
101             1 = TMENU
102             1 {
103                 target < lib.parseTarget
104                 target =
105                 target.override = {$PAGE_TARGET}
106                 expAll = 1
107                 wrap = <ul>|</ul>
108                 NO {
109                     stdWrap.htmlSpecialChars = 1
110                     wrapItemAndSub = <li>|</li>
111                     ATagTitle.field = description // title
112                 }
113             }
114             2 < .1
115             3 < .1
116             4 < .1
117             5 < .1
118             6 < .1
119             7 < .1
120         }
121         # "Section index (pagecontent w/Index checked - liststyle)"
122         3 < .default
123         3 {
124             special {
125                 value {
126                     override {
127                         data = page:uid
128                         if {
129                             isFalse.field = pages
130                         }
131                     }
132                 }
133             }
134             stdWrap {
135                 outerWrap = <ul class="csc-menu csc-menu-3">|</ul>
136             }
137             1 = TMENU
138             1 {
139                 sectionIndex = 1
140                 sectionIndex.type = header
141                 NO.wrapItemAndSub = <li class="csc-section">|</li>
142             }
143         }
144         # "Menu of subpages to these pages (with abstract)"
145         4 < .1
146         4 {
147             stdWrap {
148                 prepend.20.renderObj.wrap = <dt class="csc-nav-bypass">|</dt><dd>&nbsp;</dd>
149                 outerWrap = <dl class="csc-menu csc-menu-4">|</dl>
150             }
151             1.NO {
152                 wrapItemAndSub >
153                 linkWrap = <dt>|</dt>
154                 after {
155                     cObject = TEXT
156                     cObject {
157                         data = field : abstract // field : description // field : subtitle
158                         htmlSpecialChars = 1
159                         required = 1
160                     }
161                     ifBlank = &nbsp;
162                     wrap = <dd>|</dd>
163                 }
164                 ATagTitle.field = description // title
165             }
166         }
167         # "Recently updated pages"
168         5 < .default
169         5 {
170             stdWrap {
171                 outerWrap = <ul class="csc-menu csc-menu-5">|</ul>
172             }
173             special = updated
174             special {
175                 maxAge = 3600*24*7
176                 excludeNoSearchPages = 1
177             }
178         }
179         # "Related pages (based on keywords)"
180         6 < .default
181         6 {
182             stdWrap {
183                 outerWrap = <ul class="csc-menu csc-menu-6">|</ul>
184             }
185             special = keywords
186             special {
187                 excludeNoSearchPages = 1
188             }
189         }
190         # "Menu of subpages to these pages + sections - liststyle"
191         7 < .1
192         7 {
193             stdWrap {
194                 outerWrap = <ul class="csc-menu csc-menu-7">|</ul>
195             }
196             1.expAll = 1
197             2 < .1
198             2 {
199                 sectionIndex = 1
200                 sectionIndex.type = header
201                 wrap = <ul>|</ul>
202                 NO.wrapItemAndSub = <li class="csc-section">|</li>
203             }
204         }
205         # "Sitemaps of selected pages - liststyle"
206         8 < .2
207         8 {
208             special = directory
209             special.value.field = pages
210         }
211         # Menu of categorized pages
212         categorized_pages < .default
213         categorized_pages {
214             special = categories
215             special.value.field = selected_categories
216             special.relation.field = category_field
217             special.sorting = title
218             special.order = asc
219             stdWrap {
220                 outerWrap = <ul class="csc-menu csc-menu-categorized-pages">|</ul>
221             }
222         }
223         # Menu of categorized content elements
224         categorized_content = RECORDS
225         categorized_content {
226             categories.field = selected_categories
227             categories.relation.field = category_field
228             tables = tt_content
229             conf.tt_content = TEXT
230             conf.tt_content {
231                 field = header
232                 typolink.parameter = {field:pid}#{field:uid}
233                 typolink.parameter.insertData = 1
234                 wrap = <li>|</li>
235             }
236             wrap = <ul>|</ul>
237         }
238     }
239     20.stdWrap {
240         wrap {
241             cObject = COA
242             cObject {
243                 10 = TEXT
244                 10 {
245                     field = accessibility_title
246                     htmlSpecialChars = 1
247                     dataWrap = <map id="map{field:uid}" title="|">
248                     dataWrap {
249                         override = <map name="map{field:uid}" title="|">
250                         override {
251                             if {
252                                 isFalse.data = TSFE:xhtmlDoctype
253                             }
254                         }
255                     }
256                 }
257                 20 = TEXT
258                 20 {
259                     value = |</map>
260                 }
261             }
262             if {
263                 isTrue {
264                     field = accessibility_title
265                 }
266             }
267         }
268         editIcons = tt_content: menu_type, pages
269         editIcons.iconTitle.data = LLL:EXT:css_styled_content/Resources/Private/Language/locallang.xlf:eIcon.menuSitemap
270         prefixComment = 2 | Menu/Sitemap element:
271     }
272 }