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> 
Fehler bei der Verarbeitung der Vorlage.
Error on line 154, column 5 in 20155#20195#26386
DLAppServiceUtil.getFileEntryByUuidAndGroupId(imageFileUid,groupId) is undefined.
It cannot be assigned to Datei
1<#assign tlink = Link.Internal_Link.getFriendlyUrl()> 
2 
3<#if tlink?starts_with("http")> 
4    <#assign tlink = "/"+tlink?split("/")[3]> 
5</#if> 
6 
7<#assign tlink_text = "Mehr"> 
8 
9<#assign linktarget=""> 
10 
11<#if (Image.getData()!="")> 
12    <#assign imageExists="image-exists"> 
13<#else> 
14    <#assign imageExists="no-image"> 
15</#if> 
16 
17<#if (ImageMobile?has_content)> 
18    <#if (ImageMobile.getData()!="")> 
19        <#assign imageMobileExists="image-mobile-exists"> 
20    <#else> 
21        <#assign imageMobileExists="no-image-mobile"> 
22    </#if> 
23</#if> 
24 
25 
26<#if Link.External_Link.getData()!=""> 
27    <#assign tlink = Link.External_Link.getData()> 
28    <#assign linktarget="_blank"> 
29</#if> 
30 
31<#if tlink!=""> 
32    <#assign linkExists=true> 
33<#else> 
34    <#assign linkExists=false> 
35</#if> 
36 
37<#assign w1h1notext = ""> 
38<#if Height.getData() == "height1" && Text.getData() == ""> 
39    <#assign w1h1notext = "w1h1notext"> 
40</#if> 
41 
42 
43<#if Link.Link_Text.getData()!=""> 
44    <#assign tlink_text = Link.Link_Text.getData() > 
45</#if> 
46 
47<div class="teaser ${Height.getData()} ${w1h1notext}"> 
48<#if Subheadline.getData()!=""> 
49    <h2 class="spitzmarke">${Subheadline.getData()}</h2> 
50</#if> 
51 
52<#if getterUtil.getBoolean(Green_Line.getData())> 
53    <div class="green-line ${imageExists}"></div> 
54</#if> 
55 
56<#if (Image.getData()!="")> 
57    <div class="teaser-image"> 
58 
59        <#if (linkExists)> 
60            <a href="${tlink}" class="no-icon image-link" target="${linktarget}" alt="${tlink_text}"> 
61                <#if (ImageMobile?has_content) && (ImageMobile.getData()!="")> 
62                    <@createImageTag imageUrl="${Image.getData()}" imageMobileUrl="${ImageMobile.getData()}"/> 
63                    <#else> 
64                    <@createImageTag imageUrl="${Image.getData()}" imageMobileUrl=""/> 
65                </#if> 
66            </a> 
67        <#else> 
68 
69            <div class="image-link image-desktop"> 
70                <#if (ImageMobile?has_content) && (ImageMobile.getData()!="")> 
71                    <@createImageTag imageUrl="${Image.getData()}" imageMobileUrl="${ImageMobile.getData()}"/> 
72                <#else> 
73                    <@createImageTag imageUrl="${Image.getData()}" imageMobileUrl=""/> 
74                </#if> 
75            </div> 
76 
77        </#if> 
78 
79    </div> 
80</#if> 
81 
82 
83    <h1> 
84    <#if (linkExists)> 
85        <a href="${tlink}" class="no-icon" target="${linktarget}" alt="${Headline.getData()}" 
86           title="${Headline.getData()}">${Headline.getData()}</a> 
87    <#else> 
88    ${Headline.getData()} 
89    </#if> 
90    </h1> 
91 
92    <div class="teaser-content"> 
93    ${Text.getData()} 
94    </div> 
95 
96<#if (linkExists)> 
97    <a href="${tlink}" class="mehr-link" target="${linktarget}" alt="${Headline.getData()}" 
98       title="${Headline.getData()}">${tlink_text}</a> 
99</#if> 
100 
101 
102 
103<#if Zum_Herunterladen??> 
104 
105    <#if Zum_Herunterladen.PDF_Datei.getSiblings()?has_content> 
106        <#list  Zum_Herunterladen.PDF_Datei.getSiblings() as cur_Datei> 
107            <#if cur_Datei.getData()?has_content> 
108 
109                <#assign fileUrl = getterUtil.getString(cur_Datei.getData())> 
110                <#assign fileUid = stringUtil.extractLast(fileUrl, "/")> 
111 
112                <#assign DLAppServiceUtil = serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLAppService")> 
113                <#assign Datei = DLAppServiceUtil.getFileEntryByUuidAndGroupId(fileUid,groupId)> 
114 
115                <#if (Datei.getDescription()?has_content)> 
116                    <#assign dateiText=Datei.getDescription()> 
117                <#else> 
118                    <#assign dateiText=Datei.getTitle()> 
119                </#if> 
120 
121 
122                <a href="${fileUrl}" class="mehr-link download-link" target="_blank" alt="${dateiText}" 
123                   title="${dateiText}">${dateiText}</a><br/> 
124            </#if> 
125        </#list> 
126    </#if> 
127 
128</#if> 
129 
130</div> 
131 
132 
133<#macro createImageTag imageUrl imageMobileUrl> 
134 
135    <#assign altTag="alt-tag"> 
136    <#assign bildnachweis=""> 
137 
138    <#assign imageFileUid = stringUtil.extractLast(imageUrl, "/")> 
139 
140    <#if (stringUtil.extractFirst(imageFileUid, "t")??)> 
141        <#assign imageFileUid = stringUtil.extractFirst(imageFileUid, "t")/> 
142        <#assign imageFileUid= imageFileUid?substring(0,imageFileUid?length-1)/> 
143    </#if> 
144 
145 
146    <#assign dlimageFileEntryService = serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService")> 
147 
148    <#assign dlimageFileEntryTypeService = serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService")> 
149 
150 
151    <#assign dlFileVersionService = serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService")> 
152 
153    <#assign DLAppServiceUtil = serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLAppService")> 
154    <#assign Datei = DLAppServiceUtil.getFileEntryByUuidAndGroupId(imageFileUid,groupId)> 
155 
156 
157 
158 
159    <#assign imageFileEntry = dlimageFileEntryService.getDLFileEntryByUuidAndCompanyId(Datei.getUuid() , Datei.getCompanyId() ) /> 
160 
161 
162 
163 
164    <#assign imageFileEntryTypeId = imageFileEntry.getFileEntryTypeId() /> 
165 
166    <#if imageFileEntryTypeId gt 0 > 
167        <#assign imageFileEntryType = dlimageFileEntryTypeService.getDLFileEntryType(imageFileEntryTypeId) /> 
168        <#assign dlFileVersion = dlFileVersionService.getLatestFileVersion(imageFileEntry.getUserId(), imageFileEntry.getFileEntryId()) /> 
169        <#assign fieldsMap = imageFileEntry.getFieldsMap(dlFileVersion.getFileVersionId()) /> 
170 
171        <#list fieldsMap?keys as structureKey> 
172 
173            <#list fieldsMap[structureKey].iterator() as field> 
174 
175            <#--  ${field.getName()}=${field.getValue()}<br/> --> 
176 
177                <#if field.getName() == 'ALT_Tag'> 
178                    <#assign altTag = field.getValue() /> 
179                </#if> 
180 
181                <#if field.getName() == 'Bildnachweis'> 
182                    <#assign bildnachweis = field.getValue() /> 
183                </#if> 
184 
185            </#list> 
186 
187        </#list> 
188 
189 
190    </#if> 
191 
192    <#if (imageMobileUrl != "")> 
193    <img src="${imageUrl}" alt="${altTag}" title="${altTag}" class="image-desktop"/> 
194    <img src="${imageMobileUrl}" alt="${altTag}" title="${altTag}" class="image-mobile"/> 
195    <#else> 
196    <img src="${imageUrl}" alt="${altTag}" title="${altTag}" class=""/> 
197    </#if> 
198 
199 
200 
201</#macro> 

Teaser fehlt

Hier fehlt Teaser

Geörg mache bitte einen Vorschlag welcher Teaser hier hin soll. Lorem Ipsum Lorem Ipsum ist ein einfacher Demo-Text für die Print- und Schriftindustrie. Lorem Ipsum ist in der Industrie 

Mehr