Atrás

20171128_EntrevistaRealidadVirtual

Se ha producido un error al procesar la plantilla.
Error on line 182, column 5 in 20201#20241#54382693
assetCatLSU.getAssetCategory(num?string?number) is undefined.
It cannot be assigned to assetCategory
1<style> 
2 
3.portlet-asset-publisher .lfr-meta-actions { 
4	float: none; 
5
6 
7.lfr-discussion { 
8    margin-top: 27px; 
9
10 
11.user-profile-image { 
12    text-align: left !important; 
13
14.taglib-header { 
15    display: none; 
16
17 
18.taglib-social-bookmarks { 
19    display: none; 
20
21 
22.lfr-discussion-posted-on { 
23    position: absolute; 
24    top: 28px; 
25    left: 70px; 
26
27 
28.lfr-discussion-body { 
29    float: none !important; 
30    margin-left: 0px !important; 
31    width: 100% !important; 
32
33 
34.aui [class*="span"]{ 
35    float: none !important; 
36
37 
38.postContent a{ 
39    color:#a8b600; 
40
41 
42 
43.user-name { 
44    position: absolute; 
45    top: 10px; 
46    left: 69px; 
47    color: #a8b600; 
48    text-decoration: none !important; 
49
50 
51@media (min-width: 979px) { 
52    .postContent, .taglib-discussion{ 
53        position: relative; 
54
55
56 
57@media (max-width: 979px) { 
58    .postContent, .taglib-discussion{ 
59        position: relative; 
60
61    .cabPost h1 { 
62        text-align:center; 
63
64
65 
66.cabPost { 
67    position: relative; 
68
69 
70.cabPost img { 
71    min-width: 100%; 
72    max-height: 600px; 
73    display:none; 
74
75 
76.cabPost h1 { 
77    /*position: absolute;*/ 
78    bottom: 15%; 
79    /*width: 86%; 
80    margin-left: 7%;*/ 
81    margin-right: 7%; 
82    /*color: #FFF;*/ 
83
84.cabPost .subtituloPost { 
85    /*position: absolute;*/ 
86    bottom: 10%; 
87    /*color: #FFF;*/ 
88    /*display:flex;*/ 
89    justify-content: center; 
90    width: 100%; 
91
92 
93.imgPost { 
94	background-size: cover; 
95	background-position: top center; 
96	height: 350px; 
97	width: 100%; 
98	display: block; 
99
100 
101.contentPost { 
102    padding-top: 50px; 
103    font-family: Gotham-book; 
104    font-size: 18px; 
105    text-align:justify; 
106    /*esto para limitar el tamaño*/ 
107    /*overflow: hidden; 
108    line-height: 23.4pt; 
109    white-space: pre-line; 
110    text-overflow: ellipsis; 
111    max-height: 160px;*/ 
112
113 
114.contentPostExpanded { 
115    padding-top: 50px; 
116    font-family: Gotham-book; 
117    font-size: 18px; 
118    width: 100%; 
119    padding-left:5%; 
120    line-height: 23.4pt; 
121    padding-right:5%; 
122    text-align:justify; 
123
124 
125.contentPost img, .contentPostExpanded img { 
126    text-align: center; 
127    align-items: center; 
128    display: block; 
129    margin-left: auto; 
130    margin-right: auto; 
131    width:100%; 
132
133 
134.contentPostReadMore, .contentPostReadLess{ 
135	padding-top: 20px; 
136    padding-left: 5%; 
137    padding-right: 5%; 
138    color: #99BB36!important; 
139
140 
141.contentPostReadMore:hover, .contentPostReadLess:hover { 
142    cursor: pointer; 
143
144 
145@media (max-width: 767px) { 
146 
147     
148    .cabPost h1 { 
149        position: relative !important; 
150        padding-top: 20px; 
151        font-size: 30px; 
152
153     
154    .cabPost .subtituloPost { 
155        position: relative; 
156        padding-bottom: 27px; 
157
158 
159
160 
161 
162</style> 
163<#assign serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext()> 
164<#assign num = 0/> 
165<#if serviceContext.getRequest().getParameter('categoryId')?has_content > 
166    <#assign num = serviceContext.getRequest().getParameter('categoryId')?html!'' /> 
167</#if> 
168 
169<#if num?string != '0' && num?contains(",")> 
170   <#list num?split(",") as sValue> 
171      <#assign num = sValue/> 
172    </#list> 
173</#if> 
174 
175 
176<#assign assetCatLSU = serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryLocalService")/> 
177 
178<#assign viewURL = serviceContext.getPortalURL() + "/web/guest/blog"/> 
179<#assign categoryName = ""/> 
180 
181<#if num?string != "0"> 
182    <#assign assetCategory = assetCatLSU.getAssetCategory(num?string?number)/> 
183    <#assign categoryName = assetCategory.getName()/> 
184    <#assign viewURL = viewURL + "?categoryId="+ num?string/> 
185</#if> 
186 
187 
188<div class="postContent"> 
189    <#assign fechaPost_Data = getterUtil.getLong(fechaPost.getData())> 
190    <#if (fechaPost_Data > 0)> 
191    	<#assign fechaPost_DateObj = dateUtil.newDate(fechaPost_Data)> 
192    	<#assign postDate = dateUtil.getDate(fechaPost_DateObj, "dd MMMM yyyy", locale)> 
193    </#if> 
194    <div class="navWCPost"></div> 
195    <div> 
196        <h2>${cabPost.getData()}</h2> 
197        
198        <span class="subtituloPost">  
199     
200        <a href="${viewURL}"> ${categoryName?capitalize} </a> | ${postDate} 
201             
202        </span> 
203        
204    </div> 
205     
206    <div id="contentPost" class="contentPost"> 
207    	<div class="imgPost" style="background-image:url(${imgCabPost.getData()})"></div> 
208    	<br/> 
209        ${htmlPost.getData()} 
210    </div> 
211     
212    <#--<div class="contentPostReadMore"><span> ${languageUtil.get(locale, "es.escueladelagua.leerMas")} </span></div>--> 
213    <#--<div class="contentPostReadLess" style="display:none;"><span> ${languageUtil.get(locale, "es.escueladelagua.leerMenos")} </span></div>--> 
214     
215    <#-- <#assign journalArticleLocalService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService")> 
216    <#assign ja = journalArticleLocalService.getArticleByUrlTitle(groupid, webContentURLTitle)/> 
217    <#assign numComm = MBMessageLocalServiceUtil.getDiscussionMessagesCount("com.liferay.portlet.journal.model.JournalArticle", ja.getResourcePrimKey(), 0)/> --> 
218    <#assign themeDisplay = objectUtil("com.liferay.portal.theme.ThemeDisplay") /> 
219    
220     
221    
222</div> 
223 
224<script> 
225 
226	/*$(document).ready(function() { 
227	    $('.navWCPost').prepend($('.categoryNavPost')); 
228	     
229	    $('.contentPostReadMore').click(function() { 
230            $('#contentPost').removeClass("contentPost"); 
231            $('#contentPost').addClass("contentPostExpanded"); 
232            $('.contentPostReadMore').hide(); 
233            $('.contentPostReadLess').show(); 
234        }); 
235         
236        $('.contentPostReadLess').click(function() { 
237            $('#contentPost').removeClass("contentPostExpanded"); 
238            $('#contentPost').addClass("contentPost"); 
239            $('.contentPostReadMore').show(); 
240            $('.contentPostReadLess').hide(); 
241        }); 
242	     
243	});*/ 
244</script> 

  • (Compartido

    5

    veces)