InfoFinland - Comentarios

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> 

A través del siguiente enlace puedes enviar comentarios sobre el sitio web InfoFinland. Tus comentarios nos ayudan a mejorar el servicio. No incluyas datos personales en tus comentarios.

El formulario de comentarios está disponible actualmente en finés, sueco e inglés.