Richtlinien zu den TAEV

Hier finden Sie die technischen Anschlussbedingungen (TAB´s) für das Netzgebiet der Wiener Netze.
Fehler bei der Verarbeitung der Vorlage.
Failed to transform element

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #list downloadliste.getSiblings()?map...  [in template "4163770#4163807#DOWNLOADLISTTEMPLATE" at line 14, column 25]
----
1<#assign dlAppService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService") /> 
2 
3<ul class="c-download-list c-download-list--timetable"> 
4	<#if downloadliste.getSiblings()?has_content> 
5		<#if selectSort?? && selectSort.getData() == "sortReverse"> 
6	  		<#list downloadliste.getSiblings()?map(transformListItem)?sort_by("dateUnformated")?reverse as cur_downloadliste> 
7		        <@downloadListItem cur_downloadliste = cur_downloadliste /> 
8    	  	</#list> 
9    	<#elseif selectSort?? && selectSort.getData() == "sort"> 
10	  		<#list downloadliste.getSiblings()?map(transformListItem)?sort_by("dateUnformated") as cur_downloadliste> 
11		        <@downloadListItem cur_downloadliste = cur_downloadliste /> 
12    	  	</#list> 
13		<#else>		 
14			<#list downloadliste.getSiblings()?map(transformListItem) as cur_downloadliste> 
15    			<@downloadListItem cur_downloadliste = cur_downloadliste /> 
16    	  	</#list> 
17    	</#if> 
18	</#if> 
19</ul> 
20 
21<#function transformListItem item> 
22		<#-- get fileType --> 
23	<#assign fileType = item.file.getData()?keep_after_last(".")?keep_before("/")?upper_case /> 
24	<#if fileType =="TIF" || fileType =="TIFF" || fileType =="EPS" || fileType =="RAW" || fileType =="BMP"> 
25		<#assign icon = "image" /> 
26	<#elseif fileType == "PDF"> 
27		<#assign icon = "pdf" /> 
28	<#elseif fileType == "DOC" || fileType == "DOCX"> 
29		<#assign icon = "doc" /> 
30	<#elseif fileType == "XLS" || fileType == "XLSX"> 
31		<#assign icon = "xls" /> 
32	<#elseif fileType == "PPT" || fileType == "PPTX"> 
33		<#assign icon = "ppt" /> 
34	<#elseif fileType == "ZIP"> 
35		<#assign icon = "zip" /> 
36	<#elseif fileType == "PNG"> 
37		<#assign icon = "png" /> 
38	<#elseif fileType == "GIF"> 
39		<#assign icon = "gif" /> 
40	<#elseif fileType == "JPG" || fileType == "JPEG"> 
41		<#assign icon = "jpg" /> 
42	<#else> 
43		<#assign icon = "empty" /> 
44	</#if> 
45	<#-- get fileSize --> 
46	<#assign counter = 0 /> 
47	<#list "${item.file.getData()}"?split("/") as x> 
48		<#if counter == 2> 
49			<#assign groupId = x?number /> 
50		</#if> 
51		<#if counter == 5> 
52			<#assign uuid = x?keep_before("?") /> 
53		</#if> 
54		<#assign counter = counter+1 /> 
55	</#list> 
56 
57	<#setting locale = "de_DE"> 
58	<#assign file = dlAppService.getFileEntryByUuidAndGroupId(uuid, groupId)> 
59	<#assign fileSizeKb = file.getSize()/1024 /> 
60	<#assign dateFormat = "dd.MM.yyyy" /> 
61	<#assign dateUnformat = "yyyyMMdd" /> 
62 
63	<#if item.setDate?? && item.setDate.getData()?? && item.setDate.getData() != ""> 
64	    <#assign dateData = getterUtil.getString(item.setDate.getData()) /> 
65		<#assign dateObj = dateUtil.parseDate("yyyy-MM-dd", dateData, locale) /> 
66	    <#assign date = dateUtil.getDate(dateObj, dateFormat, locale) /> 
67		<#assign dateUnformated = dateUtil.getDate(dateObj, dateUnformat, locale) /> 
68	<#else> 
69		<#assign date = dateUtil.getDate(file.getModifiedDate(), dateFormat, locale) /> 
70		<#assign dateUnformated = dateUtil.getDate(file.getModifiedDate(), dateUnformat, locale) /> 
71	</#if> 
72		 
73	<#if fileSizeKb gte 1000 > 
74		<#assign fileSize = (fileSizeKb/1000)?string["0.#"] /> 
75		<#assign unit = "MB" /> 
76	<#else> 
77		<#assign fileSize = fileSizeKb?round /> 
78		<#assign unit = "kB" /> 
79	</#if> 
80 
81	<#assign dateArchived = "" /> 
82	<#if item.archivedByFile?? && item.archivedByFile.getData()?? && item.archivedByFile.getData() != ""> 
83		<#assign counter = 0 /> 
84		<#list "${item.archivedByFile.getData()}"?split("/") as x> 
85			<#if counter == 2> 
86				<#assign groupId = x?number /> 
87			</#if> 
88		<#if counter == 5> 
89			<#assign uuid = x?keep_before("?") /> 
90		</#if> 
91			<#assign counter = counter+1 /> 
92		</#list> 
93 
94		<#assign archivedByFile = dlAppService.getFileEntryByUuidAndGroupId(uuid, groupId) /> 
95 
96		<#if item.setDateArchived?? && item.setDateArchived.getData()?? && item.setDateArchived.getData() != ""> 
97		    <#assign dateArchivedData = getterUtil.getString(item.setDateArchived.getData()) /> 
98			<#assign dateArchivedObj = dateUtil.parseDate("yyyy-MM-dd", dateArchivedData, locale) /> 
99	        <#assign dateArchived = dateUtil.getDate(dateArchivedObj, dateFormat, locale) /> 
100		<#else> 
101			<#assign dateArchived = dateUtil.getDate(archivedByFile.getModifiedDate(), dateFormat, locale) /> 
102		</#if> 
103 
104		<#return { 
105		"title": item.title, 
106		"description": item.description, 
107		"icon": icon, 
108		"file": item.file, 
109		"date": date, 
110		"fileType": fileType, 
111		"fileSize": fileSize, 
112		"unit": unit, 
113		"archivedByFile": item.archivedByFile, 
114		"archivedByName": item.archivedByName, 
115		"dateArchived": dateArchived, 
116		"dateUnformated": dateUnformated 
117	}> 
118	<#else> 
119		<#return { 
120		"title": item.title, 
121		"description": item.description, 
122		"icon": icon, 
123		"file": item.file, 
124		"date": date, 
125		"fileType": fileType, 
126		"fileSize": fileSize, 
127		"unit": unit, 
128		"dateUnformated": dateUnformated 
129		}> 
130	</#if> 
131</#function> 
132 
133<#macro downloadListItem cur_downloadliste> 
134	<li class="c-download-list__item l-row"> 
135   		<div class="c-download-list__content c-download-list__content--branded l-col l-col-12 l-col-md-4"> 
136   			<svg class="c-mrkp-icon c-download-list__icon" role="img" aria-hidden="true"> 
137   				<use xlink:href="#download2-file-${cur_downloadliste.icon}"></use> 
138   			</svg> 
139   			<div> 
140   				<h3 class="c-download-list__title">${cur_downloadliste.title.getData()}</h3> 
141   				<#if cur_downloadliste.description.getData()?? && cur_downloadliste.description.getData() != ""> 
142   					<div class="c-download-list__desc">${cur_downloadliste.description.getData()}</div> 
143   				</#if> 
144   			</div> 
145   		</div>					 
146   		<div class="c-download-list__meta l-col l-col-12 l-col-md-8"> 
147   			<#if cur_downloadliste.archivedByFile?? && cur_downloadliste.archivedByFile.getData()?? && cur_downloadliste.archivedByFile.getData() != ""> 
148   				<a class="c-tag c-tag--link c-download-list__tag-date c-tag--branded" href="${cur_downloadliste.archivedByFile.getData()}"> 
149   					<span class="c-tag__label">ersetzt 
150   					<#if cur_downloadliste.archivedByName?? && cur_downloadliste.archivedByName.getData()?? && cur_downloadliste.archivedByName.getData() != ""> 
151   						durch <strong>${cur_downloadliste.archivedByName.getData()}</strong> 
152   					</#if> 
153   					</span> 
154   				</a> 
155   			</#if> 
156   			<div class="c-tag c-download-list__tag-version" aria-label> 
157   				<span class="c-tag__label"> 
158   				<#if cur_downloadliste.archivedByFile?? && cur_downloadliste.archivedByFile.getData()?? && cur_downloadliste.archivedByFile.getData() != ""> 
159   					archiviert am: ${cur_downloadliste.dateArchived} - ${cur_downloadliste.fileType} (${cur_downloadliste.fileSize}${cur_downloadliste.unit})</span> 
160   				<#else> 
161   					<strong>Stand: </strong>${cur_downloadliste.date} - ${cur_downloadliste.fileType} (${cur_downloadliste.fileSize}${cur_downloadliste.unit}) 
162   				</span> 
163   				</#if> 
164   			</div> 
165   			<#if downloadLinkIcon?? && getterUtil.getBoolean(downloadLinkIcon.getData())> 
166   				<a href="${cur_downloadliste.file.getData()}" class="o-icon-link c-download-list__button"> 
167   					<svg class="o-icon-link__icon" role="img" aria-label="download-link"> 
168   						<use xlink:href="#download"></use> 
169   					</svg> 
170   					<span class="u-sr-only">Herunterladen</span> 
171   				</a> 
172   			<#else> 
173   				<a href="${cur_downloadliste.file.getData()}" class="o-text-link o-text-link--icon "> 
174   					<svg class="o-text-link--icon__icon" role="img" aria-label="download-link"> 
175	   					<use xlink:href="#wl-download"></use> 
176   					</svg> 
177    				Herunterladen 
178    			</a> 
179    		</#if> 
180    	</div> 
181    </li> 
182</#macro> 
Fehler bei der Verarbeitung der Vorlage.
Failed to transform element

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #list downloadliste.getSiblings()?map...  [in template "4163770#4163807#DOWNLOADLISTTEMPLATE" at line 14, column 25]
----
1<#assign dlAppService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService") /> 
2 
3<ul class="c-download-list c-download-list--timetable"> 
4	<#if downloadliste.getSiblings()?has_content> 
5		<#if selectSort?? && selectSort.getData() == "sortReverse"> 
6	  		<#list downloadliste.getSiblings()?map(transformListItem)?sort_by("dateUnformated")?reverse as cur_downloadliste> 
7		        <@downloadListItem cur_downloadliste = cur_downloadliste /> 
8    	  	</#list> 
9    	<#elseif selectSort?? && selectSort.getData() == "sort"> 
10	  		<#list downloadliste.getSiblings()?map(transformListItem)?sort_by("dateUnformated") as cur_downloadliste> 
11		        <@downloadListItem cur_downloadliste = cur_downloadliste /> 
12    	  	</#list> 
13		<#else>		 
14			<#list downloadliste.getSiblings()?map(transformListItem) as cur_downloadliste> 
15    			<@downloadListItem cur_downloadliste = cur_downloadliste /> 
16    	  	</#list> 
17    	</#if> 
18	</#if> 
19</ul> 
20 
21<#function transformListItem item> 
22		<#-- get fileType --> 
23	<#assign fileType = item.file.getData()?keep_after_last(".")?keep_before("/")?upper_case /> 
24	<#if fileType =="TIF" || fileType =="TIFF" || fileType =="EPS" || fileType =="RAW" || fileType =="BMP"> 
25		<#assign icon = "image" /> 
26	<#elseif fileType == "PDF"> 
27		<#assign icon = "pdf" /> 
28	<#elseif fileType == "DOC" || fileType == "DOCX"> 
29		<#assign icon = "doc" /> 
30	<#elseif fileType == "XLS" || fileType == "XLSX"> 
31		<#assign icon = "xls" /> 
32	<#elseif fileType == "PPT" || fileType == "PPTX"> 
33		<#assign icon = "ppt" /> 
34	<#elseif fileType == "ZIP"> 
35		<#assign icon = "zip" /> 
36	<#elseif fileType == "PNG"> 
37		<#assign icon = "png" /> 
38	<#elseif fileType == "GIF"> 
39		<#assign icon = "gif" /> 
40	<#elseif fileType == "JPG" || fileType == "JPEG"> 
41		<#assign icon = "jpg" /> 
42	<#else> 
43		<#assign icon = "empty" /> 
44	</#if> 
45	<#-- get fileSize --> 
46	<#assign counter = 0 /> 
47	<#list "${item.file.getData()}"?split("/") as x> 
48		<#if counter == 2> 
49			<#assign groupId = x?number /> 
50		</#if> 
51		<#if counter == 5> 
52			<#assign uuid = x?keep_before("?") /> 
53		</#if> 
54		<#assign counter = counter+1 /> 
55	</#list> 
56 
57	<#setting locale = "de_DE"> 
58	<#assign file = dlAppService.getFileEntryByUuidAndGroupId(uuid, groupId)> 
59	<#assign fileSizeKb = file.getSize()/1024 /> 
60	<#assign dateFormat = "dd.MM.yyyy" /> 
61	<#assign dateUnformat = "yyyyMMdd" /> 
62 
63	<#if item.setDate?? && item.setDate.getData()?? && item.setDate.getData() != ""> 
64	    <#assign dateData = getterUtil.getString(item.setDate.getData()) /> 
65		<#assign dateObj = dateUtil.parseDate("yyyy-MM-dd", dateData, locale) /> 
66	    <#assign date = dateUtil.getDate(dateObj, dateFormat, locale) /> 
67		<#assign dateUnformated = dateUtil.getDate(dateObj, dateUnformat, locale) /> 
68	<#else> 
69		<#assign date = dateUtil.getDate(file.getModifiedDate(), dateFormat, locale) /> 
70		<#assign dateUnformated = dateUtil.getDate(file.getModifiedDate(), dateUnformat, locale) /> 
71	</#if> 
72		 
73	<#if fileSizeKb gte 1000 > 
74		<#assign fileSize = (fileSizeKb/1000)?string["0.#"] /> 
75		<#assign unit = "MB" /> 
76	<#else> 
77		<#assign fileSize = fileSizeKb?round /> 
78		<#assign unit = "kB" /> 
79	</#if> 
80 
81	<#assign dateArchived = "" /> 
82	<#if item.archivedByFile?? && item.archivedByFile.getData()?? && item.archivedByFile.getData() != ""> 
83		<#assign counter = 0 /> 
84		<#list "${item.archivedByFile.getData()}"?split("/") as x> 
85			<#if counter == 2> 
86				<#assign groupId = x?number /> 
87			</#if> 
88		<#if counter == 5> 
89			<#assign uuid = x?keep_before("?") /> 
90		</#if> 
91			<#assign counter = counter+1 /> 
92		</#list> 
93 
94		<#assign archivedByFile = dlAppService.getFileEntryByUuidAndGroupId(uuid, groupId) /> 
95 
96		<#if item.setDateArchived?? && item.setDateArchived.getData()?? && item.setDateArchived.getData() != ""> 
97		    <#assign dateArchivedData = getterUtil.getString(item.setDateArchived.getData()) /> 
98			<#assign dateArchivedObj = dateUtil.parseDate("yyyy-MM-dd", dateArchivedData, locale) /> 
99	        <#assign dateArchived = dateUtil.getDate(dateArchivedObj, dateFormat, locale) /> 
100		<#else> 
101			<#assign dateArchived = dateUtil.getDate(archivedByFile.getModifiedDate(), dateFormat, locale) /> 
102		</#if> 
103 
104		<#return { 
105		"title": item.title, 
106		"description": item.description, 
107		"icon": icon, 
108		"file": item.file, 
109		"date": date, 
110		"fileType": fileType, 
111		"fileSize": fileSize, 
112		"unit": unit, 
113		"archivedByFile": item.archivedByFile, 
114		"archivedByName": item.archivedByName, 
115		"dateArchived": dateArchived, 
116		"dateUnformated": dateUnformated 
117	}> 
118	<#else> 
119		<#return { 
120		"title": item.title, 
121		"description": item.description, 
122		"icon": icon, 
123		"file": item.file, 
124		"date": date, 
125		"fileType": fileType, 
126		"fileSize": fileSize, 
127		"unit": unit, 
128		"dateUnformated": dateUnformated 
129		}> 
130	</#if> 
131</#function> 
132 
133<#macro downloadListItem cur_downloadliste> 
134	<li class="c-download-list__item l-row"> 
135   		<div class="c-download-list__content c-download-list__content--branded l-col l-col-12 l-col-md-4"> 
136   			<svg class="c-mrkp-icon c-download-list__icon" role="img" aria-hidden="true"> 
137   				<use xlink:href="#download2-file-${cur_downloadliste.icon}"></use> 
138   			</svg> 
139   			<div> 
140   				<h3 class="c-download-list__title">${cur_downloadliste.title.getData()}</h3> 
141   				<#if cur_downloadliste.description.getData()?? && cur_downloadliste.description.getData() != ""> 
142   					<div class="c-download-list__desc">${cur_downloadliste.description.getData()}</div> 
143   				</#if> 
144   			</div> 
145   		</div>					 
146   		<div class="c-download-list__meta l-col l-col-12 l-col-md-8"> 
147   			<#if cur_downloadliste.archivedByFile?? && cur_downloadliste.archivedByFile.getData()?? && cur_downloadliste.archivedByFile.getData() != ""> 
148   				<a class="c-tag c-tag--link c-download-list__tag-date c-tag--branded" href="${cur_downloadliste.archivedByFile.getData()}"> 
149   					<span class="c-tag__label">ersetzt 
150   					<#if cur_downloadliste.archivedByName?? && cur_downloadliste.archivedByName.getData()?? && cur_downloadliste.archivedByName.getData() != ""> 
151   						durch <strong>${cur_downloadliste.archivedByName.getData()}</strong> 
152   					</#if> 
153   					</span> 
154   				</a> 
155   			</#if> 
156   			<div class="c-tag c-download-list__tag-version" aria-label> 
157   				<span class="c-tag__label"> 
158   				<#if cur_downloadliste.archivedByFile?? && cur_downloadliste.archivedByFile.getData()?? && cur_downloadliste.archivedByFile.getData() != ""> 
159   					archiviert am: ${cur_downloadliste.dateArchived} - ${cur_downloadliste.fileType} (${cur_downloadliste.fileSize}${cur_downloadliste.unit})</span> 
160   				<#else> 
161   					<strong>Stand: </strong>${cur_downloadliste.date} - ${cur_downloadliste.fileType} (${cur_downloadliste.fileSize}${cur_downloadliste.unit}) 
162   				</span> 
163   				</#if> 
164   			</div> 
165   			<#if downloadLinkIcon?? && getterUtil.getBoolean(downloadLinkIcon.getData())> 
166   				<a href="${cur_downloadliste.file.getData()}" class="o-icon-link c-download-list__button"> 
167   					<svg class="o-icon-link__icon" role="img" aria-label="download-link"> 
168   						<use xlink:href="#download"></use> 
169   					</svg> 
170   					<span class="u-sr-only">Herunterladen</span> 
171   				</a> 
172   			<#else> 
173   				<a href="${cur_downloadliste.file.getData()}" class="o-text-link o-text-link--icon "> 
174   					<svg class="o-text-link--icon__icon" role="img" aria-label="download-link"> 
175	   					<use xlink:href="#wl-download"></use> 
176   					</svg> 
177    				Herunterladen 
178    			</a> 
179    		</#if> 
180    	</div> 
181    </li> 
182</#macro> 
Fehler bei der Verarbeitung der Vorlage.
Failed to transform element

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #list downloadliste.getSiblings()?map...  [in template "4163770#4163807#DOWNLOADLISTTEMPLATE" at line 14, column 25]
----
1<#assign dlAppService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService") /> 
2 
3<ul class="c-download-list c-download-list--timetable"> 
4	<#if downloadliste.getSiblings()?has_content> 
5		<#if selectSort?? && selectSort.getData() == "sortReverse"> 
6	  		<#list downloadliste.getSiblings()?map(transformListItem)?sort_by("dateUnformated")?reverse as cur_downloadliste> 
7		        <@downloadListItem cur_downloadliste = cur_downloadliste /> 
8    	  	</#list> 
9    	<#elseif selectSort?? && selectSort.getData() == "sort"> 
10	  		<#list downloadliste.getSiblings()?map(transformListItem)?sort_by("dateUnformated") as cur_downloadliste> 
11		        <@downloadListItem cur_downloadliste = cur_downloadliste /> 
12    	  	</#list> 
13		<#else>		 
14			<#list downloadliste.getSiblings()?map(transformListItem) as cur_downloadliste> 
15    			<@downloadListItem cur_downloadliste = cur_downloadliste /> 
16    	  	</#list> 
17    	</#if> 
18	</#if> 
19</ul> 
20 
21<#function transformListItem item> 
22		<#-- get fileType --> 
23	<#assign fileType = item.file.getData()?keep_after_last(".")?keep_before("/")?upper_case /> 
24	<#if fileType =="TIF" || fileType =="TIFF" || fileType =="EPS" || fileType =="RAW" || fileType =="BMP"> 
25		<#assign icon = "image" /> 
26	<#elseif fileType == "PDF"> 
27		<#assign icon = "pdf" /> 
28	<#elseif fileType == "DOC" || fileType == "DOCX"> 
29		<#assign icon = "doc" /> 
30	<#elseif fileType == "XLS" || fileType == "XLSX"> 
31		<#assign icon = "xls" /> 
32	<#elseif fileType == "PPT" || fileType == "PPTX"> 
33		<#assign icon = "ppt" /> 
34	<#elseif fileType == "ZIP"> 
35		<#assign icon = "zip" /> 
36	<#elseif fileType == "PNG"> 
37		<#assign icon = "png" /> 
38	<#elseif fileType == "GIF"> 
39		<#assign icon = "gif" /> 
40	<#elseif fileType == "JPG" || fileType == "JPEG"> 
41		<#assign icon = "jpg" /> 
42	<#else> 
43		<#assign icon = "empty" /> 
44	</#if> 
45	<#-- get fileSize --> 
46	<#assign counter = 0 /> 
47	<#list "${item.file.getData()}"?split("/") as x> 
48		<#if counter == 2> 
49			<#assign groupId = x?number /> 
50		</#if> 
51		<#if counter == 5> 
52			<#assign uuid = x?keep_before("?") /> 
53		</#if> 
54		<#assign counter = counter+1 /> 
55	</#list> 
56 
57	<#setting locale = "de_DE"> 
58	<#assign file = dlAppService.getFileEntryByUuidAndGroupId(uuid, groupId)> 
59	<#assign fileSizeKb = file.getSize()/1024 /> 
60	<#assign dateFormat = "dd.MM.yyyy" /> 
61	<#assign dateUnformat = "yyyyMMdd" /> 
62 
63	<#if item.setDate?? && item.setDate.getData()?? && item.setDate.getData() != ""> 
64	    <#assign dateData = getterUtil.getString(item.setDate.getData()) /> 
65		<#assign dateObj = dateUtil.parseDate("yyyy-MM-dd", dateData, locale) /> 
66	    <#assign date = dateUtil.getDate(dateObj, dateFormat, locale) /> 
67		<#assign dateUnformated = dateUtil.getDate(dateObj, dateUnformat, locale) /> 
68	<#else> 
69		<#assign date = dateUtil.getDate(file.getModifiedDate(), dateFormat, locale) /> 
70		<#assign dateUnformated = dateUtil.getDate(file.getModifiedDate(), dateUnformat, locale) /> 
71	</#if> 
72		 
73	<#if fileSizeKb gte 1000 > 
74		<#assign fileSize = (fileSizeKb/1000)?string["0.#"] /> 
75		<#assign unit = "MB" /> 
76	<#else> 
77		<#assign fileSize = fileSizeKb?round /> 
78		<#assign unit = "kB" /> 
79	</#if> 
80 
81	<#assign dateArchived = "" /> 
82	<#if item.archivedByFile?? && item.archivedByFile.getData()?? && item.archivedByFile.getData() != ""> 
83		<#assign counter = 0 /> 
84		<#list "${item.archivedByFile.getData()}"?split("/") as x> 
85			<#if counter == 2> 
86				<#assign groupId = x?number /> 
87			</#if> 
88		<#if counter == 5> 
89			<#assign uuid = x?keep_before("?") /> 
90		</#if> 
91			<#assign counter = counter+1 /> 
92		</#list> 
93 
94		<#assign archivedByFile = dlAppService.getFileEntryByUuidAndGroupId(uuid, groupId) /> 
95 
96		<#if item.setDateArchived?? && item.setDateArchived.getData()?? && item.setDateArchived.getData() != ""> 
97		    <#assign dateArchivedData = getterUtil.getString(item.setDateArchived.getData()) /> 
98			<#assign dateArchivedObj = dateUtil.parseDate("yyyy-MM-dd", dateArchivedData, locale) /> 
99	        <#assign dateArchived = dateUtil.getDate(dateArchivedObj, dateFormat, locale) /> 
100		<#else> 
101			<#assign dateArchived = dateUtil.getDate(archivedByFile.getModifiedDate(), dateFormat, locale) /> 
102		</#if> 
103 
104		<#return { 
105		"title": item.title, 
106		"description": item.description, 
107		"icon": icon, 
108		"file": item.file, 
109		"date": date, 
110		"fileType": fileType, 
111		"fileSize": fileSize, 
112		"unit": unit, 
113		"archivedByFile": item.archivedByFile, 
114		"archivedByName": item.archivedByName, 
115		"dateArchived": dateArchived, 
116		"dateUnformated": dateUnformated 
117	}> 
118	<#else> 
119		<#return { 
120		"title": item.title, 
121		"description": item.description, 
122		"icon": icon, 
123		"file": item.file, 
124		"date": date, 
125		"fileType": fileType, 
126		"fileSize": fileSize, 
127		"unit": unit, 
128		"dateUnformated": dateUnformated 
129		}> 
130	</#if> 
131</#function> 
132 
133<#macro downloadListItem cur_downloadliste> 
134	<li class="c-download-list__item l-row"> 
135   		<div class="c-download-list__content c-download-list__content--branded l-col l-col-12 l-col-md-4"> 
136   			<svg class="c-mrkp-icon c-download-list__icon" role="img" aria-hidden="true"> 
137   				<use xlink:href="#download2-file-${cur_downloadliste.icon}"></use> 
138   			</svg> 
139   			<div> 
140   				<h3 class="c-download-list__title">${cur_downloadliste.title.getData()}</h3> 
141   				<#if cur_downloadliste.description.getData()?? && cur_downloadliste.description.getData() != ""> 
142   					<div class="c-download-list__desc">${cur_downloadliste.description.getData()}</div> 
143   				</#if> 
144   			</div> 
145   		</div>					 
146   		<div class="c-download-list__meta l-col l-col-12 l-col-md-8"> 
147   			<#if cur_downloadliste.archivedByFile?? && cur_downloadliste.archivedByFile.getData()?? && cur_downloadliste.archivedByFile.getData() != ""> 
148   				<a class="c-tag c-tag--link c-download-list__tag-date c-tag--branded" href="${cur_downloadliste.archivedByFile.getData()}"> 
149   					<span class="c-tag__label">ersetzt 
150   					<#if cur_downloadliste.archivedByName?? && cur_downloadliste.archivedByName.getData()?? && cur_downloadliste.archivedByName.getData() != ""> 
151   						durch <strong>${cur_downloadliste.archivedByName.getData()}</strong> 
152   					</#if> 
153   					</span> 
154   				</a> 
155   			</#if> 
156   			<div class="c-tag c-download-list__tag-version" aria-label> 
157   				<span class="c-tag__label"> 
158   				<#if cur_downloadliste.archivedByFile?? && cur_downloadliste.archivedByFile.getData()?? && cur_downloadliste.archivedByFile.getData() != ""> 
159   					archiviert am: ${cur_downloadliste.dateArchived} - ${cur_downloadliste.fileType} (${cur_downloadliste.fileSize}${cur_downloadliste.unit})</span> 
160   				<#else> 
161   					<strong>Stand: </strong>${cur_downloadliste.date} - ${cur_downloadliste.fileType} (${cur_downloadliste.fileSize}${cur_downloadliste.unit}) 
162   				</span> 
163   				</#if> 
164   			</div> 
165   			<#if downloadLinkIcon?? && getterUtil.getBoolean(downloadLinkIcon.getData())> 
166   				<a href="${cur_downloadliste.file.getData()}" class="o-icon-link c-download-list__button"> 
167   					<svg class="o-icon-link__icon" role="img" aria-label="download-link"> 
168   						<use xlink:href="#download"></use> 
169   					</svg> 
170   					<span class="u-sr-only">Herunterladen</span> 
171   				</a> 
172   			<#else> 
173   				<a href="${cur_downloadliste.file.getData()}" class="o-text-link o-text-link--icon "> 
174   					<svg class="o-text-link--icon__icon" role="img" aria-label="download-link"> 
175	   					<use xlink:href="#wl-download"></use> 
176   					</svg> 
177    				Herunterladen 
178    			</a> 
179    		</#if> 
180    	</div> 
181    </li> 
182</#macro> 
Fehler bei der Verarbeitung der Vorlage.
Failed to transform element

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #list downloadliste.getSiblings()?map...  [in template "4163770#4163807#DOWNLOADLISTTEMPLATE" at line 14, column 25]
----
1<#assign dlAppService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService") /> 
2 
3<ul class="c-download-list c-download-list--timetable"> 
4	<#if downloadliste.getSiblings()?has_content> 
5		<#if selectSort?? && selectSort.getData() == "sortReverse"> 
6	  		<#list downloadliste.getSiblings()?map(transformListItem)?sort_by("dateUnformated")?reverse as cur_downloadliste> 
7		        <@downloadListItem cur_downloadliste = cur_downloadliste /> 
8    	  	</#list> 
9    	<#elseif selectSort?? && selectSort.getData() == "sort"> 
10	  		<#list downloadliste.getSiblings()?map(transformListItem)?sort_by("dateUnformated") as cur_downloadliste> 
11		        <@downloadListItem cur_downloadliste = cur_downloadliste /> 
12    	  	</#list> 
13		<#else>		 
14			<#list downloadliste.getSiblings()?map(transformListItem) as cur_downloadliste> 
15    			<@downloadListItem cur_downloadliste = cur_downloadliste /> 
16    	  	</#list> 
17    	</#if> 
18	</#if> 
19</ul> 
20 
21<#function transformListItem item> 
22		<#-- get fileType --> 
23	<#assign fileType = item.file.getData()?keep_after_last(".")?keep_before("/")?upper_case /> 
24	<#if fileType =="TIF" || fileType =="TIFF" || fileType =="EPS" || fileType =="RAW" || fileType =="BMP"> 
25		<#assign icon = "image" /> 
26	<#elseif fileType == "PDF"> 
27		<#assign icon = "pdf" /> 
28	<#elseif fileType == "DOC" || fileType == "DOCX"> 
29		<#assign icon = "doc" /> 
30	<#elseif fileType == "XLS" || fileType == "XLSX"> 
31		<#assign icon = "xls" /> 
32	<#elseif fileType == "PPT" || fileType == "PPTX"> 
33		<#assign icon = "ppt" /> 
34	<#elseif fileType == "ZIP"> 
35		<#assign icon = "zip" /> 
36	<#elseif fileType == "PNG"> 
37		<#assign icon = "png" /> 
38	<#elseif fileType == "GIF"> 
39		<#assign icon = "gif" /> 
40	<#elseif fileType == "JPG" || fileType == "JPEG"> 
41		<#assign icon = "jpg" /> 
42	<#else> 
43		<#assign icon = "empty" /> 
44	</#if> 
45	<#-- get fileSize --> 
46	<#assign counter = 0 /> 
47	<#list "${item.file.getData()}"?split("/") as x> 
48		<#if counter == 2> 
49			<#assign groupId = x?number /> 
50		</#if> 
51		<#if counter == 5> 
52			<#assign uuid = x?keep_before("?") /> 
53		</#if> 
54		<#assign counter = counter+1 /> 
55	</#list> 
56 
57	<#setting locale = "de_DE"> 
58	<#assign file = dlAppService.getFileEntryByUuidAndGroupId(uuid, groupId)> 
59	<#assign fileSizeKb = file.getSize()/1024 /> 
60	<#assign dateFormat = "dd.MM.yyyy" /> 
61	<#assign dateUnformat = "yyyyMMdd" /> 
62 
63	<#if item.setDate?? && item.setDate.getData()?? && item.setDate.getData() != ""> 
64	    <#assign dateData = getterUtil.getString(item.setDate.getData()) /> 
65		<#assign dateObj = dateUtil.parseDate("yyyy-MM-dd", dateData, locale) /> 
66	    <#assign date = dateUtil.getDate(dateObj, dateFormat, locale) /> 
67		<#assign dateUnformated = dateUtil.getDate(dateObj, dateUnformat, locale) /> 
68	<#else> 
69		<#assign date = dateUtil.getDate(file.getModifiedDate(), dateFormat, locale) /> 
70		<#assign dateUnformated = dateUtil.getDate(file.getModifiedDate(), dateUnformat, locale) /> 
71	</#if> 
72		 
73	<#if fileSizeKb gte 1000 > 
74		<#assign fileSize = (fileSizeKb/1000)?string["0.#"] /> 
75		<#assign unit = "MB" /> 
76	<#else> 
77		<#assign fileSize = fileSizeKb?round /> 
78		<#assign unit = "kB" /> 
79	</#if> 
80 
81	<#assign dateArchived = "" /> 
82	<#if item.archivedByFile?? && item.archivedByFile.getData()?? && item.archivedByFile.getData() != ""> 
83		<#assign counter = 0 /> 
84		<#list "${item.archivedByFile.getData()}"?split("/") as x> 
85			<#if counter == 2> 
86				<#assign groupId = x?number /> 
87			</#if> 
88		<#if counter == 5> 
89			<#assign uuid = x?keep_before("?") /> 
90		</#if> 
91			<#assign counter = counter+1 /> 
92		</#list> 
93 
94		<#assign archivedByFile = dlAppService.getFileEntryByUuidAndGroupId(uuid, groupId) /> 
95 
96		<#if item.setDateArchived?? && item.setDateArchived.getData()?? && item.setDateArchived.getData() != ""> 
97		    <#assign dateArchivedData = getterUtil.getString(item.setDateArchived.getData()) /> 
98			<#assign dateArchivedObj = dateUtil.parseDate("yyyy-MM-dd", dateArchivedData, locale) /> 
99	        <#assign dateArchived = dateUtil.getDate(dateArchivedObj, dateFormat, locale) /> 
100		<#else> 
101			<#assign dateArchived = dateUtil.getDate(archivedByFile.getModifiedDate(), dateFormat, locale) /> 
102		</#if> 
103 
104		<#return { 
105		"title": item.title, 
106		"description": item.description, 
107		"icon": icon, 
108		"file": item.file, 
109		"date": date, 
110		"fileType": fileType, 
111		"fileSize": fileSize, 
112		"unit": unit, 
113		"archivedByFile": item.archivedByFile, 
114		"archivedByName": item.archivedByName, 
115		"dateArchived": dateArchived, 
116		"dateUnformated": dateUnformated 
117	}> 
118	<#else> 
119		<#return { 
120		"title": item.title, 
121		"description": item.description, 
122		"icon": icon, 
123		"file": item.file, 
124		"date": date, 
125		"fileType": fileType, 
126		"fileSize": fileSize, 
127		"unit": unit, 
128		"dateUnformated": dateUnformated 
129		}> 
130	</#if> 
131</#function> 
132 
133<#macro downloadListItem cur_downloadliste> 
134	<li class="c-download-list__item l-row"> 
135   		<div class="c-download-list__content c-download-list__content--branded l-col l-col-12 l-col-md-4"> 
136   			<svg class="c-mrkp-icon c-download-list__icon" role="img" aria-hidden="true"> 
137   				<use xlink:href="#download2-file-${cur_downloadliste.icon}"></use> 
138   			</svg> 
139   			<div> 
140   				<h3 class="c-download-list__title">${cur_downloadliste.title.getData()}</h3> 
141   				<#if cur_downloadliste.description.getData()?? && cur_downloadliste.description.getData() != ""> 
142   					<div class="c-download-list__desc">${cur_downloadliste.description.getData()}</div> 
143   				</#if> 
144   			</div> 
145   		</div>					 
146   		<div class="c-download-list__meta l-col l-col-12 l-col-md-8"> 
147   			<#if cur_downloadliste.archivedByFile?? && cur_downloadliste.archivedByFile.getData()?? && cur_downloadliste.archivedByFile.getData() != ""> 
148   				<a class="c-tag c-tag--link c-download-list__tag-date c-tag--branded" href="${cur_downloadliste.archivedByFile.getData()}"> 
149   					<span class="c-tag__label">ersetzt 
150   					<#if cur_downloadliste.archivedByName?? && cur_downloadliste.archivedByName.getData()?? && cur_downloadliste.archivedByName.getData() != ""> 
151   						durch <strong>${cur_downloadliste.archivedByName.getData()}</strong> 
152   					</#if> 
153   					</span> 
154   				</a> 
155   			</#if> 
156   			<div class="c-tag c-download-list__tag-version" aria-label> 
157   				<span class="c-tag__label"> 
158   				<#if cur_downloadliste.archivedByFile?? && cur_downloadliste.archivedByFile.getData()?? && cur_downloadliste.archivedByFile.getData() != ""> 
159   					archiviert am: ${cur_downloadliste.dateArchived} - ${cur_downloadliste.fileType} (${cur_downloadliste.fileSize}${cur_downloadliste.unit})</span> 
160   				<#else> 
161   					<strong>Stand: </strong>${cur_downloadliste.date} - ${cur_downloadliste.fileType} (${cur_downloadliste.fileSize}${cur_downloadliste.unit}) 
162   				</span> 
163   				</#if> 
164   			</div> 
165   			<#if downloadLinkIcon?? && getterUtil.getBoolean(downloadLinkIcon.getData())> 
166   				<a href="${cur_downloadliste.file.getData()}" class="o-icon-link c-download-list__button"> 
167   					<svg class="o-icon-link__icon" role="img" aria-label="download-link"> 
168   						<use xlink:href="#download"></use> 
169   					</svg> 
170   					<span class="u-sr-only">Herunterladen</span> 
171   				</a> 
172   			<#else> 
173   				<a href="${cur_downloadliste.file.getData()}" class="o-text-link o-text-link--icon "> 
174   					<svg class="o-text-link--icon__icon" role="img" aria-label="download-link"> 
175	   					<use xlink:href="#wl-download"></use> 
176   					</svg> 
177    				Herunterladen 
178    			</a> 
179    		</#if> 
180    	</div> 
181    </li> 
182</#macro>