COMUNICAZIONE
Galleria fotografica
テンプレート処理中にエラーが発生しました。
The following has evaluated to null or missing:
==> .vars['reserved-article-display-date'] [in template "20115#20151#700507" at line 6, column 21]
----
Tip: It's the final [] step that caused this error, not those before it.
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign dataPub = .vars["reserved-art... [in template "20115#20151#700507" at line 6, column 2]
----
1<#assign img_folder = themeDisplay.getPathThemeImages() + '/../img' />
2<#assign javascript_folder = themeDisplay.getPathThemeJavaScript() />
3
4<#-- RECUPERO DATI -->
5
6 <#assign dataPub = .vars['reserved-article-display-date'].data />
7 <#-- Save the original page locale for later -->
8 <#assign originalLocale = .locale>
9 <#-- Set the page locale to the portals default locale -->
10 <#setting locale = localeUtil.getDefault()>
11 <#-- Parse the date to a date object -->
12 <#assign dataPub = dataPub?datetime("EEE, d MMM yyyy HH:mm:ss Z")>
13 <#-- Set the page locale back to the original page locale -->
14 <#-- Set the page locale back to the original page locale -->
15 <#setting locale = originalLocale>
16
17<#-- FINE RECUPERO DATI -->
18
19<!-- ModelloFotoGalleryFrame -->
20<main class="cng">
21
22<section class="section">
23 <div class="container">
24
25 <h1 class="title" >${Ttiolo.getData()}</h1>
26<#assign DataNotizia_Data = getterUtil.getString(Ttiolo.DataNotizia.getData())>
27
28 <#if validator.isNotNull(DataNotizia_Data)>
29 <#assign DataNotizia_DateObj = dateUtil.parseDate("yyyy-MM-dd", DataNotizia_Data, locale)>
30
31 ${dateUtil.getDate(DataNotizia_DateObj, "dd/MM/yyyy", locale)}
32
33
34 <!--#else>
35 ${dataPub?string["dd/MM/yyyy"]}-->
36 </#if>
37
38
39
40 <div id="professionSlider" class="owl-carousel owl-theme wow fadeIn mt-3 mb-10" data-wow-duration="800ms" data-wow-delay="400ms" style="background:#f0f0f0 !important;">
41
42 <#list Ttiolo.Foto.getSiblings() as cur_Foto>
43 <#if cur_Foto.getData()?? && cur_Foto.getData() != "">
44 <div class="item" style="background-image:url('${cur_Foto.getData()}'); background-size:contain">
45 <!--img class="item" data-fileentryid="${cur_Foto.getAttribute("fileEntryId")}" alt="${cur_Foto.getAttribute("alt")}" src="${cur_Foto.getData()}" /-->
46
47</div>
48
49</#if>
50
51</#list>
52</div>
53</div>
54<button id="goBackButton" class="btn btn-primary mt-3" style="color: white; border-bottom:none">Torna Indietro</button>
55<script type="text/javascript">
56 document.getElementById('goBackButton').onclick = function() {
57 window.history.back();
58 };
59</script>
60
61</section>
62</main>
63
64
65 <!-- Owl Carousel -->
66 <script src="/documents/20142/549511/owl.carousel.min.js" integrity="sha512-bPs7Ae6pVvhOSiIcyUClR7/q2OAsRiovw4vAkX+zJbw3ShAeeqezq50RIIcIURq7Oa20rW2n2q+fyXBNcU9lrw==" crossorigin="anonymous"></script>
67 <script>
68 $("#professionSlider").owlCarousel({
69 loop: true,
70 nav: true,
71 dots: false,
72 margin: 20,
73 navText: ['<img class="frecce" src=\'${img_folder}/icons/chevron-left-white-bold.png\' alt="Scorri a sinistra">','<img class="frecce" src=\'${img_folder}/icons/chevron-right-white-bold.png\' alt="Scorri a destra">'],
74 responsive: {
75 0: {
76 center: false,
77 items: 1,
78 autoWidth: true,
79 autoplay: true,
80 autoplayTimeout: 5000,
81 autoplayHoverPause: true
82 },
83 620: {
84 center: true,
85 items: 3,
86 autoWidth: true,
87 autoplay: true,
88 autoplayTimeout: 5000,
89 autoplayHoverPause: true
90 }
91 }
92 });
93
94 </script>
95 <script type="text/javascript" src="${javascript_folder}/scripts.js"></script>
96
97<style>
98.header-title{display: none;}
99.asset-title.d-inline{ display: none !important; }
100.header-back-to{ display: none !important; }
101
102.cng .frecce{
103 width:20px;
104 background:
105}
106.cng #professionSlider.owl-carousel .owl-item {
107 height: 607px;
108}
109
110.cng #professionSlider .owl-nav {
111 height: 600px;
112}
113
114.cng .h2{
115 margin: 0 auto;
116 width:1100px;
117}
118
119.cng #professionSlider.owl-carousel .owl-item .item:after{
120 background:#f0f0f0 !important;
121}
122
123.cng #goBackButton {
124 display: block;
125 margin-left: auto;
126 margin-right: auto;
127}
128.cng #professionSlider .owl-nav button.owl-prev{
129 background: linear-gradient(90deg, #72727233, transparent);
130}
131.cng #professionSlider .owl-nav button.owl-next{
132 background: linear-gradient(270deg, #72727233, transparent) !important;
133}
134</style>