- 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: ==> tjscNewsJournalArticle.getDisplayDate() [in template "10155#10193#942953" at line 41, column 45] ---- 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 = t... [in template "10155#10193#942953" at line 41, column 9] ----
1<link href="/o/tjsc-theme/js/libs/unitegallery/1.7.45/css/unitegallery.css" rel="stylesheet">
2<script src="/o/tjsc-theme/js/libs/unitegallery/1.7.45/js/unitegallery.min.js"></script>
3<script src="/o/tjsc-theme/js/libs/unitegallery/1.7.45/themes/tiles/ug-theme-tiles.js"></script>
4
5<#-- JavaScript (inline [inside portlet] - loaded all time!) -->
6<script>
7 Liferay.on("allPortletsReady", function(){
8 $(document).ready(function(){
9 var tjscNewsGalleryNode = $("#tjsc-news-gallery");
10
11 if ((tjscNewsGalleryNode.html()) && (tjscNewsGalleryNode.html().trim() != "")) {
12 var tjscNewsGalleryApi = tjscNewsGalleryNode.unitegallery({
13 gallery_theme: "tiles",
14 tiles_align: "left",
15 tiles_space_between_cols: 15,
16 tiles_enable_transition: false,
17 tile_enable_textpanel: true,
18 tile_textpanel_source: "title_and_desc",
19 tile_textpanel_appear_type: "fade",
20 textpanel_enable_title: false,
21 textpanel_enable_description: true,
22 lightbox_overlay_opacity: 0.8,
23 lightbox_top_panel_opacity: 1
24 });
25
26 Liferay.once("endNavigate", function(event){
27 tjscNewsGalleryApi.destroy();
28 });
29 }
30 });
31 });
32</script>
33
34<#assign
35 journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
36 timeZone = themeDisplay.getTimeZone()
37
38 tjscNewsJournalArticle = journalArticleLocalService.getArticle(groupId, .vars["reserved-article-id"].data)
39 tjscNewsImages = images.image.getSiblings()
40 tjscNewsJournalArticleDescription = htmlUtil.stripHtml(.vars["reserved-article-description"].data)
41 tjscNewsJournalArticleDisplayDate = tjscNewsJournalArticle.getDisplayDate()
42 tjscNewsJournalArticleSmallImageUrl = htmlUtil.escapeAttribute(.vars["reserved-article-small-image-url"].data)
43/>
44
45<#if tjscNewsJournalArticleDescription != "" >
46 <h3 class="tjsc-style-content-title-1 mt-0">${tjscNewsJournalArticleDescription}</h3>
47</#if>
48
49<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>
50
51<div class="mb-3">${content.getData()}</div>
52
53<div id="tjsc-news-gallery" class="mb-3" style="display: none;">
54 <#if tjscNewsJournalArticleSmallImageUrl != "" >
55 <img title="${languageUtil.get(locale, "small-image")}" alt="${htmlUtil.escapeAttribute(htmlUtil.stripHtml((tjscNewsJournalArticle.getExpandoBridge().getAttribute("tjscSmallImageDescription"))!""))}" src="${tjscNewsJournalArticleSmallImageUrl}" data-image="${tjscNewsJournalArticleSmallImageUrl}" />
56 </#if>
57
58 <#list tjscNewsImages as tjscNewsImage>
59 <#assign tjscNewsImageURL = tjscNewsImage.getData() />
60
61 <#if tjscNewsImageURL != "" >
62 <#assign tjscNewsImageURL = htmlUtil.escapeAttribute(tjscNewsImageURL) />
63
64 <img title="${htmlUtil.escapeAttribute(htmlUtil.stripHtml(tjscNewsImage.legend.getData()))}" alt="${htmlUtil.escapeAttribute(htmlUtil.stripHtml((tjscNewsImage.getAttribute("alt"))!""))}" src="${tjscNewsImageURL}" data-image="${tjscNewsImageURL}" />
65 </#if>
66 </#list>
67</div>
Nó: svmlx-liferay-08:8080