Arrangementer

Laster

Nyeste bøker

28edc452-91b2-4d2e-a10d-8a27f4cab279
f21cc917-45b7-4f1e-b1e4-873a3fdd0c97
Forfatter: Winick, Judd
2762e885-842c-457e-8d1a-93b5fb3504eb
64861f45-b8e5-43e0-8f62-903a14793740
Forfatter: Douyé, Sylvia
4e853477-38c9-49b0-aa0f-a64994fd3d61
Forfatter: Sandtorv, Christine
e4a105bf-19dc-44b2-9bb2-9600c5afff7c
Forfatter: Bjørnstad, Taran Lysne
1ea74ab1-d366-4ece-bed6-abce1d15edc7
Forfatter: Hansson, Elin
11887a3c-aaa1-459b-92ea-4885ccbb8ab2
Forfatter: Ingulstad, Frid
8d777d1c-2635-4718-acc5-a27895f264b8
Forfatter: Borge, Nina
c6493807-fd49-4e21-839f-2781eb9f10eb
Forfatter: Noreng, Jan Tore

Biblioteket på Instagram

En feil oppsto under behandling av malen.
The following has evaluated to null or missing:
==> userName  [in template "633136#633170#1461481" at line 13, column 21]

----
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: #assign username = userName.getData()!  [in template "633136#633170#1461481" at line 13, column 1]
----
1<#assign orientationDefault = "horizontal"/> 
2<#if orientation?? && orientation.getData() !=""> 
3    <#assign orientationDefault = orientation.getData() /> 
4</#if> 
5 
6<#-- getting the data from the CDN JSON file  --> 
7<#function readJSON apiUrl> 
8    <#assign response = httpUtilUnsafe.URLtoString(apiUrl) /> 
9    <#assign result = jsonFactoryUtil.looseDeserialize(response) /> 
10    <#return result /> 
11</#function> 
12<#assign data = readJSON("https://cdn.axiell.com/arena/instagram/arena-instagram-tokens.json")! /> 
13<#assign username = userName.getData()! /> 
14 
15<div id="instagram-feed" class="instagram-feed instagram-feed--items-${items.getData()} instagram-feed--captions-${captions.getData()} instagram-feed--display-${orientationDefault}"></div> 
16<script> 
17	define._amd = define.amd; 
18	define.amd = false; 
19</script> 
20<script src="https://cdn.jsdelivr.net/gh/stevenschobert/instafeed.js@2.0.0rc1/src/instafeed.min.js"></script> 
21<script> 
22	define._amd = define.amd; 
23	var userFeed = new Instafeed({ 
24		get: 'user', 
25		target: "instagram-feed", 
26		accessToken: "${data["tokens"][username]}", 
27		limit: ${items.getData()}, 
28		template: '<a target="_blank" href="{{link}}"><img src="{{image}}" alt="{{type}}'+' from '+'{{username}}'+' Instagram"/><span>"{{caption}}"</span></a>' 
29	}); 
30	userFeed.run(); 
31</script> 

Språkvelger