The following has evaluated to null or missing: ==> AssetCategoryLocalService.getAssetEntryAssetCategories [in template "20192#20219#12413320" at line 25, column 35] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- 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 categories = AssetCategoryLoc... [in template "20192#20219#12413320" at line 25, column 13] ----
1<#setting locale = locale.toString()>
2<#assign articuloFriendlyURL = "/articulo"/>
3<#assign temasFriendlyURL = "/tema" />
4
5<#assign AssetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
6<#assign AssetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") />
7<#assign GroupLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService") />
8
9<#assign pathFriendlyURLPublic = "/web" />
10<#assign groupFriendlyURL = "" />
11<#if themeDisplay??>
12 <#assign pathFriendlyURLPublic = themeDisplay.getPathFriendlyURLPublic() />
13 <#assign groupFriendlyURL = themeDisplay.getScopeGroup().getFriendlyURL() />
14<#else>
15 <#assign group = GroupLocalService.fetchGroup(groupId) />
16 <#assign groupFriendlyURL = group.getFriendlyURL() />
17</#if>
18<#assign preffixPublicSiteURL = pathFriendlyURLPublic + groupFriendlyURL />
19
20<div class="bo bo-lst bo-archivo">
21 <#if entries?has_content>
22 <ol>
23 <#list entries as curBlogEntry>
24 <#assign asset = AssetEntryLocalService.getEntry("com.liferay.blogs.model.BlogsEntry", curBlogEntry.entryId) >
25 <#assign categories = AssetCategoryLocalService.getAssetEntryAssetCategories(asset.entryId) />
26 <li class="">
27 <#if curBlogEntry.getCoverImageURL(themeDisplay)??>
28 <#assign cardImage = true />
29 <#else>
30 <#assign cardImage = false />
31 </#if>
32
33 <#assign viewEntryPortletURL = renderResponse.createRenderURL() />
34 ${viewEntryPortletURL.setParameter("mvcRenderCommandName", "/blogs/view_entry")}
35 <#if validator.isNotNull(curBlogEntry.getUrlTitle())>
36 ${viewEntryPortletURL.setParameter("urlTitle", curBlogEntry.getUrlTitle())}
37 <#else>
38 ${viewEntryPortletURL.setParameter("entryId", curBlogEntry.getEntryId()?string)}
39 </#if>
40
41 <strong class="titulo">
42<#--
43 <a class="title-link" href="${viewEntryPortletURL.toString()}">
44 ${htmlUtil.escape(blogsEntryUtil.getDisplayTitle(resourceBundle, curBlogEntry))}
45 </a>
46-->
47 <h2 style="font-size: inherit;">
48 <a class="title-link" href="${articuloFriendlyURL}/-/blogs/${curBlogEntry.urlTitle}">
49 ${htmlUtil.escape(blogsEntryUtil.getDisplayTitle(resourceBundle, curBlogEntry))}
50 </a>
51 </h2>
52 </strong>
53
54 <span class="video-phoenix">
55 <#if cardImage>
56 <#--
57 <img alt="${curBlogEntry.getCoverImageCaption()}" width="410" height="547" src="${curBlogEntry.getCoverImageURL(themeDisplay)}">
58 -->
59 <img alt="${curBlogEntry.getCoverImageCaption()}" width="410" height="547" src="${curBlogEntry.getSmallImageURL(themeDisplay)}">
60 </#if>
61 </span>
62
63 <span class="fecha">
64 ${curBlogEntry.getDisplayDate()?string["dd/MMMM/yyyy"]}
65 </span>
66
67 <div class="resumen">
68 <#if validator.isNotNull(curBlogEntry.getDescription())>
69 <#assign content = curBlogEntry.getDescription() />
70 <#else>
71 <#assign content = curBlogEntry.getContent() />
72 </#if>
73
74 <div>
75 <#if cardImage>
76 ${stringUtil.shorten(htmlUtil.stripHtml(content), 205)}
77 <#else>
78 ${stringUtil.shorten(htmlUtil.stripHtml(content), 400)}
79 </#if>
80 </div>
81
82 <span class="post-complete">
83 <span class="ico">
84 <a href="${viewEntryPortletURL.toString()}">
85 <span class="ico">
86 <@liferay_ui["message"] key="welblo.blog.comun.leer-mas" />
87 <span class="element-invisible">
88 <@liferay_ui["message"] key="welblo.blog.comun.sobre" />
89 ${htmlUtil.escape(blogsEntryUtil.getDisplayTitle(resourceBundle, curBlogEntry))}
90 </span>
91 </span>
92 </a>
93 </span>
94 </span>
95
96 <span class="element-invisible">
97 <@liferay_ui["message"] key="welblo.blog.comun.categoria" />
98 </span>
99
100 <div class="categoria-body">
101 <strong class="label">
102 <@liferay_ui["message"] key="topics" />
103 </strong>
104 <span class="categoria">
105 <#list categories as category>
106 <a href="${temasFriendlyURL}/-/categories/${category.categoryId}?p_r_p_categoryId=${category.categoryId}" title="${category.getTitle(locale)}" >
107 ${category.getTitle(locale)}
108 </a>
109 </#list>
110 </span>
111
112 </div>
113
114 <#-- Comentarios -->
115 <#--<span class="comentario-num">
116 <span class="comentario-num-valor">
117 <@liferay_ui["message"] key="welblo.blog.comun.comentarios" />
118 </span>
119 <span class="comentario-num-label">
120 ${commentManager.getCommentsCount("com.liferay.blogs.model.BlogsEntry", curBlogEntry.getEntryId())}
121 </span>
122 </span>-->
123
124 </div>
125 </li>
126 </#list>
127 </ol>
128 </#if>
129</div>
130
131<script>
132 $(document).ready(function() {
133 $('.service-links-share-print').click(function(){
134 var url = $(this).attr('href');
135 var pop;
136
137 if(window.location==url){
138 window.print();
139 }else{
140 pop=window.open(url);
141 pop.print();
142 }
143
144 return false;
145 });
146 $('.categoria-body').each(function() {
147 var catSpan = $(this).children().siblings(".categoria");
148 if (catSpan.html().trim().length === 0) {
149 $(this).hide();
150 }
151 });
152 });
153</script>
154
155<style>
156.element-invisible {
157 position: absolute !important;
158 clip: rect(1px 1px 1px 1px);
159 clip: rect(1px,1px,1px,1px);
160 overflow: hidden;
161 height: 1px;
162}
163</style>
-
Compartir :
Acerca de la ONCE
El compromiso de la ONCE es hacer realidad las ilusiones de miles de personas con discapacidad y de sus familias. Y todo ello (educación, empleo, accesibilidad, nuevas tecnologías, ocio, deporte...) lo logramos gracias a la solidaridad de la sociedad española que, día a día, año tras año, confía en nosotros, acercándose a los vendedores de la Organización y al resto de establecimientos autorizados para la venta de nuestros productos, conocedores de nuestra labor, sabiendo que, si nos necesita, en la ONCE y su Fundación, estaremos a su lado.
Y todo ello lo hacemos con la garantía de ser la única marca en España con el sello de Juego Responsable, con las certificaciones nacionales e internacionales más severas, y que sólo la ONCE ha alcanzado en el ámbito del juego, un aval más de la integridad de nuestra gestión.
Para más información: www.once.es