- Poder Judiciário de Santa Catarina
Notícias da AJ
Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing: ==> .vars["reserved-article-display-date"] [in template "10155#10193#942953" at line 45, column 46] ---- Tip: It's the final [] step that caused this error, not those before it. ---- 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: tjscNewsJournalArticleDisplayDate = (... [in template "10155#10193#942953" at line 45, column 9] ----
1<#-- https://gsmblog.net/date-objects-liferay-freemarker-web-content-templates -->
2<#assign originalLocale = .locale />
3<#setting locale = locale />
4
5<link href="/o/tjsc-theme/js/libs/unitegallery/1.7.45/css/unitegallery.css" rel="stylesheet">
6<script src="/o/tjsc-theme/js/libs/unitegallery/1.7.45/js/unitegallery.min.js"></script>
7<script src="/o/tjsc-theme/js/libs/unitegallery/1.7.45/themes/tiles/ug-theme-tiles.js"></script>
8
9<#-- JavaScript (inline [inside portlet] - loaded all time!) -->
10<script>
11 Liferay.on("allPortletsReady", function(){
12 $(document).ready(function(){
13 var tjscNewsGalleryNode = $("#tjsc-news-gallery");
14
15 if ((tjscNewsGalleryNode.html()) && (tjscNewsGalleryNode.html().trim() != "")) {
16 var tjscNewsGalleryApi = tjscNewsGalleryNode.unitegallery({
17 gallery_theme: "tiles",
18 tiles_align: "left",
19 tiles_space_between_cols: 15,
20 tiles_enable_transition: false,
21 tile_enable_textpanel: true,
22 tile_textpanel_source: "title_and_desc",
23 tile_textpanel_appear_type: "fade",
24 textpanel_enable_title: false,
25 textpanel_enable_description: true,
26 lightbox_overlay_opacity: 0.8,
27 lightbox_top_panel_opacity: 1
28 });
29
30 Liferay.once("endNavigate", function(event){
31 tjscNewsGalleryApi.destroy();
32 });
33 }
34 });
35 });
36</script>
37
38<#assign
39 journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
40 timeZone = themeDisplay.getTimeZone()
41
42 tjscNewsJournalArticle = journalArticleLocalService.getArticle(groupId, .vars["reserved-article-id"].data)
43 tjscNewsImages = images.image.getSiblings()
44 tjscNewsJournalArticleDescription = htmlUtil.stripHtml(.vars["reserved-article-description"].data)
45 tjscNewsJournalArticleDisplayDate = (.vars["reserved-article-display-date"].data)?datetime["EEE, d MMM yyyy HH:mm:ss Z"]
46 tjscNewsJournalArticleSmallImageUrl = htmlUtil.escapeAttribute(.vars["reserved-article-small-image-url"].data)
47/>
48
49<#if tjscNewsJournalArticleDescription != "" >
50 <h3 class="tjsc-style-content-title-1 mt-0">${tjscNewsJournalArticleDescription}</h3>
51</#if>
52
53<p class="tjsc-asset-publisher-list-asset-entry-date-time text-lowercase">${dateUtil.getDate(tjscNewsJournalArticleDisplayDate, "dd MMMM yyyy | HH'h'mm'min'", locale, timeZone)}</p>
54
55<div class="mb-3">${content.getData()}</div>
56
57<div id="tjsc-news-gallery" class="mb-3" style="display: none;">
58 <#if tjscNewsJournalArticleSmallImageUrl != "" >
59 <img title="${languageUtil.get(locale, "small-image")}" alt="${htmlUtil.escapeAttribute(htmlUtil.stripHtml((tjscNewsJournalArticle.getExpandoBridge().getAttribute("tjscSmallImageDescription"))!""))}" src="${tjscNewsJournalArticleSmallImageUrl}" data-image="${tjscNewsJournalArticleSmallImageUrl}" />
60 </#if>
61
62 <#list tjscNewsImages as tjscNewsImage>
63 <#assign tjscNewsImageURL = tjscNewsImage.getData() />
64
65 <#if tjscNewsImageURL != "" >
66 <#assign tjscNewsImageURL = htmlUtil.escapeAttribute(tjscNewsImageURL) />
67
68 <img title="${htmlUtil.escapeAttribute(htmlUtil.stripHtml(tjscNewsImage.legend.getData()))}" alt="${htmlUtil.escapeAttribute(htmlUtil.stripHtml((tjscNewsImage.getAttribute("alt"))!""))}" src="${tjscNewsImageURL}" data-image="${tjscNewsImageURL}" />
69 </#if>
70 </#list>
71</div>
72
73<#setting locale = originalLocale />
Nó: svmlx-liferay-08:8080