Category Menu Category Menu

Aggregatore Risorse Aggregatore Risorse

Si è verificato un errore nell'elaborarazione del modello.
Error on line 7, column 9 in 10154#10194#10748
assetCategoryService.getCategory(filtercategory?number) is undefined.
It cannot be assigned to filtercategory
1<#assign assetCategoryService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryService")> 
2<#assign maincategory=""/> 
3<#assign filtercategory=paramUtil.get(request,"categoryId","")/> 
4<#assign summaryLength=300/> 
5<#assign show_categories="block"/> 
6<#if filtercategory!=""> 
7	<#assign filtercategory =  assetCategoryService.getCategory(filtercategory?number) /> 
8	<#if filtercategory.getParentCategoryId()!=0> 
9		<#assign maincategory=assetCategoryService.getCategory(filtercategory.getParentCategoryId()) /> 
10	<#else> 
11		<#assign maincategory=filtercategory/> 
12	</#if> 
13	<#assign show_categories="none"/> 
14<#else> 
15	<#if entry?? && entry.getCategories()?has_content> 
16		<#assign filtercategory=entry.getCategories()[0]/> 
17		<#assign maincategory=filtercategory/> 
18	</#if> 
19</#if> 
20 
21 
22<!-- start category bar--> 
23 
24<#if maincategory !=""> 
25 
26 
27<#if entries?has_content> 
28 
29<#assign idx = 1> 
30	 
31	<div class="row-fluid" style="margin-bottom:10px;"> 
32	<#list entries as curEntry> 
33		 
34		<#if (idx > 0)> 
35		 
36		<#assign docXml = saxReaderUtil.read(curEntry.getAssetRenderer().getArticle().getContentByLocale(locale)) /> 
37		<#assign body = docXml.valueOf("//dynamic-element[@name='Corpo']/dynamic-content/text()") /> 
38		<#assign PublishDate = docXml.valueOf("//dynamic-element[@name='DataPubblicazione']/dynamic-content/text()")/> 
39		<#if PublishDate==""> 
40			<#assign PublishDate="1"/> 
41		</#if> 
42		<#assign imageUrl = docXml.valueOf("//dynamic-element[@name='Immagine']/dynamic-content/text()")/> 
43		<#if imageUrl == ""> 
44			<#assign imageUrl="http://placehold.it/220x100/fff/fff.png"/> 
45		<#else> 
46			<#assign imageUrlOLD=httpUtil.addParameter(imageUrl,"imageThumbnail",1)/> 
47			<#assign furl = imageUrl?substring(0,imageUrl?last_index_of("/"))/> 
48			<#assign fpath=furl?substring(0,furl?last_index_of("/")+1)/> 
49			<#assign fimag=furl?substring(furl?last_index_of("/")+1) /> 
50			<#assign imageUrl=fpath+"sm-1-"+fimag /> 
51		</#if> 
52		<#assign category="&nbsp;"/> 
53		<#if curEntry.getCategories()[1]?has_content> 
54			<#assign category=curEntry.getCategories()[1].name/> 
55		<#elseif curEntry.getCategories()[0]?has_content> 
56			<#assign category=curEntry.getCategories()[0].name/> 
57		</#if> 
58		<#assign viewURL_Old = themeDisplay.getURLHome()+"/article/-/asset_publisher/l5PmMd5Ud8as/content/"+curEntry.getAssetRenderer().getUrlTitle() /> 
59		<#assign viewURL = themeDisplay.getPortalURL()+"/it/notizie/"+(category?lower_case)+"/"+curEntry.getAssetRenderer().getUrlTitle()  /> 
60										 
61			<div class="span4 article-summary"> 
62				<p class="article-category"  style="margin-top:10px">${category}</p> 
63				<p class="article-date1">${PublishDate?number?number_to_date?string("dd/MM/yyyy")} | <a class="article-category disqus-comment" href="${viewURL}#disqus_thread" data-disqus-identifier="${curEntry.getClassName()}${curEntry.getClassPK()}"></a></p> 
64				<div class="article-showcase-thumb-sml__"><img  src="${imageUrl}"/></div> 
65				<a class="article-title-link" href="${viewURL}"><h4 class="article-title article-title3">${curEntry.getTitle(locale)}</h4></a> 
66			</div> 
67 
68			<#if (idx%3==0)> 
69				</div><div class="row-fluid" style="margin-bottom:10px;"> 
70			</#if> 
71		 
72		</#if> 
73		<#assign idx = idx+ 1> 
74		 
75	</#list> 
76	</div> 
77</#if> 
78</#if> 

Visualizzazione Contenuto Web Visualizzazione Contenuto Web

Visualizzazione Contenuto Web Visualizzazione Contenuto Web

Newsletter Mailup Newsletter Mailup

STAMPAMEDIA NEWS

ISCRIVITI

Visualizzazione Contenuto Web Visualizzazione Contenuto Web

Visualizzazione Contenuto Web Visualizzazione Contenuto Web

Icon
SERVICE DI STAMPA

W2P HUB

Stampatori online

Visualizzazione Contenuto Web Visualizzazione Contenuto Web

Icon
DATABASE

I FORNITORI

Industria della Stampa

Visualizzazione Contenuto Web Visualizzazione Contenuto Web

Visualizzazione Contenuto Web Visualizzazione Contenuto Web

Icon
DATABASE

I GREEN

Industria della Stampa

Visualizzazione Contenuto Web Visualizzazione Contenuto Web

Icon
CLASSIFICHE

I BIG

della Stampa