Needle Exchange and Supervised Consumption services frequently asked questions - Public Health Dorset
Needle Exchange and Supervised Consumption services frequently asked questions
An error occurred while processing the template.
The following has evaluated to null or missing: ==> cur_IncludeContent.HTML.Location [in template "35001#35028#499846" at line 6, column 88] ---- Tip: It's the step after the last dot 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: #if cur_IncludeContent.ContentType.ge... [in template "35001#35028#499846" at line 6, column 29] ----
1<#if IncludeContent?? && IncludeContent.getSiblings()?has_content>
2 <div class="multi-article-content">
3 <article>
4 <#list IncludeContent.getSiblings() as cur_IncludeContent>
5 <#if getterUtil.getBoolean(cur_IncludeContent.getData())>
6 <#if cur_IncludeContent.ContentType.getData() == "html" && cur_IncludeContent.HTML.Location.getData() != "sidebar">
7 ${cur_IncludeContent.HTML.getData()}
8 <#elseif cur_IncludeContent.ContentType.getData() == "webcontent">
9 <#assign webContentData = jsonFactoryUtil.createJSONObject(cur_IncludeContent.WebContent.getData()) />
10 <#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
11 <#assign article = JournalArticleLocalService.fetchLatestArticle(webContentData.classPK?number)>
12 <@liferay_journal["journal-article"]
13 articleId=article.articleId
14 ddmTemplateKey="39614"
15 groupId=article.groupId
16 />
17 <#elseif cur_IncludeContent.ContentType.getData() == "map">
18 <#assign latitude = 0>
19 <#assign longitude = 0>
20
21 <#if (cur_IncludeContent.Geolocation.getData() != "")>
22 <#assign geolocationJSONObject = jsonFactoryUtil.createJSONObject(cur_IncludeContent.Geolocation.getData())>
23
24 <#assign latitude = geolocationJSONObject.getDouble("latitude")>
25 <#assign longitude = geolocationJSONObject.getDouble("longitude")>
26
27 <iframe
28 width="100%"
29 height="${cur_IncludeContent.Geolocation.Height.getData()}"
30 frameborder="0" style="border:0"
31 src="https://www.google.com/maps/embed/v1/place?key=AIzaSyCE_puCN1s2fEmjSpNjf8FmbhQVkhr0GdM&q=${latitude},${longitude}&zoom=${cur_IncludeContent.Geolocation.Zoom.getData()}" allowfullscreen >
32 </iframe>
33 </#if>
34 <#elseif cur_IncludeContent.ContentType.getData() == "cta">
35 <div class="CTA">
36 <div class="CTA__details">
37 <h2 class="CTA__title">${cur_IncludeContent.CTATitle.getData()}</h2>
38 <p class="CTA__summary">${cur_IncludeContent.CTATitle.Summary.getData()}</p>
39 </div>
40 <div class="CTA__actions">
41 <a aria-label="${cur_IncludeContent.CTATitle.ButtonDescription.getData()}" class="btn btn-primary" href="${cur_IncludeContent.CTATitle.URL.getData()}" target="<#if getterUtil.getBoolean(cur_IncludeContent.CTATitle.OpenInNewWindow.getData())>
42 _blank</#if>">${cur_IncludeContent.CTATitle.ButtonLabel.getData()}</a>
43 </div>
44 </div>
45 <#elseif cur_IncludeContent.ContentType.getData() == "districtcta">
46 <div class="py-5">
47 <#assign journalArticleId = .vars['reserved-article-id'].data>
48 <#assign journalArticleResourceLocalServiceUtil = serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")>
49 <#assign articleResourcePK = journalArticleResourceLocalServiceUtil.getArticleResourcePrimKey(groupId, journalArticleId)/>
50 <#if permissionChecker.hasPermission(themeDisplay.getScopeGroupId(), 'com.liferay.journal.model.JournalArticle', articleResourcePK, 'UPDATE') >
51 <a href="javascript:;" onclick="Liferay.Portlet.openWindow({bodyCssClass: 'dialog-with-footer', destroyOnHide: true, namespace: '_com_placecube_digitalplace_local_dorset_districtbasecta_web_portlet_DistrictBasedCtaPortlet_INSTANCE_${cur_IncludeContent.DistrictCTAInstanceID.getData()}_', portlet: '#p_p_id_com_placecube_digitalplace_local_dorset_districtbasecta_web_portlet_DistrictBasedCtaPortlet_INSTANCE_${cur_IncludeContent.DistrictCTAInstanceID.getData()}_', portletId: 'com_placecube_digitalplace_local_dorset_districtbasecta_web_portlet_DistrictBasedCtaPortlet_INSTANCE_${cur_IncludeContent.DistrictCTAInstanceID.getData()}', title: '\u0043\u006f\u006e\u0066\u0069\u0067\u0075\u0072\u0061\u0074\u0069\u006f\u006e', uri: 'https\x3a\x2f\x2fdev\x2edorset\x2edp\x2eplacecube\x2ecom\x3a443\x2fw\x2ftest-district-ctas\x3fp_p_id\x3dcom_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet\x26p_p_lifecycle\x3d0\x26p_p_state\x3dpop_up\x26assetEntryId\x3d1694639\x26_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_mvcPath\x3d\x252Fedit_configuration\x2ejsp\x26_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_settingsScope\x3dportletInstance\x26_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_redirect\x3d\x252F-\x252Ftest-district-ctas\x26_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_returnToFullPageURL\x3d\x252F-\x252Ftest-district-ctas\x26_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_portletConfiguration\x3dtrue\x26_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_portletResource\x3dcom_placecube_digitalplace_local_dorset_districtbasecta_web_portlet_DistrictBasedCtaPortlet_INSTANCE_${cur_IncludeContent.DistrictCTAInstanceID.getData()}\x26_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_resourcePrimKey\x3d381_LAYOUT_com_placecube_digitalplace_local_dorset_districtbasecta_web_portlet_DistrictBasedCtaPortlet_INSTANCE_${cur_IncludeContent.DistrictCTAInstanceID.getData()}'}); return false;">
52 Click to edit District CTA configuration
53 </a>
54 </#if>
55 <@liferay_portlet["runtime"]
56 instanceId="${cur_IncludeContent.DistrictCTAInstanceID.getData()}"
57 portletName = "com_placecube_digitalplace_local_dorset_districtbasecta_web_portlet_DistrictBasedCtaPortlet"
58 />
59 </div>
60 </#if>
61 </#if>
62 </#list>
63 </article>
64 </div>
65</#if>
An error occurred while processing the template.
The following has evaluated to null or missing: ==> cur_IncludeContent.HTML.Location [in template "35001#35028#1547042" at line 6, column 88] ---- Tip: It's the step after the last dot 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: #if cur_IncludeContent.ContentType.ge... [in template "35001#35028#1547042" at line 6, column 29] ----
1<#if IncludeContent?? && IncludeContent.getSiblings()?has_content>
2 <div class="multi-article-content">
3 <article>
4 <#list IncludeContent.getSiblings() as cur_IncludeContent>
5 <#if getterUtil.getBoolean(cur_IncludeContent.getData())>
6 <#if cur_IncludeContent.ContentType.getData() == "html" && cur_IncludeContent.HTML.Location.getData() == "sidebar">
7 ${cur_IncludeContent.HTML.getData()}
8 </#if>
9 </#if>
10 </#list>
11 </article>
12 </div>
13</#if>