axiell-library-instagram

Språk

Englishsuomisvenska
Fel uppstod under bearbetning av mallen.
The following has evaluated to null or missing:
==> items  [in template "118468#118507#171621" at line 104, column 84]

----
Tip: If the failing expression is known to be 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: ${items.getData()}  [in template "118468#118507#171621" at line 104, column 82]
----
1<script> 
2	define._amd = define.amd; 
3	define.amd = false; 
4</script> 
5<link href="//cdn.axiell.com/arena/calendarEvents.css" rel="stylesheet" type="text/css" /> 
6<script src="//cdn.axiell.com/arena/calendarEvents.js" type="text/javascript"></script> 
7<script src="//cdn.axiell.com/arena/moment-with-locales.min.js" type="text/javascript"></script> 
8<script src="//cdn.axiell.com/arena/jquery.linky.js"></script> 
9<script src="//cdn.axiell.com/arena/jquery.matchHeight-min.js"></script> 
10 
11<script> 
12	(function () { 
13		var calendar = new calendarEvents.Calendar( 
14
15				calendarId: '${calendarId.getData()}', 
16				apiKey: '${apiKey.getData()}', 
17				locale: '${locale}', 
18				municipalities: [ 
19					<#list municipalityName.getSiblings() as mn> 
20					{name: "${mn.getData()}", libraries: [ 
21							<#list mn.getChildren() as firstLibrary> 
22							<#list firstLibrary.getSiblings() as ln> 
23							{name: "${ln.getData()}" 
24								<#list ln.getChildren() as firstUrl> 
25								<#if firstUrl.getData()!=''> 
26								,url: '${firstUrl.getData()}' 
27								</#if> 
28								</#list> 
29							}<#if ln_has_next>,</#if> 
30							</#list> 
31							</#list> 
32						]}<#if mn_has_next>,</#if> 
33					</#list> 
34
35			}, 
36
37				instanceId: '${instanceId.getData()}', 
38				<#if isSingleLinePerDayEventFormat.getData()!=''> 
39				isSingleLinePerDayEventFormat: ${isSingleLinePerDayEventFormat.getData()}, 
40				<#else> 
41				isSingleLinePerDayEventFormat: false, 
42				</#if> 
43				<#if isShowLocation.getData()!=''> 
44				isShowLocation: ${isShowLocation.getData()}, 
45				<#else> 
46				isShowLocation: false, 
47				</#if> 
48				<#if isShowDescription.getData()!=''> 
49				isShowDescription: ${isShowDescription.getData()}, 
50				<#else> 
51				isShowDescription: false, 
52				</#if> 
53				<#if isShowShortTimeFormat.getData()!=''> 
54				isShowShortTimeFormat: ${isShowShortTimeFormat.getData()}, 
55				<#else> 
56				isShowShortTimeFormat: false, 
57				</#if> 
58				<#if libraryLinkTarget.getData()!=''> 
59				libraryLinkTarget: '${libraryLinkTarget.getData()}', 
60				</#if> 
61				<#if noOfDays.getData()!=''> 
62				noOfDays: ${noOfDays.getData()}, 
63				</#if> 
64				<#if txtNext.getData()!=''> 
65				txtNext: '${txtNext.getData()}', 
66				</#if> 
67				<#if txtPrevious.getData()!=''> 
68				txtPrevious: '${txtPrevious.getData()}', 
69				</#if> 
70				<#if txtBack.getData()!=''> 
71				txtBack: '${txtBack.getData()}', 
72				</#if> 
73				<#if txtClosed.getData()!=''> 
74				txtClosed: '${txtClosed.getData()}', 
75				</#if> 
76				<#if txtShowMore.getData()!=''> 
77				txtShowMore: '${txtShowMore.getData()}', 
78				</#if> 
79				defaultLocale: 'sv_SE' 
80
81		); 
82		calendar.show(); 
83	})(); 
84</script> 
85<#if calendarId.getData()!=''> 
86<section class="fb-hours"> 
87    <div class="left"> 
88        <div id="${instanceId.getData()}-dynamic-cal-wrapper"> 
89            <div class="dynamic-cal-events"><div class="dynamic-cal-loader"></div></div> 
90            <div class="dynamic-cal-toolbar" style="display:none"> 
91                <button class="dynamic-cal-btn-back">Back</button> 
92                <div class="dynamic-cal-navigation"> 
93                    <button class="dynamic-cal-btn-prev">Previous</button> 
94                    <button class="dynamic-cal-btn-next">Next</button> 
95                </div> 
96            </div> 
97        </div> 
98    </div> 
99    <#else> 
100    <section class="fb-hours no-fb"> 
101        </#if> 
102        <div> 
103            <h2 class="insta">${instagramheader.getData()}</h2> 
104            <div id="instagram-feed" class="instagram-feed instagram-feed--items-${items.getData()} instagram-feed--captions-${captions.getData()} instagram-feed--display-horizontal"> 
105 
106                <#-- getting the data from the CDN JSON file  --> 
107                <#function readJSON apiUrl> 
108                    <#assign response = httpUtilUnsafe.URLtoString(apiUrl) /> 
109                    <#assign result = jsonFactoryUtil.looseDeserialize(response) /> 
110                    <#return result /> 
111                </#function> 
112                <#assign data = readJSON("https://cdn.axiell.com/arena/instagram/arena-instagram-tokens.json")! /> 
113                <#assign username = username.getData()! /> 
114 
115                <script src="https://cdn.jsdelivr.net/gh/stevenschobert/instafeed.js@2.0.0rc1/src/instafeed.min.js"></script> 
116                <script> 
117					var userFeed = new Instafeed({ 
118						get: 'user', 
119						target: "instagram-feed", 
120						accessToken: "${data["tokens"][username]}", 
121						limit: ${items.getData()}, 
122						template: '<a target="_blank" href="{{link}}"><img src="{{image}}" alt="{{type}}'+' from '+'{{username}}'+' Instagram"/><span>"{{caption}}"</span></a>' 
123					}); 
124					userFeed.run(); 
125                </script> 
126 
127            </div> 
128        </div> 

Boxholms bibliotek

Besöksadress: Storgatan 20 (ingång från torget)
Postadress:  Box 64, 595 70 Boxholm
Telefon: 0142 89540
E-post: biblioteket@boxholm.se
Wifi: its-public, För att ansluta krävs att du godkänner våra användarvilkor.