Asset Publisher
An error occurred while processing the template.
?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: #list article.getTreePath()?substring...  [in template "90692" in macro "showAllegati" at line 69, column 1]
	- Reached through: @showAllegati  [in template "20101#20128#127279" at line 58, column 1]
----
1<#include "${templatesPath}/90692"/> 
2<#assign categories=getCategoriesOfArticle()/> 
3<div> 
4 
5 
6    <div class="marginBottom20"> 
7		<a class="fancybox" href="#dialogImg" title="${htmlUtil.escapeAttribute(.vars['reserved-article-title'].getData())}"> 
8			<img src="${Immagineaap0.getData()}" alt="imgDettaglio" class="img-responsive contentImage"/> 
9		</a> 
10		<div id="dialogImg" style="width:400px; display:none"> 
11		    <img src="${Immagineaap0.getData()}" class="img-responsive"/> 
12		</div> 
13 
14	</div> 
15 
16 
17 
18    <!--<img style="padding: 5px;max-height: 300px;border: 1px solid #ded7d7;" align="left" src="${Immagineaap0.getData()}"  class="mr-3 mt-1 "/>--> 
19     
20    <#if categories?size!=0>  
21   <div class="marginBottom20"> 
22        <h6 class="tipologia">${categories?first}</h6> 
23        </div> 
24     </#if> 
25	<div class="marginBottom20"> 
26	     <h3>${Titolo.getData()}</h3> 
27	     </div> 
28	 
29	   <#if Sottotitolo?? > <div class="marginBottom20"> 
30	   ${Sottotitolo.getData()} 
31	   </div> 
32	  </#if> 
33	<div class="marginBottom20"><b>Anno pubblicazione:</b> ${AnnoPubblicazione.getData()}</div> 
34	<div class="marginBottom20"><b>Autore:</b> ${Autore.getData()}</div> 
35	<div class="marginBottom20"><b>Formato:</b> ${Formato.getData()}</div> 
36	<div class="marginBottom20"><b>ISBN:</b> ${ISBN.getData()}</div> 
37	<div class="marginBottom20"><b>Pagine:</b> ${Pagine.getData()}</div> 
38	<div class="marginBottom20"><b>Tipografia:</b> ${Tipografia.getData()}</div> 
39	<div class="marginBottom20"> 
40	    <section><article><b>Descrizione:</b> 
41			${Descrizione.getData()} 
42			</article></section> 
43			</div> 
44			<#if note?? > 
45			<div class="marginBottom20"> 
46		 
47	    <section><article><b>Note:</b> 
48			${note.getData()} 
49			</article></section> 
50			</div> 
51			</#if> 
52    <#if DataInserimento.getData() != ''> 
53    <div class="marginBottom20"><b>Data inserimento:</b> ${DataInserimento.getData()?date("yyyy-MM-dd")?string("dd/MM/yyyy")} 
54    </div> 
55		 
56			</#if> 
57</div> 
58<@showAllegati/>