A RuralCat ara
Agenda
Més jornades06
ABR
31
GEN
Agramunt | En línia
31
GEN
31
GEN
En línia
02 OCT
11 OCT
11 OCT
Formació a distància
Oficines virtuals

Notícies
Més notíciesPublicador de continguts
Vídeos jornades en línia
Més vídeosEnllaços directes
Reportatges
Més reportatgesArticles tècnics
Més articles
S'ha produït un error mentre es processava la plantilla.
The following has evaluated to null or missing: ==> xPathChildFieldContent.selectSingleNode(rootElement) [in template "20154#20194#15940778" at line 42, column 79] ---- 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 ARSEC_IMAGEPORTADAACCESS_FILE... [in template "20154#20194#15940778" at line 41, column 45] ----
1<#if entries?has_content>
2 <div class="row px-2">
3 <#list entries as entry>
4 <#if entry.getClassName()=='com.liferay.journal.model.JournalArticle'>
5 <#-- Journal Article -->
6 <#assign assetRenderer=entry.getAssetRenderer() />
7 <#assign article=assetRenderer.getArticle() />
8 <#assign articleStructure=article.getDDMStructure() />
9 <#assign articleStructureFields=articleStructure.getRootFieldNames() />
10 <#assign FORMAT_DATE=article.getCreateDate()?string("dd/MM/yyyy") />
11 <#assign document=saxReaderUtil.read(article.getContent()) />
12 <#assign rootElement=document.getRootElement() />
13 <!-- Creacion de la URL para el detalle -->
14 <#assign path=themeDisplay.siteGroup.getPathFriendlyURL(false, themeDisplay)
15 siteUrl=themeDisplay.siteGroup.getFriendlyURL() sitePathUrl=path+siteUrl
16 assetPublisherPortletId="MWF0CUsqbd3d" host=themeDisplay.siteGroup.getPathFriendlyURL(false, themeDisplay) />
17 <#assign ddmFormValuesReader=assetRenderer.getDDMFormValuesReader() />
18 <#assign ddmFormValues=ddmFormValuesReader.getDDMFormValues() />
19 <#assign sitioID=assetRenderer.getGroupId() urlTitle=article.getUrlTitle()
20 ArticleTecnicURL="${sitePathUrl}/article-tecnic/-/asset_publisher/${assetPublisherPortletId}/content/${urlTitle}/${sitioID}?_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_${assetPublisherPortletId}_assetEntryId=${entry.entryId}" />
21 <!-- FIN Creacion de la URL para el detalle -->
22 <#-- Fields -->
23 <#list articleStructureFields as field>
24 <#assign xPathSelectorDocument=saxReaderUtil.createXPath("dynamic-element
25 [@name='${field}'
26 ]") />
27 <#assign fieldElement=xPathSelectorDocument.selectSingleNode(rootElement) />
28 <#assign fieldContent=fieldElement.getStringValue() />
29 <#-- Accessing child elements of the group -->
30 <#if fieldElement.attribute("type").getValue()=="fieldset">
31 <#list fieldElement.elements() as groupElement>
32 <#assign childFieldName=groupElement.attribute("name").getValue() />
33 <#assign
34 childXPath="dynamic-element
35[@name='${field}']
36/dynamic-element
37[@name='${childFieldName}']
38/dynamic-content" />
39 <#assign xPathChildFieldContent=saxReaderUtil.createXPath(childXPath) />
40 <#if childFieldName=='ARSEC_IMAGEPORTADAACCESS_FILE'>
41 <#assign
42 ARSEC_IMAGEPORTADAACCESS_FILE=xPathChildFieldContent.selectSingleNode(rootElement).getStringValue() />
43 <#assign
44 jsonParser=staticUtil["com.liferay.portal.kernel.json.JSONFactoryUtil"]>
45 <#assign
46 jsonObject=jsonParser.createJSONObject(ARSEC_IMAGEPORTADAACCESS_FILE)>
47 <#if jsonObject.getString("url") !="">
48 <#assign FILE_IMAGE=jsonObject.getString("url")>
49 <#else>
50
51 <#assign FILE_IMAGE=themeDisplay.getPortalURL()
52 + "/c/document_library/get_file?uuid=" +
53 jsonObject.getString("uuid") + "&groupId=" +
54 jsonObject.getString("groupId") />
55 </#if>
56 <#elseif childFieldName=='ARSEC_IMAGEPORTADAACCESS_FILEFieldSetFieldSet'>
57 <#assign
58 grandChildXPath=saxReaderUtil.createXPath("dynamic-element
59 [@name='${field}'
60 ]
61 /dynamic-element
62 [@name='${childFieldName}' ]") />
63 <#list grandChildXPath.selectSingleNode(rootElement).elements()
64 as groupElementChild>
65 <#assign
66 childFieldName2=groupElementChild.attribute("name").getValue() />
67 <#assign
68 childXPath2="dynamic-element[@name='${field}']/dynamic-element[@name='${childFieldName}']
69/dynamic-element[@name='${childFieldName2}']/dynamic-content" />
70 <#assign
71 xPathChildFieldContent2=saxReaderUtil.createXPath(childXPath) />
72 <#if childFieldName2=='ARSEC_IMAGE_LANGPORTADAALT'>
73 <#assign
74 ARSEC_IMAGE_LANGPORTADAALT=grandChildXPath.selectSingleNode(rootElement).getStringValue()?trim />
75 </#if>
76 </#list>
77 </#if>
78 </#list>
79 </#if>
80 <#if field=='ARSEC_MODULE_LANGTITLE'>
81 <#assign ARSEC_MODULE_LANGTITLE=fieldContent?trim />
82 </#if>
83 <!-- Si el contenido no tiene rellenado el alt, se le asigna el titulo -->
84 <#if !ARSEC_IMAGE_LANGPORTADAALT??>
85 <#assign ARSEC_IMAGE_LANGPORTADAALT=ARSEC_MODULE_LANGTITLE />
86 </#if>
87 </#list>
88 <div class=" col-md-6 oficina_fertilizacio_noticia_container movil_width_100">
89 <div class="oficina_fertilizacio_noticia_container_in">
90 <a href="${ArticleTecnicURL}" title="${ARSEC_MODULE_LANGTITLE}">
91 <div class="oficina_fertilizacio_noticia_image_container">
92 <img src="${FILE_IMAGE}" class="oficina_fertilizacio_noticia_image"
93 target="_blank" alt="${ARSEC_IMAGE_LANGPORTADAALT}">
94 </div>
95 </a>
96 <div class="oficina_fertilizacio_noticia_titulo">
97 <a href="${ArticleTecnicURL}">
98 <i>
99 ${ARSEC_MODULE_LANGTITLE}
100 </i>
101 </a>
102 </div>
103 <div class="oficina_fertilizacio_noticia_titulo_separador"></div>
104 <div class="oficina_fertilizacio_noticia_pie">
105 <span><i class="far fa-clock"></i></span>
106 <span style="text-transform: capitalize">
107 ${FORMAT_DATE}
108 </span>
109 </div>
110 </div>
111 </div>
112 </#if>
113 </#list>
114 </div>
115</#if>
116<!-- style>
117.oficina_fertilizacio_noticia_container {
118 float: left;
119 flex: 0 0 calc(3 / 12* 100%);
120 padding: 0px 5px 15px 5px;
121 display: flex;
122}
123@media only screen and (max-width: 600px) {
124 .movil_width_100 {
125 width: 100%;
126 }
127}
128.oficina_fertilizacio_noticia_container_in{
129 width: 100%;
130 /*border-bottom: 1px solid #ddd;*/
131 padding-bottom: 0px;
132}
133.oficina_fertilizacio_noticia_image_container{
134 width: 100%;
135 position: relative;
136 overflow: hidden;
137 background-color:white;
138 width: 100%;
139}
140.oficina_fertilizacio_noticia_image{
141 width: 100%;
142 transition: all .4s ease;
143 -webkit-transition: all .4s ease;
144}
145.oficina_fertilizacio_noticia_image:hover{
146 transform: scale(1.1);
147 opacity: 0.8;
148}
149.infografia_imagen_container{
150 height: 0px;
151 padding-bottom: 70%;
152 width: 100%;
153 position: relative;
154 overflow: hidden;
155}
156.oficina_fertilizacio_noticia_titulo{
157 text-transform: none;
158 margin: 6px 0;
159 font-size: 13px;
160 width: 100%;
161 text-align: left;
162 line-height: 20px;
163 text-overflow:ellipsis;
164 display:block;
165 height:75px;
166 overflow:hidden;
167}
168.oficina_fertilizacio_noticia_titulo a{
169 text-decoration: none;
170 color: #333;;
171 transition: all .2s ease;
172 font-weight: normal;
173 -webkit-transition: all .2s ease;
174}
175.oficina_fertilizacio_noticia_titulo a:hover{
176 text-decoration: underline !important;
177 color: #333;
178}
179.oficina_fertilizacio_noticia_titulo_separador{
180 opacity: 0.12;
181 position: relative;
182 bottom: 0;
183 width: 40px;
184 border-top: 1px solid;
185 left: 50%;
186 transform: translateX(-50%);
187 -webkit-transform: translateX(-50%);
188 display: none;
189}
190.oficina_fertilizacio_noticia_subtitulo{
191 font-size: 13px;
192 margin: 10px 0px;
193 width: 100%;
194 text-align: center;
195}
196.oficina_fertilizacio_noticia_pie{
197 margin-bottom: 0.4em;
198 text-align: left;
199 color: #6f6f6f;
200 font-size: 0.9em;
201 font-family: "OpenSansRegular", Helvetica, Arial, sans-serif;
202 border-bottom: 1px solid #D7D3D3;
203 width: 100%;
204}
205.oficina_fertilizacio_noticia_titulo_nom{
206 text-transform: uppercase;
207 color: #ff4865;
208 font-weight: bold;
209}
210</style -->