Comunicación

Desculpa, non tes os roles necesarios para acceder a este portlet.
Produciuse un erro ao procesar o modelo.
The following has evaluated to null or missing:
==> assetRenderer.getThumbnailPath(renderRequest)  [in template "35243#35273#111555" at line 10, column 38]

----
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 thumbnailPath = assetRenderer...  [in template "35243#35273#111555" at line 10, column 13]
----
1<#if entries?has_content> 
2    <div class="row"> 
3	<#list entries as curEntry> 
4        <#assign assetRenderer = curEntry.getAssetRenderer() /> 
5        <#assign className = assetRenderer.getClassName() /> 
6        <#if className == "com.liferay.journal.model.JournalArticle"> 
7            <#assign journalArticle = assetRenderer.getAssetObject() /> 
8            <#assign docXml = saxReaderUtil.read(journalArticle.getContent()) /> 
9            <#assign ragportal_photogallery_excerpt = docXml.valueOf("//dynamic-element[@name='ragportal_photogallery_excerpt']/dynamic-content/text()") />             
10            <#assign thumbnailPath = assetRenderer.getThumbnailPath(renderRequest) /> 
11            <#assign viewAssetUrl = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, assetRenderer, curEntry, true) /> 
12 
13    	    <article class="entry photogallery-entry col-sm-6 col-lg-4"> 
14                <#if thumbnailPath??> 
15                    <a href="${viewAssetUrl}"> 
16                        <img class="entry-thumbnail" width="350" height="224" src="${thumbnailPath}" alt=""> 
17                    </a> 
18                </#if> 
19                <time class="entry-date publishdate sr-only" datetime="${curEntry.getPublishDate()?date?iso_local}">${dateUtil.getDate(curEntry.getPublishDate(), "dd/MM/yyyy", locale)}</time> 
20                <h3 class="entry-title"><a href="${viewAssetUrl}">${curEntry.getTitle(locale)}</a></h3> 
21                <#if ragportal_photogallery_excerpt?? && ragportal_photogallery_excerpt != ""> 
22                    <div class="entry-excerpt">${ragportal_photogallery_excerpt}</div> 
23                </#if> 
24            </article> 
25             
26            <#assign allPhotos = docXml.selectNodes( "//dynamic-element[@name='ragportal_photogallery_photo']") />             
27            <#list allPhotos as photo>                 
28                <#if photo.valueOf("dynamic-element[@name='ragportal_photogallery_photo_description']")??> 
29                    <#assign photoDescription = photo.valueOf( "dynamic-element[@name='ragportal_photogallery_photo_description']") /> 
30                </#if> 
31                <#if photo.valueOf("dynamic-element[@name='ragportal_photogallery_photo_source']")??> 
32                    <#assign photoSource = photo.valueOf( "dynamic-element[@name='ragportal_photogallery_photo_source']") /> 
33                </#if> 
34                <#if photo.valueOf("dynamic-element[@name='ragportal_photogallery_photo_url']")??> 
35                    <#assign photoItem = photo.valueOf( "dynamic-element[@name='ragportal_photogallery_photo_url']")?eval /> 
36                     
37                    <#assign myFileEntryId = photoItem.fileEntryId?number> 
38 
39                    <#assign fileLocator = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 
40                    <#assign fileEntry = fileLocator.getFileEntry(myFileEntryId)> 
41                     
42                    <#assign fileEntryPath = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getFileName()> 
43                     
44                    <img src="${httpUtil.encodePath(fileEntryPath)}"> 
45                     
46                     
47 
48         
49                     
50                     
51                     
52                     
53                     
54 
55                     
56                     
57                </#if> 
58                 
59             
60 
61             
62             
63             
64             
65             
66                 
67                <p>ID: ${photoItem.fileEntryId}</p> 
68                <p>${photoItem.alt}</p> 
69                <p>${photoDescription}</p> 
70 
71                <p><em>Fonte: ${photoSource}</em></p> 
72 
73            </#list> 
74 
75 
76        </#if> 
77	</#list> 
78    </div> 
79</#if>