Deutschland-Index der Digitalisierung 2021
Fehler bei der Verarbeitung der Vorlage.
The following has evaluated to null or missing: ==> entry [in template "10154#10194#176903" at line 18, column 18] ---- Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign title = entry.getAssetRendere... [in template "10154#10194#176903" at line 18, column 1] ----
1<#-- Vorlage ist konfigurierbar -->
2<#-- teaser = true, Bild im Portraitformat 400x800 -->
3<#-- teaser = false, Bild im Teaserformat 800x400 -->
4<#assign teaser = true />
5
6<#assign imageLongSide = 800 />
7<#assign imageShortSide = 400 />
8
9<#if teaser>
10 <#assign imageWidth = imageLongSide/>
11 <#assign imageHeight = imageShortSide />
12<#else>
13 <#assign imageWidth = imageShortSide />
14 <#assign imageHeight = imageLongSide />
15</#if>
16
17
18<#assign title = entry.getAssetRenderer().getArticle().getTitle(locale) />
19<#assign summary = entry.getAssetRenderer().getSummary() />
20<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry)>
21<#assign viewInContextURL = entry.getAssetRenderer().getURLViewInContext(renderRequest, renderResponse, viewURL)>
22
23<#assign docXml = saxReaderUtil.read( entry.getAssetRenderer().getArticle().getContent()) />
24<#assign content = docXml.valueOf("//*[@language-id='de_DE']") />
25
26<#assign tagNames = entry.getTagNames() >
27<#assign categories = entry.getCategories() >
28
29<#assign isSmallImage = entry.getAssetRenderer().getArticle().isSmallImage() />
30<#assign smallImage = entry.getAssetRenderer().getArticle().getSmallImage() />
31<#assign smallImageId = entry.getAssetRenderer().getArticle().getSmallImageId() />
32<#assign urlTitle = entry.getAssetRenderer().getArticle().getUrlTitle() />
33
34<#attempt>
35 <#assign imgLicense = entry.getAssetRenderer().getArticle().getExpandoBridge().getAttribute("Lizenz") />
36<#recover>
37 <#assign imgLicense = "" >
38</#attempt>
39
40<#if isSmallImage>
41 <#assign imgPath="https://www.oeffentliche-it.de/image/image_gallery?img_id=${smallImageId}" />
42 <#assign imgWidth=imageWidth />
43 <#assign imgHeight=imageHeight />
44<#else>
45 <#assign imgPath ="https://www.oeffentliche-it.de/documents/10181/22611/square-oeffentliche-it.png" />
46 <#assign imgWidth=600 />
47 <#assign imgHeight=600 />
48</#if>
49
50<#attempt>
51 <#assign linkTo = "https://www.oeffentliche-it.de" + entry.getAssetRenderer().getArticle().getExpandoBridge().getAttribute("Link") />
52<#recover>
53 <#assign linkTo = "" >
54</#attempt>
55
56<#if linkTo == "" >
57 <#assign linkTo = "https://www.oeffentliche-it.de/-/" + urlTitle />
58</#if>
59
60<#assign text = htmlUtil.stripHtml(summary)?trim />
61
62<@liferay_util["html-top"] outputKey="html-top_opengraph" >
63<meta property="og:image" content='${imgPath}' >
64<meta property="og:image:width" content='${imgWidth}' />
65<meta property="og:image:height" content='${imgHeight}' />
66<meta property="og:title" content='${title}' />
67<meta property="og:description" content='${text}' />
68<meta property="og:locale" content="de_DE" />
69<meta property="og:type" content="article" />
70<meta property="article:tag" content='${tagNames?join(",")}' />
71<meta property="og:url" content='${linkTo}' />
72<meta property="article:section" content='Science' />
73<meta property="article:section" content='Technology' />
74
75<meta property="twitter:site" content='@OeffentlicheIT' />
76<!--
77<meta property="twitter:card" content='summary' />
78<meta property="twitter:description" content='${text}' />
79<meta property="twitter:title" content='${title}' />
80<meta property="twitter:image" content='${imgPath}' />
81-->
82</@>