För elever
Välkommen in till skolbiblioteket!
The following has evaluated to null or missing: ==> accessToken [in template "327333#327367#1461481" at line 17, column 33] ---- 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: ${accessToken.getData()} [in template "327333#327367#1461481" at line 17, column 31] ----
1<#assign orientationDefault = "horizontal"/>
2<#if orientation?? && orientation.getData() !="">
3 <#assign orientationDefault = orientation.getData() />
4</#if>
5
6<div id="instagram-feed" class="instagram-feed instagram-feed--items-${items.getData()} instagram-feed--captions-${captions.getData()} instagram-feed--display-${orientationDefault}"></div>
7<script>
8 define._amd = define.amd;
9 define.amd = false;
10</script>
11<script src="https://cdn.jsdelivr.net/gh/stevenschobert/instafeed.js@2.0.0rc1/src/instafeed.min.js"></script>
12<script type="text/javascript">
13 define._amd = define.amd;
14 var userFeed = new Instafeed({
15 get: 'user',
16 target: "instagram-feed",
17 accessToken: "${accessToken.getData()}",
18 limit: ${items.getData()},
19 template: '<a target="_blank" href="{{link}}"><img src="{{image}}" alt="{{type}}'+' from '+'{{username}}'+' Instagram"/><span>"{{caption}}"</span></a>'
20 });
21 userFeed.run();
22</script>