Investigación
Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing: ==> viewURL [in template "10155#10193#7586726" at line 72, column 112] ---- 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: ${viewURL} [in template "10155#10193#7586726" at line 72, column 110] ----
1<#include "${fullTemplatesPath}/util/getPathForPlugins.ftl" />
2
3<#assign imgUpfPath = getPathForPlugins('upf','images','')?trim />
4
5<#if (entries?has_content) >
6<div class="fitxa_projecte_llistat">
7 <#--#set( $cont = 0 ) -->
8 <#list entries as entry >
9 <#assign renderer = entry.getAssetRenderer() />
10 <#assign className = renderer.getClassName() />
11 <#if (className == "com.liferay.journal.model.JournalArticle") >
12
13 <#assign journalArticle = renderer.getArticle() />
14 <#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(localeUtil.toLanguageId(locale))) />
15 <#assign rootElement = document.getRootElement() />
16
17
18 <div class="fitxa_projecte_llistat_item">
19
20 <#assign resum = "" />
21 <#assign existLink = false />
22 <#list rootElement.elements() as dynamicElement >
23
24 <#if ("Imagen" == dynamicElement.attributeValue("name") ) >
25 <#assign imagenData = dynamicElement.element("dynamic-content").getData() />
26 <#include "${fullTemplatesPath}/util/getImatgeUrl.ftl" />
27 <#assign imagen = getImatgeUrl(imagenData) />
28 </#if>
29 <#if ("Nombre" == dynamicElement.attributeValue("name") ) >
30 <#assign nom = dynamicElement.element("dynamic-content").getText() />
31 </#if>
32 <#if ("Resumen" == dynamicElement.attributeValue("name") ) >
33 <#assign resum = dynamicElement.element("dynamic-content").getText() />
34 <#if (resum?has_content) >
35 <#assign resum = stringUtil.shorten(resum, 250) />
36 <#if (resum?length == 250) >
37 <#assign resum = resum + "..." />
38 </#if>
39 </#if>
40 </#if>
41 <#if ("WebProyecto" == dynamicElement.attributeValue("name") ) >
42 <#assign link = dynamicElement.element("dynamic-content").getText() />
43 </#if>
44
45 </#list>
46
47 <#if (link??) && (link == "") >
48 <#--
49 Mirem si el link de visualització conté la partícula "asset_publisher",
50 en aquest cas, mantenim la url generada, sinó, afegim "/maximized"
51 -->
52
53 <#include "${fullTemplatesPath}/util/viewAdtURL.ftl" />
54 <@viewAdtURL entry=entry />
55 </#if>
56
57
58 <div class="row-fluid">
59 <div class="span3">
60 <#if (imagenData?has_content) >
61 <div style='background-image:url("${imagen}")' class="fitxa_projecte_llistat_logo"></div>
62 <#else>
63 <div style='background-image:url("/documents/10193/257031068/fitxa_projecte.png")' class="fitxa_projecte_llistat_logo"></div>
64 </#if>
65 </div>
66 <div class="span9 ">
67 <div class="lfr-meta-actions asset-actions">
68 <#-- plantilla de la url d'edició-->
69 <#include "${fullTemplatesPath}/util/viewEditButton.ftl" />
70 <@viewEditButton entry=entry />
71 </div>
72 <a class="viewLink" href='<#if link?? && (link != "")>${link}<#else>${viewURL}</#if> '><p class="fitxa_projecte_llistat_dato"><span class="nom">${nom}</span><br>${resum}</p></a>
73 </div>
74 </div>
75
76 </div> <#--# fitxa_projecte_llistat_item-->
77 </#if>
78 </#list>
79</div>
80</#if> <#--Final entries?has_content-->
81
82
83<style type="text/css">
84
85 .upf__edit-asset-button {
86 position: absolute;
87 right: 0;
88 margin-top: 1rem;
89}
90
91 .fitxa_projecte_llistat_item .row-fluid {
92 display: flex !important;
93 flex-wrap: wrap !important;
94 align-items: stretch !important;
95 margin-left: 0 !important;
96 }
97
98 .fitxa_projecte_llistat_item a:hover{
99 text-decoration: none;
100 }
101
102 .fitxa_projecte_llistat_item {
103 width: 100%;
104 margin: 0 0 10px 0;
105 box-sizing: content-box;
106 background-color: #eee;
107 z-index: 0;
108 cursor: pointer;
109 border: 1px solid #eee;
110 box-sizing: border-box;
111 }
112 .fitxa_projecte_llistat_item:hover {
113 background-color: #35342F;
114 border: 1px solid #35342F;
115 transition:all 0.1s ease 0s;
116 }
117 .fitxa_projecte_llistat_item:hover p, .fitxa_projecte_llistat_item:hover span {
118 color: #fff !important;
119 }
120 .fitxa_projecte_llistat_item:hover .fitxa_projecte_llistat_logo {
121 transform: scale(1.0, 1.0);
122 }
123 span.nom {
124 font-weight: bold;
125 text-transform: uppercase;
126 }
127 .fitxa_projecte_llistat_item .row-fluid [class*="span"] {
128 padding: 10px;
129 }
130
131
132 .safari.mac .fitxa_projecte_llistat_item .row-fluid .span9 {
133 margin-left: 10px !important;
134
135 }
136
137 .fitxa_projecte_llistat_item .span3 {
138 background-color: #fff;
139 }
140 .fitxa_projecte_llistat_logo {
141 background-position: center center;
142 background-image: url(${imgUpfPath}/fitxa-projecte.png);
143 background-repeat: no-repeat;
144 background-size: contain;
145 min-width: 80px;
146 min-height: 80px;
147 display: block;
148 margin: auto;
149 position: relative;
150 line-height: initial;
151 transform: scale(0.9, 0.9);
152 width: 100%;
153 height: 100%;
154 }
155 @media (max-width: 767px) {
156 p.fitxa_projecte_llistat_dato {
157 text-align: center;
158 }
159
160 }
161
162</style>
163
164<script type="text/javascript">
165 $(document).ready(function(){
166 $(".fitxa_projecte_llistat_item").click(function() {
167 window.location = $(this).find("a.viewLink").attr("href");
168 return false;
169 });
170 $(".fitxa_projecte_llistat_item .asset-actions a").on("click",function(e){
171 e.stopPropagation();
172 });
173
174 });
175
176</script>