Agenzia di Notizie

null Untitled News

Si è verificato un errore nell'elaborarazione del modello.
?substring(...) argument #1 had invalid value: The index mustn't be greater than the length of the string, 0, but it was 1.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign link = cur_Allegati.getData()...  [in template "20101#20128#47701" at line 47, column 17]
----
1<#include "${templatesPath}/45847"/> 
2<#assign categories=getCategoriesOfArticle()/> 
3<div> 
4	<img class="small" alt="stemma crp" src="/documents/20124/48765/stemma.gif/96310d9a-c876-29d0-d315-119813775c93?t=1583485612428"/>&nbsp;<img class="small" alt="puglia notizie" src="/documents/20124/48765/logo_puglia.png/df3e1ad1-9544-5d73-ac32-04b0bcc5c347?t=1583485636788"/> 
5	<br/> 
6 
7	<hr/> 
8	</div> 
9	<div class="marginBottom20"> 
10		 
11			<b>Nr.:</b> ${Numero.getData()} del ${.vars['reserved-article-display-date'].getData()?datetime("EEE, d MMM yyyy HH:mm:ss Z")?string("dd/MM/yyyy HH:mm")}</label> 
12	</div> 
13	<#if categories?size!=0> 
14    <div class="marginBottom20"><h6 class="tipologia">${categories?first}</h6></div> 
15</#if> 
16 
17	<div class="marginBottom20"> 
18		<h3>${Titolo.getData()}</h3> 
19	</div> 
20	<div class="marginBottom20"> 
21		<section> 
22			<article> 
23				<p> 
24${Contenuto.getData()} 
25				</p> 
26			</article> 
27		</section> 
28	</div> 
29</div> 
30 
31<#if Allegati?has_content && Allegati.getSiblings()?has_content && (Allegati.getSiblings()?first)?has_content>		 
32	<#assign documentFolderAndEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService")> 
33	 
34	<div>             
35		<table class="grid table table-responsive" cellspacing="0" rules="all" border="1" id="cphMain_ucDettaglioContenuto_gvAllegati" style="display:table;width:100%;border-collapse:collapse;"> 
36            	<tbody> 
37            		<tr> 
38            			<th class="text-center" scope="col" style="width:80%;"> 
39            				Nome documento 
40            			</th> 
41            			<th class="text-center" scope="col" style="width:20%;"> 
42            				Data 
43            			</th> 
44            		</tr> 
45 
46	<#list Allegati.getSiblings() as cur_Allegati> 
47		<#assign link=cur_Allegati.getData()?substring(1)?split("/")/> 
48		<#assign groupId=themeDisplay.getScopeGroupId()/> 
49		<#assign uuid=link[4]?split("?")?first/> 
50		<#assign file=documentFolderAndEntryLocalService.getFileEntryByUuidAndGroupId(uuid,groupId)/> 
51            		    <#assign icon = getIconFromMime(file.getMimeType())/> 
52            		    <#assign fileSizeHuman = getFileSizeHuman(file.getSize())/> 
53            		    <tr> 
54            		        <td> 
55            		            <a href="/documents/${file.getGroupId()}/${file.getFolderId()}/${file.getTitle()}/${file.getUuid()}?download=true"><i class="fa ${icon}"></i>&nbsp;${file.getFileName()}</a> 
56            		            <div>(dimensione:${fileSizeHuman})</div> 
57	            				<p>${file.getDescription()}</p> 
58	            				 
59            		        </td> 
60            		        <td class="text-center"> 
61            		            ${file.getCreateDate()?string("dd/MM/yyyy")} 
62            		        </td> 
63            		    </tr> 
64	</#list> 
65	 
66	                </tbody> 
67            </table> 
68        </div> 
69 
70<#else> 
71<@showAllegati/> 
72</#if> 
73 
74<div> 
75	<hr/> 
76	<p> 
77		<small>Direttore Responsabile: Francesco Lillo <br/> 
78Redazione: Via Gentile, 52 - 70126 Bari - Tel 080.540.2296 - 2366 <br/> 
79Posta Elettronica: <a href="mailto:ufficiostampa@consiglio.puglia.it">ufficiostampa@consiglio.puglia.it</a> - Sito Web: <a href="http://www.consiglio.puglia.it " target="_blank">http://www.consiglio.puglia.it </a> 
80			<br/> 
81Iscritto al Registro Pubblico della Stampa del Tribunale di Bari in data 25/02/2003 <br> 
82			</small> 
83		</p> 
84		<hr/> 
85	</div>