Início - Trabalho Infantil CSJT
Portlet está temporariamente indisponível.
Portlet está temporariamente indisponível.
Portlet está temporariamente indisponível.
Portlet está temporariamente indisponível.
Portlet está temporariamente indisponível.
Portlet está temporariamente indisponível.
Portlet está temporariamente indisponível.
Portlet está temporariamente indisponível.
Portlet está temporariamente indisponível.
Portlet está temporariamente indisponível.
Portlet está temporariamente indisponível.
Portlet está temporariamente indisponível.
Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing: ==> curEntry.getAssetRenderer() [in template "10132#10165#25690176" at line 6, column 38] ---- 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 assetRenderer = curEntry.getA... [in template "10132#10165#25690176" at line 6, column 13] ----
1<#-- https://docs.liferay.com/portal/7.0/javadocs/portal-kernel/com/liferay/asset/kernel/model/AssetRenderer.html -->
2
3<div class="noticia noticias-lista">
4 <#if entries?has_content>
5 <#list entries as curEntry>
6 <#assign assetRenderer = curEntry.getAssetRenderer() />
7 <#assign journalArticle = assetRenderer.getArticle() />
8 <#assign docXml = saxReaderUtil.read(journalArticle.getContent()) />
9
10 <#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) />
11 <#assign targetViewUrl = "web/guest/noticias" />
12 <#assign targetPortletID = "89Dk" />
13 <#assign viewURL = "/${targetViewUrl}/-/asset_publisher/${targetPortletID}/content/id/${curEntry.getEntryId()}" />
14 <#assign GroupLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService")>
15 <#assign entryGroupUrl = GroupLocalService.getGroup(curEntry.getGroupId()).getDisplayURL(themeDisplay) />
16 <#assign urltitle = assetRenderer.getUrlTitle() />
17 <#assign viewURL = "${entryGroupUrl}/-/${urltitle}" />
18
19 <#assign xmlValue = docXml.valueOf("//dynamic-element[@name='imagem_destaque']/dynamic-content[@language-id='pt_BR']/text()") />
20 <#assign urlThumb = "" />
21 <#if xmlValue?has_content>
22 <#assign imgJson = jsonFactoryUtil.createJSONObject(xmlValue)>
23 <#assign urlThumb = getArticleDLEntryUrl(imgJson) />
24 </#if>
25
26 <#if !urlThumb?has_content>
27 <#assign urlThumb = assetRenderer.getThumbnailPath(renderRequest)!"" />
28 </#if>
29 <div class="abstract-wrapper">
30 <div class="asset-abstract d-flex flex-column">
31 <div class="lfr-meta-actions asset-actions">
32 <@getEditIcon />
33 </div>
34
35 <h3 class="asset-title">
36 <a
37 data-senna-off="true"
38 href="${viewURL}"
39 >
40 ${curEntry.getTitle(locale)}
41 </a>
42 </h3>
43
44 <div class="asset-content">
45 <div class="asset-summary">
46 <#if urlThumb?has_content>
47 <div class="asset-small-image">
48 <a
49 data-senna-off="true"
50 href="${viewURL}"
51 >
52 <img alt="${curEntry.getTitle(locale)}" class="asset-small-image" src="${urlThumb?replace(' ', '%20')}"/>
53 </a>
54 </div>
55 </#if>
56 ${curEntry.getSummary(locale)}
57 </div>
58<!--
59 <div class="asset-more">
60 <a
61 href="${viewURL}"
62 data-senna-off="true"
63 >
64 Ler mais
65 <span class="hide-accessible">sobre ${curEntry.getTitle(locale)}</span>
66 »
67 </a>
68 </div>
69-->
70 </div>
71
72 <div class="asset-metadata">
73 <div class="row align-items-center m-0">
74 <#if metadataFields?contains("create-date") || metadataFields?contains("publish-date")>
75 <div class="col-auto column help-block publish-date pl-0">
76 <div class="column-content help-block-content ">
77 <dt class="label">Data de publicação</dt>
78 <dd class="metadata-entry metadata-publish-date">${curEntry.getPublishDate()?date}</dd>
79 </div>
80 </div>
81 <#if metadataFields?contains("view-count")>
82 <span class="vertical-separator"><!-- --></span>
83 </#if>
84 </#if>
85 <#if metadataFields?contains("view-count")>
86 <div class="col-auto column help-block view-count">
87 <div class="column-content help-block-content ">
88 <dt class="label">Número de visualizações</dt>
89 <dd class="metadata-entry metadata-view-count">${curEntry.getViewCount()} <@liferay.language key="views" /></dd>
90 </div>
91 </div>
92 </#if>
93 </div>
94 </div>
95 </div>
96 </div>
97 </#list>
98 </#if>
99</div>
100
101<#macro getEditIcon>
102 <#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())>
103 <#assign redirectURL = renderResponse.createRenderURL() />
104
105 ${redirectURL.setParameter("mvcPath", "/add_asset_redirect.jsp")}
106 ${redirectURL.setWindowState("pop_up")}
107
108 <#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" />
109
110 <#if validator.isNotNull(editPortletURL)>
111 <#assign title = languageUtil.format(locale, "edit-x", entryTitle, false) />
112
113 <@liferay_ui["icon"]
114 cssClass="icon-monospaced visible-interaction"
115 icon="pencil"
116 markupView="lexicon"
117 message=title
118 url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});"
119 />
120 </#if>
121 </#if>
122</#macro>
123
124
125<#-- Retonar a URL da imagem completa -->
126<#function getArticleDLEntryUrl xmlValue>
127 <#local docUrl = "/documents/" />
128
129 <#if xmlValue?has_content && xmlValue.fileEntryId??>
130 <#local docUrl = docUrl + xmlValue.groupId + "/" />
131 <#local docUrl = docUrl + xmlValue.fileEntryId + "/" />
132 <#local docUrl = docUrl + xmlValue.title + "/" />
133 <#local docUrl = docUrl + xmlValue.uuid />
134 <#else>
135 <#local docUrl = "" />
136 </#if>
137
138 <#return docUrl />
139</#function>
—
5 Itens por página
Portlet está temporariamente indisponível.