Fehler bei der Verarbeitung der Vorlage.
Error on line 271, column 5 in 20155#20195#26416
DLAppServiceUtil.getFileEntryByUuidAndGroupId(imageFileUid,groupId) is undefined.
It cannot be assigned to Datei
1<#assign groupService = serviceLocator.findService("com.liferay.portal.service.GroupLocalService") /> 
2 
3<#assign groupObj = groupService.getGroup(groupId) /> 
4<#assign groupName = groupObj.getDescriptiveName(locale) /> 
5 
6<#assign layoutSet = groupObj.getPublicLayoutSet() /> 
7<#assign hostname = layoutSet.getVirtualHostname()/> 
8 
9<div class="print-header"> 
10${groupName} - https://${hostname} 
11</div> 
12 
13 
14<div class="artikel"> 
15 
16<#if Spitzmarke.getData()!=""> 
17    <h2 class="spitzmarke">${Spitzmarke.getData()}</h2> 
18</#if> 
19 
20 
21    <div class="green-line"></div> 
22 
23 
24    <h1>${Ueberschrift.getData()}</h1> 
25 
26<#if Bild_mit_Bildunterschrift??> 
27 
28    <#if Bild_mit_Bildunterschrift.getSiblings()?has_content> 
29 
30        <#if (Bild_mit_Bildunterschrift.getSiblings()?size>1)> 
31            <@imageTextSlider/> 
32        <#else/> 
33 
34            <#list Bild_mit_Bildunterschrift.getSiblings() as cur_Bild> 
35                <#if cur_Bild.Bild.getData()?has_content> 
36                    <div class="teaser-image no-carousel"> 
37                        <@createImageTag imageUrl="${cur_Bild.Bild.getData()}" bildunterschrift="${cur_Bild.Bildunterschrift.getData()}"/> 
38                    </div> 
39                </#if> 
40            </#list> 
41 
42        </#if> 
43 
44    </#if> 
45</#if> 
46 
47 
48    <div class="teaser-content"> 
49 
50    ${Inhalt.getData()} 
51 
52 
53 
54    <#assign layoutService = serviceLocator.findService("com.liferay.portal.service.LayoutLocalService") /> 
55 
56    <#if (Weitere_Informationen.getSiblings()?has_content)  && 
57    (Weitere_Informationen.getSiblings()?size>0) && 
58    ((Weitere_Informationen.getSiblings()[0].Linktext.getData()?has_content) || 
59    (Weitere_Informationen.getSiblings()[0].Interner_Link.getFriendlyUrl()?has_content)) > 
60 
61    <#--  checkbox means now: Schriftzug_Weitere_Informationen_ausblenden --> 
62        <#if Schriftzug_Weitere_Informationen_anzeigen?? && getterUtil.getBoolean(Schriftzug_Weitere_Informationen_anzeigen.getData())> 
63 
64        <#else> 
65            <h2>Weitere Informationen</h2> 
66 
67        </#if> 
68 
69 
70        <#if (Weitere_Informationen_reverse??) && getterUtil.getBoolean(Weitere_Informationen_reverse.getData())> 
71            <#assign weitereInformationenListe=Weitere_Informationen.getSiblings()?reverse/> 
72        <#else> 
73            <#assign weitereInformationenListe=Weitere_Informationen.getSiblings()/> 
74        </#if> 
75 
76 
77 
78        <#list weitereInformationenListe as cur_Weitere_Informationen> 
79 
80            <#assign tlink=""/> 
81 
82        <#-- if internal link, use page name as default link text --> 
83            <#if (cur_Weitere_Informationen.Interner_Link??) && 
84            (cur_Weitere_Informationen.Interner_Link.getFriendlyUrl()?has_content)> 
85 
86                <#assign tlink = cur_Weitere_Informationen.Interner_Link.getFriendlyUrl()> 
87 
88            <#-- always use relative URL --> 
89                <#if tlink?starts_with("http")> 
90                    <#assign tlink = "/"+tlink?split("/")[3]> 
91                </#if> 
92 
93            <#-- page might have been deleted --> 
94                <#assign tlink_text=""> 
95 
96 
97                <#if (layoutService.fetchLayoutByFriendlyURL( getterUtil.getLong(groupId), getterUtil.getBoolean(false), tlink)??)> 
98 
99                    <#assign layout = layoutService.fetchLayoutByFriendlyURL( getterUtil.getLong(groupId), getterUtil.getBoolean(false), tlink) /> 
100 
101                    <#assign tlink_text = layout.getName(locale)/> 
102 
103                </#if> 
104 
105            </#if> 
106 
107        <#-- overwrite linktext, if editor has set it manually --> 
108            <#if (cur_Weitere_Informationen.Linktext.getData()?has_content)> 
109                <#assign tlink_text = cur_Weitere_Informationen.Linktext.getData()> 
110            </#if> 
111 
112            <#assign linktarget=""> 
113 
114            <#if ! tlink?has_content> 
115                <#assign tlink = cur_Weitere_Informationen.Externer_Link.getData()> 
116                <#assign linktarget="_blank"> 
117            </#if> 
118 
119 
120 
121            <div class="weiterer-link"> 
122 
123                <a class="mehr-link" href="${tlink}" target="${linktarget}" alt="${tlink_text}" 
124                   title="${tlink_text}">${tlink_text}</a> 
125 
126            </div> 
127 
128 
129        </#list> 
130 
131 
132    </#if> 
133 
134    <#if Zum_Herunterladen??> 
135 
136        <#if (Zum_Herunterladen.PDF_Datei.getSiblings()?has_content) && 
137        (Zum_Herunterladen.PDF_Datei.getSiblings()?size>0) && 
138        (Zum_Herunterladen.PDF_Datei.getSiblings()[0].getData()?has_content)> 
139 
140 
141 
142            <h2>Zum Herunterladen</h2> 
143 
144            <#list  Zum_Herunterladen.PDF_Datei.getSiblings() as cur_Datei> 
145                <#if cur_Datei.getData()?has_content> 
146 
147                    <#assign fileUrl = getterUtil.getString(cur_Datei.getData())> 
148                    <#assign fileUid = stringUtil.extractLast(fileUrl, "/")> 
149 
150                    <#assign DLAppServiceUtil = serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLAppService")> 
151                    <#assign Datei = DLAppServiceUtil.getFileEntryByUuidAndGroupId(fileUid,groupId)> 
152 
153                    <#if (Datei.getDescription()?has_content)> 
154                        <#assign dateiText=Datei.getDescription()> 
155                    <#else> 
156                        <#assign dateiText=Datei.getTitle()> 
157                    </#if> 
158 
159                    <div class="weiterer-link"> 
160                        <a href="${fileUrl}" target="_blank" alt="${dateiText}" 
161                           title="${dateiText}">${dateiText}</a><br/> 
162                    </div> 
163 
164                </#if> 
165            </#list> 
166        </#if> 
167 
168    </#if> 
169 
170 
171    </div> 
172 
173</div> 
174 
175 
176 
177 
178<#-- image text slider --> 
179 
180 
181 
182 
183<#macro imageTextSlider> 
184 
185<div id="image-text-slider"> 
186 
187    <script type="text/javascript" charset="utf-8"> 
188        AUI().ready('aui-carousel', function (A) { 
189 
190            var component = new A.Carousel( 
191
192                        intervalTime: 7, 
193                        contentBox: '#myCarousel', 
194                        activeIndex: 0, 
195                        height: 360 
196
197
198                    .render(); 
199 
200            var prevButtons = document.getElementsByClassName('mycarousel-prev'); 
201            var nextButtons = document.getElementsByClassName('mycarousel-next'); 
202            for (var i = 0; i < prevButtons.length; i++) { 
203                prevButtons[i].addEventListener('click', function () { 
204                    component.prev(); 
205                }); 
206
207            for (var i = 0; i < nextButtons.length; i++) { 
208                nextButtons[i].addEventListener('click', function () { 
209                    component.next(); 
210                }); 
211
212            document.getElementById('myCarousel').style.display = 'block'; 
213 
214        }); 
215    </script> 
216 
217    <div id="myCarousel"> 
218 
219 
220        <#if Bild_mit_Bildunterschrift.getSiblings()?has_content> 
221            <#list Bild_mit_Bildunterschrift.getSiblings() as cur_images> 
222 
223                <div class="carousel-item carousel-item-${cur_images_index}"> 
224 
225                    <div class="teaser-image"> 
226                        <@createImageTag imageUrl="${cur_images.Bild.getData()}" bildunterschrift="${cur_images.Bildunterschrift.getData()}"/> 
227 
228                    </div> 
229 
230                </div> 
231                <!-- carousel-item --> 
232 
233            </#list> 
234        </#if> 
235 
236 
237    </div> 
238    <!-- myCarousel --> 
239 
240</div>     <!-- myCarouselContainer --> 
241 
242</#macro> 
243 
244 
245 
246 
247<#macro createImageTag imageUrl bildunterschrift> 
248 
249    <#assign altTag="alt-tag"> 
250    <#assign bildnachweis=""> 
251 
252    <#assign imageFileUid = stringUtil.extractLast(imageUrl, "/")> 
253 
254    <#if (stringUtil.extractFirst(imageFileUid, "t")??)> 
255 
256        <#assign imageFileUid = stringUtil.extractFirst(imageFileUid, "t")/> 
257        <#assign imageFileUid= imageFileUid?substring(0,imageFileUid?length-1)/> 
258 
259 
260    </#if> 
261 
262 
263    <#assign dlimageFileEntryService = serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService")> 
264 
265    <#assign dlimageFileEntryTypeService = serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService")> 
266 
267 
268    <#assign dlFileVersionService = serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService")> 
269 
270    <#assign DLAppServiceUtil = serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLAppService")> 
271    <#assign Datei = DLAppServiceUtil.getFileEntryByUuidAndGroupId(imageFileUid,groupId)> 
272 
273 
274 
275 
276    <#assign imageFileEntry = dlimageFileEntryService.getDLFileEntryByUuidAndCompanyId(Datei.getUuid() , Datei.getCompanyId() ) /> 
277 
278 
279 
280 
281    <#assign imageFileEntryTypeId = imageFileEntry.getFileEntryTypeId() /> 
282 
283    <#if imageFileEntryTypeId gt 0 > 
284        <#assign imageFileEntryType = dlimageFileEntryTypeService.getDLFileEntryType(imageFileEntryTypeId) /> 
285        <#assign dlFileVersion = dlFileVersionService.getLatestFileVersion(imageFileEntry.getUserId(), imageFileEntry.getFileEntryId()) /> 
286        <#assign fieldsMap = imageFileEntry.getFieldsMap(dlFileVersion.getFileVersionId()) /> 
287 
288        <#list fieldsMap?keys as structureKey> 
289 
290            <#list fieldsMap[structureKey].iterator() as field> 
291 
292            <#--  ${field.getName()}=${field.getValue()}<br/> --> 
293 
294                <#if field.getName() == 'ALT_Tag'> 
295                    <#assign altTag = field.getValue() /> 
296                </#if> 
297 
298                <#if field.getName() == 'Bildnachweis'> 
299                    <#assign bildnachweis = field.getValue() /> 
300                </#if> 
301 
302            </#list> 
303 
304        </#list> 
305 
306 
307    </#if> 
308 
309<div class="teaser-image-wrapper"> 
310    <img src="${imageUrl}" alt="${altTag}" title="${altTag}"/> 
311    <a href="#" class="btn btn-default btn-prev mycarousel-prev" ><span class="icon icon-chevron-left"></span></a> 
312    <a href="#" class="btn btn-default btn-next mycarousel-next" ><span class="icon icon-chevron-right"></span></a> 
313</div> 
314 
315<div class="bildunterschrift">${bildunterschrift}</div> 
316<div class="bildnachweis">Quelle: ${bildnachweis}</div> 
317 
318</#macro>