Asset Publisher

End-of-life e-cigarette management

An error occurred while processing the template.
For "${...}" content: Expected a string or something automatically convertible to string (number, date or boolean), or "template output" , but this has evaluated to an extended_hash (wrapper: com.liferay.portal.template.freemarker.internal.LiferayTemplateModel):
==> immagine  [in template "20099#20125#56396" at line 25, column 37]

----
FTL stack trace ("~" means nesting-related):
	- Failed at: ${immagine}  [in template "20099#20125#56396" at line 25, column 35]
----
1<div class="news-detail"> 
2    <#if (immagine.getData())?? && immagine.getData() != ""> 
3	    <#assign immagine = immagine.getData() /> 
4    </#if> 
5    <div class="main-banner"> 
6        <div class="ita-wrapper"> 
7            <div class="banner-content"> 
8                <div class="row"> 
9                    <div class="column col-md-0 col-lg-1 "></div> 
10                    <div class="column col-md-12 col-lg-5"> 
11                        <#assign data_Data = getterUtil.getString(data.getData())> 
12                        <#if validator.isNotNull(data_Data)> 
13                            <#assign data_DateObj = dateUtil.parseDate("yyyy-MM-dd", data_Data, locale)> 
14                            <h4> 
15                                ${dateUtil.getDate(data_DateObj, "dd MMMM yyyy", locale)} 
16                            </h4> 
17                        </#if> 
18                        <#if (titolo.getData())??> 
19                            <h1 id="news-detail-title"> 
20                                ${titolo.getData()} 
21                            </h1> 
22                        </#if> 
23                    </div> 
24                    <div class="image col-md-12 col-lg-6"> 
25                        <img src="${immagine}" /> 
26                    </div> 
27                </div> 
28            </div> 
29        </div> 
30    </div>   
31    <div class="ita-wrapper-small"> 
32        <div class="braedcrumb-news-wrapper"></div> 
33        <#if (testo1.getData())??>         
34            <div class="text">${testo1.getData()}</div> 
35        </#if> 
36        <#if (immaginetesto.getData())?? && immaginetesto.getData() != ""> 
37            <div class="image"> 
38                <img alt="${immaginetesto.getAttribute("alt")}" data-fileentryid="${immaginetesto.getAttribute("fileEntryId")}" src="${immaginetesto.getData()}" /> 
39            </div> 
40        </#if> 
41        <#if (testo2.getData())??> 
42            <div class="text">${testo2.getData()}</div> 
43        </#if> 
44 
45        <#if etichettacondividi.getData()!=""> 
46            <#if fb.getData()!="" || linkedin.getData()!=""> 
47                <div class="share"> 
48                    <h4> 
49                        ${etichettacondividi.getData()} 
50                    </h4> 
51                    <ul> 
52                        <#if fb.getData()?string?trim=="opzione64626483"> 
53                            <li><a target="_blank" class="fb" data-href="https://www.facebook.com/sharer/sharer.php?u=" alt="Facebook"></a></li> 
54                        </#if> 
55                        <#if linkedin.getData()?string?trim=="opzione64626483"> 
56                            <li><a target="_blank" class="linkedin" data-href="https://www.linkedin.com/shareArticle?mini=true&url=" alt="Linkedin"></a></li> 
57                        </#if> 
58                    </ul> 
59                </div> 
60            </#if> 
61        </#if> 
62    </div> 
63</div> 
64<script> 
65$(document).ready(function(){ 
66	var currentUrl = window.location.href; 
67	var title = $("#news-detail-title").html(); 
68	 
69	var fb = $(".news-detail .share .fb").attr("data-href"); 
70	$(".news-detail .share .fb").attr("href",fb+ currentUrl); 
71	 
72	var linkedin = $(".news-detail .share .linkedin").attr("data-href"); 
73	$(".news-detail .share .linkedin").attr("href",linkedin+ currentUrl+"&title="+title); 
74	 
75}); 
76</script>