Skip to Content
We only use cookies to record website visits. We do not store personal data.
By continuing, you agree to our cookie policy.
An error occurred while processing the template.
Expression assetRenderer_entry.getArticle is undefined on line 28, column 80 in 10157#10189#87027.
1<#-- 
2Application display templates can be used to modify the look of a 
3specific application. 
4 
5Please use the left panel to quickly add commonly used variables. 
6Autocomplete is also available and can be invoked by typing "${". 
7--> 
8<section class="gpi__tematicos-bg"> 
9<div class="gpi__tematicos"> 
10  <div class="gpi__title-section"> 
11  <#if locale =="pt_PT"> 
12    <h2> Diagnósticos GPI </h2> 
13	<p> O trabalho em rede permite garantir respostas integradas e mais próximas das crianças e suas famílias. </p> 
14   <#else> 
15	 <h2> GPI Diagnostics</h2> 
16	<p> Working in a network allows us to guarantee integrated responses that are more tailored to the needs of children and their families. </p> 
17   </#if> 
18  </div> 
19  <div class="gpi__cards-section"> 
20    <#if entries?has_content> 
21    <#assign count=0 /> 
22      <#assign assetVocabularyLocalService=staticUtil["com.liferay.portlet.asset.service.AssetVocabularyLocalServiceUtil"] assetCategoryLocalServiceUtil=staticUtil["com.liferay.portlet.asset.service.AssetCategoryLocalServiceUtil"] assetCategoryPropertyLocalServiceUtil=staticUtil["com.liferay.portlet.asset.service.AssetCategoryPropertyLocalServiceUtil"] orderByComparatorFactoryUtil=staticUtil["com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil"] vocEstatisticas=assetVocabularyLocalService.getGroupVocabulary(themeDisplay.getLayout().getGroupId(), "Temáticas" ) categoriesOrderBy=orderByComparatorFactoryUtil.create("AssetCategory", ["modifiedDate", false]) estatisticasCats=assetCategoryLocalServiceUtil.getVocabularyCategories(vocEstatisticas.getPrimaryKey(), 0, assetCategoryLocalServiceUtil.getVocabularyCategoriesCount(vocEstatisticas.getPrimaryKey()), categoriesOrderBy) sortEstatisticasCats=[] sortedEstatisticas=[] /> 
23 
24      <#list estatisticasCats as cat> 
25        <#assign sortEstatisticasCats=sortEstatisticasCats + [{"order": cat.getDescription(), "cat" : cat }]> 
26      </#list> 
27      <#list entries as curEntry> 
28        <#assign assetRenderer_entry=curEntry.getAssetRenderer() article_entry=assetRenderer_entry.getArticle() document_entry=saxReaderUtil.read(article_entry.getContent()) ordem_de_visualizacao=document_entry.valueOf("//dynamic-element[@name='ordem_de_visualizacao' ]/dynamic-content/text()") sortedEstatisticas=sortedEstatisticas + [{"order": ordem_de_visualizacao, "entry" : curEntry}] /> 
29      </#list> 
30      <div class="content__wrapper stats-content"> 
31        <section class="grid x-center"> 
32          <#list sortEstatisticasCats?sort_by("order") as cat> 
33            <#assign hasContent=false> 
34                <#assign border_color = "border__green"> 
35                <#assign link_bg_color = "bg__green"> 
36				<#if cat.cat.getTitle(locale) == "Diagnósticos GPI" ||cat.cat.getTitle(locale) == 
37				"GPI Diagnostics">	 
38              <h2 class="gpi__tematico-item-title"> 
39                ${cat.cat.getTitle(locale)} 
40                 
41              </h2> 
42              <div class="gpi__tematicos-container"> 
43                <#list sortedEstatisticas?sort_by("order") as curEntry> 
44                  <#assign assetRenderer=curEntry.entry.getAssetRenderer() entryCats=assetCategoryLocalServiceUtil.getCategories("com.liferay.portlet.journal.model.JournalArticle", assetRenderer.getClassPK()) hasCat=false /> 
45 
46                  <#list entryCats as c> 
47                    <#if c.getPrimaryKey()==cat.cat.getPrimaryKey()> 
48                      <#assign hasCat=true> 
49                        <#break> 
50                    </#if> 
51                  </#list> 
52 
53                  <#if hasCat> 
54                    <#assign article=assetRenderer.getArticle() document=saxReaderUtil.read(article.getContent()) rootElement=document.getRootElement() xPathSelectorMedida=saxReaderUtil.createXPath("dynamic-element[@name='Medida_informação_em_destaque' ]") medidas=xPathSelectorMedida.selectNodes(rootElement) viewURL="-/" + article.getUrlTitle() /> 
55 
56                    <article class="cards medidas ${border_color}"> 
57 
58                      <div class="dados"> 
59                        <h3 class="titulo">${article.getTitle(locale)}</h3> 
60                        <#if locale =="pt_PT"> 
61                            <p class="quantidade"></p> 
62                        <#else>  
63                            <p class="quantidade"></p> 
64                        </#if> 
65                      </div> 
66                      <div class="link">  
67                        <a href="${viewURL}" aria-label="${article.getTitle(locale)}"> 
68                          <div class="link ${link_bg_color}"> 
69                            <i class="icon_arrow_right"></i> 
70                          </div> 
71                        </a> 
72                      </div> 
73                    </article> 
74                  </#if> 
75                </#list> 
76              </div> 
77              <#assign count=count +1 /> 
78			 </#if> 
79          </#list> 
80    </#if> 
81  </div> 
82  </div> 
83</section>