Пресс-релизы
Первые семьи сотрудников «ТрансКонтейнера» получили выплаты в рамках проекта по повышению рождаемости
Во время обработки запрошенного шаблона произошла ошибка...
Java method "com.sun.proxy.$Proxy634.getArticle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy634 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@4a023536"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign article = articleService.getA... [in template "20116#20152#77302" at line 26, column 1] ----
1<#--
2 Web content templates are used to lay out the fields defined in a web
3 content structure.
4
5 Please use the left panel to quickly add commonly used variables.
6 Autocomplete is also available and can be invoked by typing "${".
7-->
8<#-- Retrieve the published date meta data field of the web content -->
9<#assign displaydate = .vars['reserved-article-display-date'].data>
10
11<#-- Save the original page locale for later -->
12<#assign originalLocale = .locale>
13
14<#-- Set the page locale to the portals default locale -->
15<#setting locale = localeUtil.getDefault()>
16
17<#-- Parse the date to a date object -->
18<#assign displaydate = displaydate?datetime("EEE, d MMM yyyy HH:mm:ss Z")>
19
20<#-- Set the page locale back to the original page locale -->
21<#assign locale = originalLocale>
22
23<#-- Get article source from custom fields -->
24<#assign journalArticleId = .vars['reserved-article-id'].data>
25<#assign articleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
26<#assign article = articleService.getArticle(groupId, journalArticleId)>
27<#assign articleSourceTitle = article.getExpandoBridge().getAttribute("ArticleSourceTitle")>
28<#assign articleSourceUrl = article.getExpandoBridge().getAttribute("ArticleSourceUrl")>
29
30<div class="event_detail">
31 <span class="event_detail__date"> ${displaydate?string["dd.MM.yyyy"]}
32 <#if articleSourceTitle?has_content>
33 <#if articleSourceUrl?has_content>
34 <a style="color: #117bcd" href=${articleSourceUrl} target="_blank">
35 ${articleSourceTitle}
36 </a>
37 <#else>
38 <span style="color: #117bcd">
39 ${articleSourceTitle}
40 </span>
41 </#if>
42 </#if>
43 </span>
44 <h1 class="event_detail__header"> ${.vars['reserved-article-title'].data} </h1>
45 <div class="event_detail__content"> ${content.getData()} </div>
46 <div class="event_detail__link"> <a class="event_detail__url" href="./"> <span class="event_detail__arrow"> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 17.1 6.6" style="enable-background:new 0 0 17.1 6.6;" xml:space="preserve"> <g id="Слой_1"> </g> <g id="Слой_2"> <polygon points="14.1,0 13.3,0.7 15.3,2.9 0,2.9 0,3.9 15.3,3.9 13.3,6 14.1,6.6 17.1,3.4 "/> </g> </svg> </span> Назад </a>
47 </div>
48</div>