Información general
Información general
Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing: ==> liferay_ui["asset-display"] [in template "20116#20152#35171" at line 59, column 24] ---- Tip: It's the final [] step 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: @liferay_ui["asset-display"] assetEnt... [in template "20116#20152#35171" at line 59, column 22] ----
1<#if !entries?has_content>
2 <#if !themeDisplay.isSignedIn()>
3 ${renderRequest.setAttribute("PORTLET_CONFIGURATOR_VISIBILITY", true)}
4 </#if>
5
6 <div class="alert alert-info">
7 <@liferay_ui["message"]
8 key="there-are-no-results"
9 />
10 </div>
11</#if>
12<ul>
13<#list entries as entry>
14 <#assign entry = entry />
15
16 <#assign assetRenderer = entry.getAssetRenderer() />
17
18 <#assign resumen= htmlUtil.escape(assetRenderer.getSummary()) />
19
20
21
22
23 <#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) />
24
25 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) />
26
27 <#if assetLinkBehavior != "showFullContent">
28 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry, true) />
29 </#if>
30
31
32 <li>
33 <div>
34 <div class="pull-right">
35 <@getPrintIcon />
36
37 <@getFlagsIcon />
38
39 <@getEditIcon />
40 </div>
41
42 <h3 class="asset-title">
43 ${entryTitle}
44 </h3>
45
46 <@getMetadataField fieldName="tags" />
47 <div class="list-date-full">
48 <@getMetadataField fieldName="publish-date" />
49 </div>
50
51 <@getMetadataField fieldName="view-count" />
52
53 <div class="asset-content">
54
55 <div class="asset-summary">
56 <@getMetadataField fieldName="author" />
57
58
59 <@liferay_ui["asset-display"]
60 assetEntry=entry
61 assetRenderer=assetRenderer
62 showExtraInfo=false />
63 </div>
64
65
66 <@getRatings />
67
68 <@getRelatedAssets />
69
70 <@getDiscussion />
71 </div>
72 </div>
73 </li>
74
75</#list>
76</ul>
77<#macro getDiscussion>
78 <#if getterUtil.getBoolean(enableComments) && assetRenderer.isCommentable()>
79 <br />
80
81 <#assign discussionURL = renderResponse.createActionURL() />
82
83 ${discussionURL.setParameter("javax.portlet.action", "invokeTaglibDiscussion")}
84
85 <@liferay_ui["discussion"]
86 className=entry.getClassName()
87 classPK=entry.getClassPK()
88 formAction=discussionURL?string
89 formName="fm" + entry.getClassPK()
90 ratingsEnabled=getterUtil.getBoolean(enableCommentRatings)
91 redirect=currentURL
92 userId=assetRenderer.getUserId()
93 />
94 </#if>
95</#macro>
96
97<#macro getEditIcon>
98 <#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())>
99 <#assign redirectURL = renderResponse.createRenderURL() />
100
101 ${redirectURL.setParameter("mvcPath", "/add_asset_redirect.jsp")}
102 ${redirectURL.setWindowState("pop_up")}
103
104 <#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" />
105
106 <#if validator.isNotNull(editPortletURL)>
107 <#assign title = languageUtil.format(locale, "edit-x", entryTitle, false) />
108
109 <@liferay_ui["icon"]
110 cssClass="icon-monospaced visible-interaction"
111 icon="pencil"
112 markupView="lexicon"
113 message=title
114 url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});"
115 />
116 </#if>
117 </#if>
118</#macro>
119
120<#macro getFlagsIcon>
121 <#if getterUtil.getBoolean(enableFlags)>
122 <@liferay_flags["flags"]
123 className=entry.getClassName()
124 classPK=entry.getClassPK()
125 contentTitle=entry.getTitle(locale)
126 label=false
127 reportedUserId=entry.getUserId()
128 />
129 </#if>
130</#macro>
131
132<#macro getMetadataField
133 fieldName
134>
135 <#if stringUtil.split(metadataFields)?seq_contains(fieldName)>
136 <span class="metadata-entry metadata-${fieldName}">
137 <#assign dateFormat = "dd MMM yyyy - HH:mm:ss" />
138 <#assign dateFormatPublish = "EEEE ',' d MMMM yyyy" />
139
140 <#if fieldName == "author">
141 <@liferay.language key="by" /> ${portalUtil.getUserName(assetRenderer.getUserId(), assetRenderer.getUserName())}
142 <#elseif fieldName == "categories">
143 <@liferay_ui["asset-categories-summary"]
144 className=entry.getClassName()
145 classPK=entry.getClassPK()
146 portletURL=renderResponse.createRenderURL()
147 />
148 <#elseif fieldName == "create-date">
149 ${dateUtil.getDate(entry.getCreateDate(), dateFormat, locale)}
150 <#elseif fieldName == "expiration-date">
151 ${dateUtil.getDate(entry.getExpirationDate(), dateFormat, locale)}
152 <#elseif fieldName == "modified-date">
153 ${dateUtil.getDate(entry.getModifiedDate(), dateFormat, locale)}
154 <#elseif fieldName == "priority">
155 ${entry.getPriority()}
156 <#elseif fieldName == "publish-date">
157 ${dateUtil.getDate(entry.getPublishDate(), dateFormatPublish, locale)}
158 <#elseif fieldName == "tags">
159 <@liferay_ui["asset-tags-summary"]
160 className=entry.getClassName()
161 classPK=entry.getClassPK()
162 portletURL=renderResponse.createRenderURL()
163 />
164 <#elseif fieldName == "view-count">
165 ${entry.getViewCount()} <@liferay.language key="views" />
166 </#if>
167 </span>
168 </#if>
169</#macro>
170
171<#macro getPrintIcon>
172 <#if getterUtil.getBoolean(enablePrint)>
173 <#assign printURL = renderResponse.createRenderURL() />
174
175 ${printURL.setParameter("mvcPath", "/view_content.jsp")}
176 ${printURL.setParameter("assetEntryId", entry.getEntryId()?string)}
177 ${printURL.setParameter("viewMode", "print")}
178 ${printURL.setParameter("type", entry.getAssetRendererFactory().getType())}
179
180 <#if assetRenderer.getUrlTitle()?? && validator.isNotNull(assetRenderer.getUrlTitle())>
181 <#if assetRenderer.getGroupId() != themeDisplay.getScopeGroupId()>
182 ${printURL.setParameter("groupId", assetRenderer.getGroupId()?string)}
183 </#if>
184
185 ${printURL.setParameter("urlTitle", assetRenderer.getUrlTitle())}
186 </#if>
187
188 ${printURL.setWindowState("pop_up")}
189
190 <@liferay_ui["icon"]
191 iconCssClass="icon-print"
192 message="print"
193 url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "printAsset', title: '" + languageUtil.format(locale, "print-x-x", ["hide-accessible", entryTitle], false) + "', uri: '" + htmlUtil.escapeURL(printURL.toString()) + "'});"
194 />
195 </#if>
196</#macro>
197
198<#macro getRatings>
199 <#if getterUtil.getBoolean(enableRatings) && assetRenderer.isRatable()>
200 <div class="asset-ratings">
201 <@liferay_ui["ratings"]
202 className=entry.getClassName()
203 classPK=entry.getClassPK()
204 />
205 </div>
206 </#if>
207</#macro>
208
209<#macro getRelatedAssets>
210 <#if getterUtil.getBoolean(enableRelatedAssets)>
211 <@liferay_ui["asset-links"]
212 assetEntryId=entry.getEntryId()
213 />
214 </#if>
215</#macro>
216
217<#macro getSocialBookmarks>
218 <#if getterUtil.getBoolean(enableSocialBookmarks)>
219 <@liferay_ui["social-bookmarks"]
220 displayStyle="${socialBookmarksDisplayStyle}"
221 target="_blank"
222 title=entry.getTitle(locale)
223 url=viewURL
224 />
225 </#if>
226</#macro>