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 36, column 1]
----
1<#include "${templatesPath}/90692"/> 
2<#assign categories=getCategoriesOfArticle()/> 
3<div> 
4    <img style="padding: 5px;max-height: 300px;border: 1px solid #ded7d7;" align="left" src="${Immagineaap0.getData()}"  class="mr-3 mt-1 "/> 
5     
6    <#if categories?size!=0>  
7   <div class="marginBottom20"> 
8        <h6 class="tipologia">${categories?first}</h6> 
9        </div> 
10     </#if> 
11	<div class="marginBottom20"> 
12	     <h3>${Titolo.getData()}</h3> 
13	     </div> 
14	 
15	   <#if Sottotitolo?? > <div class="marginBottom20"> 
16	   ${Sottotitolo.getData()} 
17	   </div> 
18	  </#if> 
19	<div class="marginBottom20"><b>Anno pubblicazione:</b> ${AnnoPubblicazione.getData()}</div> 
20	<div class="marginBottom20"><b>Autore:</b> ${Autore.getData()}</div> 
21	<div class="marginBottom20"><b>Formato:</b> ${Formato.getData()}</div> 
22	<div class="marginBottom20"><b>ISBN:</b> ${ISBN.getData()}</div> 
23	<div class="marginBottom20"><b>Pagine:</b> ${Pagine.getData()}</div> 
24	<div class="marginBottom20"><b>Tipografia:</b> ${Tipografia.getData()}</div> 
25	<div class="marginBottom20"> 
26	    <section><article><b>Descrizione:</b> 
27			${Descrizione.getData()} 
28			</article></section> 
29			</div> 
30    <#if DataInserimento.getData() != ''> 
31    <div class="marginBottom20"><b>Data inserimento:</b> ${DataInserimento.getData()?date("yyyy-MM-dd")?string("dd/MM/yyyy")} 
32    </div> 
33		 
34			</#if> 
35</div> 
36<@showAllegati/>