InfoFinland - 开放数据
An error occurred while processing the template.
The following has evaluated to null or missing:
==> doc.selectSingleNode("/root/dynamic-element[@field-reference='heading']/dynamic-content[@language-id='fi_FI']") [in template "16843633765032#2862924#2589204" at line 12, column 25]
----
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 node = doc.selectSingleNode("... [in template "16843633765032#2862924#2589204" at line 12, column 9]
----
1<#assign localeFi = localeUtil.fromLanguageId("fi_FI") />
2<div>
3
4 <#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
5
6 <#if locale != localeFi>
7 <#assign groupId = (groupId!0) />
8 <#assign articleId = .vars["reserved-article-id"].data/>
9 <#assign ja = journalArticleLocalService.fetchLatestArticle(groupId, articleId, 0) />
10
11 <#assign doc = saxReaderUtil.read(ja.getContent()) />
12 <#assign node = doc.selectSingleNode("/root/dynamic-element[@field-reference='heading']/dynamic-content[@language-id='fi_FI']") />
13
14 <#assign fiTitle = node.getText() />
15 <#if !fiTitle?has_content>
16 <#assign fiTitle = themeDisplay.getLayout().getName(localeFi) />
17 </#if>
18 <span lang="fi" style="font-size: 14px; margin-left:1px;" class="block text-action mb-3 text-gray-darker">${fiTitle}</span>
19 </#if>
20 <#if (heading.getData())?? && heading.getData()?has_content>
21 <h1>${heading.getData()}</h1>
22 <#else>
23 <h1>${themeDisplay.getLayout().getName(locale)}</h1>
24 </#if>
25</div>
InfoFinland网站上的所有文字作品,无论什么语言,都可按照知识共享组织(Creative Commons)的署名4.0国际公共许可协议供您自由使用。 自由使用权不包含网站内的图片。
您可自由地:
分享—复制作品并可使用任何方式,以任何形式进行散布和传播
演绎—编排或改编作品,并在此基础上创作新作品,无论什么目的,亦可用于商业。
需满足下列条件:
署名(BY)—您必须标注内容来自InfoFinland.fi。提供InfoFinland网站的链接,并标注协议CC BY 4.0。如果对原内容进行了改编,应当标注。您可以合理地使用网站内容,但不可让他人误解为InfoFinland推荐您或您创作的内容。
禁止下游限制—您不可提出额外法律条款或增加任何技术限制,以阻止他人在许可允许范围内使用授权作品。
请注意,根据许可授予的使用权不适用于 InfoFinland.fi 网站上的图片和插图。
14.01.2026