SOLD OUT
15 April 2020 |
Untitled Seminario

other SEMINARIES ON-LINE

24 Jun 2020 |

Pareti ventilate e soluzioni a secco. Analisi, caratteristiche e Vantaggi fiscali

Partner: Granitech
An error occurred while processing the template.
Error while invoking the "journal-article" JSP custom tag; see cause exception

----
FTL stack trace ("~" means nesting-related):
	- Failed at: @liferay_journal["journal-article"] a...  [in template "20101#20127#2767012" at line 102, column 34]
----
1<#-- 
2Mostro il titolo del portlet qui 
3--> 
4<#assign languageId = themeDisplay.getLanguageId()> 
5<#assign propertyKey = "portletSetupTitle_"+languageId> 
6 
7<#assign title = ""> 
8 
9<#if portletPreferences?has_content> 
10    <#list portletPreferences?keys as key> 
11     
12        <#if key == propertyKey> 
13            <#assign values = portletPreferences[key] /> 
14            <#if values?has_content> 
15                <#list values as value> 
16                    <#assign title = value> 
17                </#list> 
18            </#if> 
19        </#if> 
20     
21     </#list> 
22</#if> 
23 
24 
25<#-- 
26Parto dal Seminario per recuperare gli assetEntries di questo articolo seminario. 
27Se trovo la Company, recupero gli assetEntries di quella company per trovare gli articoli correlati 
28--> 
29 
30<#assign assetLinkLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService") /> 
31<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
32<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
33 
34<#if entries?has_content> 
35 
36    <div class="slider-content">  
37 
38    	<#list entries as curEntry> 
39    		 
40    		<#assign renderer = curEntry.getAssetRenderer() > 
41            <#assign className = renderer.getClassName() > 
42            <#if className == "com.liferay.journal.model.JournalArticle"> 
43                <#assign article = renderer.getArticle() > 
44                 
45                <#assign articleStructureKey = article.getDDMStructure().getStructureKey() /> 
46                 
47                 <#if articleStructureKey = "COMPANY-PROFILE"> 
48                  
49                    <#assign currentArticleResourcePrimKey = article.getResourcePrimKey() /> 
50                    <#assign currentArticleAssetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", currentArticleResourcePrimKey) /> 
51                    <#assign currentArticleAssetEntryId = currentArticleAssetEntry.getEntryId() /> 
52                    <#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryId) /> 
53 
54                    <#-- SE MOSTRARE TITOLO --> 
55                     
56                    <#assign numArticles = 0 /> 
57                     
58                    <#list currentArticleRelatedLinks as related_entry> 
59                        <#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
60                        <#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) /> 
61                        <#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() /> 
62                        <#assign relatedArticle = journalArticleLocalService.fetchLatestArticle(relatedAssetEntryPrimKey)!'' /> 
63                         
64                        <#if relatedArticle?has_content> 
65                         
66                            <#assign relatedArticleStructureKey = relatedArticle.getDDMStructure().getStructureKey() /> 
67                            <#if relatedArticleStructureKey = "ARTICLE-CONTENT"> 
68                                  
69 
70                                <#assign numArticles += 1 /> 
71                                  
72                            </#if> 
73                        </#if> 
74                         
75                    </#list> 
76                     
77                    <#-- FINE ----------------> 
78                     
79                    <#if (numArticles > 0) > 
80                        <h2 class="portlet-title-text">${title}</h2> 
81                    </#if> 
82 
83 
84 
85                    <div class="content-main-article">  
86                    <div class="content-small-medum d-flex company-info-content"> 
87                    <div class="section-small company-info d-flex flex-wrap"> 
88         
89         
90                    <#list currentArticleRelatedLinks as related_entry> 
91                        <#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
92                        <#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) /> 
93                        <#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() /> 
94                        <#assign relatedArticle = journalArticleLocalService.fetchLatestArticle(relatedAssetEntryPrimKey)!'' /> 
95                        <#if relatedArticle?has_content> 
96                         
97                            <#assign relatedArticleStructureKey = relatedArticle.getDDMStructure().getStructureKey() /> 
98                            <#if relatedArticleStructureKey = "ARTICLE-CONTENT"> 
99                                 <div> 
100                                 <a href="${assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, relatedAssetEntry, true)}"> 
101                                  
102                                 <@liferay_journal["journal-article"] 
103                                    articleId=relatedArticle.getArticleId() 
104                                    ddmTemplateKey="ARTICLE-CONTENT-LIST" 
105                                    groupId=relatedArticle.getGroupId()/> 
106                                     
107                                </a> 
108                                 
109                                <#assign 
110						src_image_logo_favicon = "${themeDisplay.getPathThemeImages()}/aow/mini-loghi/${relatedArticle.getGroupId()}.png" 
111					/> 
112                                 
113                               <div class="d-flex justify-content-between tag-logo-content"> 
114                                    <ul class="d-flex flex-wrap"> 
115                                     
116                                   <#assign assetCategories = relatedAssetEntry.getCategories() > 
117                                    <#list assetCategories as category> 
118                                     
119                                        <#if themeDisplay.permissionChecker.hasPermission(group, "com.liferay.asset.kernel.model.AssetCategory", category.getCategoryId(), "VIEW")> 
120                                     
121                                        <li>#<a href="#" class="tag-article">${category.getTitle(locale)}</a></li> 
122                                        </#if> 
123                                    </#list> 
124                                    </ul> 
125    								<a href="#" class="correspondence-site-logo"> 
126    									<img style="height: auto !important;" src="${src_image_logo_favicon}" /> 
127    								</a> 
128                                 
129                                 
130                            </div> 
131                            </div> 
132 
133                            </#if> 
134                             
135                        </#if> 
136                    </#list> 
137                    </div></div></div> 
138                </#if> 
139    		</#if> 
140    	</#list> 
141	</div> 
142</#if>