Publicador de Conteúdos e Mídias
Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing: ==> entry [in template "20157#20197#3683339" at line 50, column 33] ---- 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: ${entry.getTagNames()[0]} [in template "20157#20197#3683339" at line 50, column 31] ----
1<style>
2.title-default-mca{
3 color: #830000;
4 text-transform: uppercase;
5 font-size: 15px;
6 font-weight: bold;
7 margin: 0 0 10px 5px;
8}
9
10#publicador-${template_id} {
11 border: 5px solid #dedaad;
12 background-color: #fff;
13 padding: 8px;
14}
15#publicador-${template_id} a.link-todos{
16 font-size: 12px;
17 color: #816b00;
18 text-decoration: none;
19 background: #e3deb5;
20 font-weight: bold;
21 display: block;
22 padding: 3px 15px;
23}
24#publicador-${template_id} a.link-todos:hover{
25 background: #816b00;
26 color: #e3deb5;
27}
28#publicador-${template_id} .bloco-noticia {
29 display: block;
30 min-height: 120px;
31 border-bottom: dotted 1px #dcd694;
32 padding: 10px 0px;
33}
34#publicador-${template_id} .bloco-noticia > a{
35 margin-bottom: 10px;
36 display: block;
37 color: #816b00;
38 text-decoration: none;
39 font-weight: bold;
40 font-size: 13px;
41}
42#publicador-${template_id} img {
43 max-width: 82px;
44 margin-right: 10px;
45 float: left;
46}
47
48</style>
49
50<h3 class="title-default-mca">${entry.getTagNames()[0]}</h3>
51
52<div id="publicador-${template_id}">
53 <#if entries?has_content>
54 <#list entries as curEntry>
55 <div class="bloco-noticia">
56
57 <#if curEntry.getClassName() == "com.liferay.journal.model.JournalArticle">
58 <!-- JournalArticle -->
59 <#if curEntry.getAssetRenderer().getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValuesMap()["url"]?has_content>
60 <#assign urlObjeto = curEntry.getAssetRenderer().getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValuesMap()["url"]/>
61 <#assign imagemObjeto = urlObjeto[0].getNestedDDMFormFieldValuesMap()['imagem'] />
62 <#assign targetObjeto = urlObjeto[0].getNestedDDMFormFieldValuesMap()['target'] />
63
64 <#if imagemObjeto?has_content>
65 <div class="imagem-noticia">
66 <#if imagemObjeto[0].getValue().getString(locale)?has_content>
67 <img src="/documents/3680314/${jsonFactoryUtil.createJSONObject(imagemObjeto[0].getValue().getString(locale))['uuid']}"
68 alt="${jsonFactoryUtil.createJSONObject(imagemObjeto[0].getValue().getString(locale))['alt']}">
69 </#if>
70 </div>
71 </#if>
72 <a href="${urlObjeto[0].getValue().getString(locale)}" target="_blank">
73 ${curEntry.getTitle(locale)}
74 </a>
75
76 ${urlObjeto[0].getNestedDDMFormFieldValuesMap()['descricao'][0].getValue().getString(locale)}
77 <#else>
78 <span style="color: red;">Erro: Não insira Conteúdos Web com o marcador Destaques ou Avisos sem a estrutura correta (Estrutura - Publicação de Destaque/Aviso) </span>
79 </#if>
80 <#else>
81 <!-- BlogEntry -->
82 <#if curEntry.getAssetRenderer().getAssetObject().getSmallImageURL(themeDisplay)?has_content>
83 <div class="imagem-noticia">
84 <img src="${curEntry.getAssetRenderer().getAssetObject().getSmallImageURL(themeDisplay)}" />
85 </div>
86 </#if>
87
88 <a href="/web/mca/noticias/-/blogs/${curEntry.getAssetRenderer().getUrlTitle()}?_com_liferay_blogs_web_portlet_BlogsPortlet_redirect=https%3A%2F%2Fwww.mprj.mp.br%2Fweb%2Fmca%2Fhome%3Fp_p_id%3Dcom_liferay_blogs_web_portlet_BlogsPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26_com_liferay_blogs_web_portlet_BlogsPortlet_cur%3D1%26_com_liferay_blogs_web_portlet_BlogsPortlet_delta%3D20">
89 ${curEntry.getTitle(locale)}
90 </a>
91 <p>
92 ${curEntry.getSummary()}
93 </p>
94 </#if>
95 </div>
96 </#list>
97 </#if>
98
99 <a class="link-todos" href="/web/mca/home/todos-os-${entry.getTagNames()[0]}">Leia todos os ${entry.getTagNames()[0]}</a>
100</div>
Publicador de Conteúdos e Mídias
Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing: ==> entry [in template "20157#20197#3683339" at line 50, column 33] ---- 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: ${entry.getTagNames()[0]} [in template "20157#20197#3683339" at line 50, column 31] ----
1<style>
2.title-default-mca{
3 color: #830000;
4 text-transform: uppercase;
5 font-size: 15px;
6 font-weight: bold;
7 margin: 0 0 10px 5px;
8}
9
10#publicador-${template_id} {
11 border: 5px solid #dedaad;
12 background-color: #fff;
13 padding: 8px;
14}
15#publicador-${template_id} a.link-todos{
16 font-size: 12px;
17 color: #816b00;
18 text-decoration: none;
19 background: #e3deb5;
20 font-weight: bold;
21 display: block;
22 padding: 3px 15px;
23}
24#publicador-${template_id} a.link-todos:hover{
25 background: #816b00;
26 color: #e3deb5;
27}
28#publicador-${template_id} .bloco-noticia {
29 display: block;
30 min-height: 120px;
31 border-bottom: dotted 1px #dcd694;
32 padding: 10px 0px;
33}
34#publicador-${template_id} .bloco-noticia > a{
35 margin-bottom: 10px;
36 display: block;
37 color: #816b00;
38 text-decoration: none;
39 font-weight: bold;
40 font-size: 13px;
41}
42#publicador-${template_id} img {
43 max-width: 82px;
44 margin-right: 10px;
45 float: left;
46}
47
48</style>
49
50<h3 class="title-default-mca">${entry.getTagNames()[0]}</h3>
51
52<div id="publicador-${template_id}">
53 <#if entries?has_content>
54 <#list entries as curEntry>
55 <div class="bloco-noticia">
56
57 <#if curEntry.getClassName() == "com.liferay.journal.model.JournalArticle">
58 <!-- JournalArticle -->
59 <#if curEntry.getAssetRenderer().getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValuesMap()["url"]?has_content>
60 <#assign urlObjeto = curEntry.getAssetRenderer().getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValuesMap()["url"]/>
61 <#assign imagemObjeto = urlObjeto[0].getNestedDDMFormFieldValuesMap()['imagem'] />
62 <#assign targetObjeto = urlObjeto[0].getNestedDDMFormFieldValuesMap()['target'] />
63
64 <#if imagemObjeto?has_content>
65 <div class="imagem-noticia">
66 <#if imagemObjeto[0].getValue().getString(locale)?has_content>
67 <img src="/documents/3680314/${jsonFactoryUtil.createJSONObject(imagemObjeto[0].getValue().getString(locale))['uuid']}"
68 alt="${jsonFactoryUtil.createJSONObject(imagemObjeto[0].getValue().getString(locale))['alt']}">
69 </#if>
70 </div>
71 </#if>
72 <a href="${urlObjeto[0].getValue().getString(locale)}" target="_blank">
73 ${curEntry.getTitle(locale)}
74 </a>
75
76 ${urlObjeto[0].getNestedDDMFormFieldValuesMap()['descricao'][0].getValue().getString(locale)}
77 <#else>
78 <span style="color: red;">Erro: Não insira Conteúdos Web com o marcador Destaques ou Avisos sem a estrutura correta (Estrutura - Publicação de Destaque/Aviso) </span>
79 </#if>
80 <#else>
81 <!-- BlogEntry -->
82 <#if curEntry.getAssetRenderer().getAssetObject().getSmallImageURL(themeDisplay)?has_content>
83 <div class="imagem-noticia">
84 <img src="${curEntry.getAssetRenderer().getAssetObject().getSmallImageURL(themeDisplay)}" />
85 </div>
86 </#if>
87
88 <a href="/web/mca/noticias/-/blogs/${curEntry.getAssetRenderer().getUrlTitle()}?_com_liferay_blogs_web_portlet_BlogsPortlet_redirect=https%3A%2F%2Fwww.mprj.mp.br%2Fweb%2Fmca%2Fhome%3Fp_p_id%3Dcom_liferay_blogs_web_portlet_BlogsPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26_com_liferay_blogs_web_portlet_BlogsPortlet_cur%3D1%26_com_liferay_blogs_web_portlet_BlogsPortlet_delta%3D20">
89 ${curEntry.getTitle(locale)}
90 </a>
91 <p>
92 ${curEntry.getSummary()}
93 </p>
94 </#if>
95 </div>
96 </#list>
97 </#if>
98
99 <a class="link-todos" href="/web/mca/home/todos-os-${entry.getTagNames()[0]}">Leia todos os ${entry.getTagNames()[0]}</a>
100</div>