For Community Partners - Magellan of Idaho
For Community Partners
Magellan is for individuals and families
Everyone deserves the care they need to lead a healthy, happy life. We’re here to help you and your family get support from the Idaho Behavioral Health Program.
-
Quick Links
Behavioral health is the connection between your daily life and your physical and mental wellbeing.
Fel uppstod under bearbetning av mallen.
The following has evaluated to null or missing: ==> Text [in template "20097#20123#PS-ACTION-BANNER" at line 101, column 36] ---- 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: ${Text.getData()} [in template "20097#20123#PS-ACTION-BANNER" at line 101, column 34] ----
1<#-- declare variables -->
2<#assign
3 buttonLink = ButtonLink.getData()
4 showModal = false
5 typeButton = 'Button'
6 bannerStyle = 'background-color: #D6F1FA;'
7 buttonStyle = 'color: #ffffff;'
8 textStyle = 'color: var(--body-color);'
9 vendorModalId = stringUtil.randomString()
10 isBenefitTipBanner = (icon.getData())?? && icon.getData() != ''
11 imageAlt = ''
12 imageSrc = ''
13 descriptionStyle = 'color: #232323;'
14 currentArticleId = .vars['reserved-article-id'].data
15 openInNewTab = ''
16/>
17
18<#-- Conditions to satisfy action banner -->
19<#if isBenefitTipBanner>
20 <#assign
21 imageAlt = icon.getAttribute("alt")
22 imageSrc = icon.getData()
23 />
24<#else>
25 <#assign
26 imageAlt = Image.getAttribute("alt")
27 imageSrc = Image.getData()
28 />
29</#if>
30
31
32<#if (buttonType.getData())??>
33 <#assign
34 typeButton = buttonType.getData()!''
35 />
36</#if>
37
38<#if typeButton == 'Button'>
39 <#assign
40 buttonStyle += 'padding: 0.625rem 1rem;'
41 />
42</#if>
43
44<#if ModalTitle??>
45 <#assign showModal = ModalTitle.getData()?has_content />
46</#if>
47
48<#if !showModal && link_newtab.getData()>
49 <#assign openInNewTab = 'target="_blank"' />
50</#if>
51
52<#macro ctaButton>
53 <#assign
54 buttonAttributes = ''
55 buttonClasses = ''
56 buttonTag = 'button'
57 />
58
59 <#switch typeButton>
60 <#case "Button">
61 <#assign
62 buttonAttributes = openInNewTab + showModal?then('', ' href="${buttonLink}"')
63 buttonClasses = 'subtitle btn btn-primary mt-3'
64 buttonTag = showModal?then('button', 'a')
65 />
66 <#break>
67 <#case "Link">
68 <#assign
69 buttonAttributes = openInNewTab + ' href="${buttonLink}"'
70 buttonClasses = 'text-decoration-none'
71 buttonTag = 'a'
72 />
73 <#break>
74 <#case "Paragraph">
75 <#assign
76 buttonTag = 'span'
77 />
78 <#break>
79 </#switch>
80 <#if (ButtonText.getData())?? && (ButtonText.getData()?length > 0)>
81 <${buttonTag}
82 ${buttonAttributes}
83 class="${buttonClasses} action-modal-trigger"
84 ${showModal?then('onclick="toggleVendorArticleModal(\'${vendorModalId}\')"', "")}
85 style="${buttonStyle}"
86 id="${currentArticleId}"
87 >
88
89 ${ButtonText.getData()}
90 <#if showModal>
91 <@clay.icon cssClass="ml-2" symbol="open-in-new" />
92 </#if>
93 </${buttonTag}>
94 </#if>
95</#macro>
96
97
98<#-- action banner frame -->
99<div class="action-banner-container ${isBenefitTipBanner?then('benefit-banner-container', '')}" style="${bannerStyle}">
100 <div class="action-banner-info">
101 <h5 style="${textStyle}">${Text.getData()}</h5>
102 <#if (description.getData())??>
103 <p style="${descriptionStyle}">${description.getData()}</p>
104 </#if>
105 <@ctaButton />
106 </div>
107 <div class="action-banner-img">
108 <#if !isBenefitTipBanner>
109 <div class="action-banner-img-polygon"></div>
110 </#if>
111 <img alt="${imageAlt}" src="${imageSrc}"/>
112 <#if !isBenefitTipBanner>
113 <div class="action-banner-img-vector" style="${bannerStyle}"></div>
114 </#if>
115 </div>
116</div>
117
118<#-- display vendor modal for external link -->
119<#if showModal>
120
121 <#include "${templatesPath}/PS-VENDOR-MODAL" />
122
123
124 <@vendorModal
125 id="vendorArticleModal${vendorModalId}"
126 title=ModalTitle.getData()
127 text=ModalText.getData()
128 buttonText=ModalButtonText.getData()
129 buttonLink=buttonLink
130 />
131</#if>
132
133<script>
134 (function() {
135 const bannerButton = document.querySelector('.action-banner-container .action-modal-trigger');
136 bannerButton.addEventListener('click', function (event) {
137 console.log("testing");
138 themeDisplay.trackEvents("cta", { title: "ddm Templates action - CTA Banner", btnLabel: "cta-banner-button", type: "ddmTemplatesaction" })
139 });
140 })();
141</script>
Section Title #1
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras mattis consectetur purus sit amet fermentum. Vestibulum id ligula porta felis euismod semper. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- Donec sed odio dui.
- Sed posuere consectetur est at lobortis.
- Cras mattis consectetur purus sit amet fermentum.
Section Headers 2
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras mattis consectetur purus sit amet fermentum. Vestibulum id ligula porta felis euismod semper. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- Donec sed odio dui.
- Sed posuere consectetur est at lobortis.
- Cras mattis consectetur purus sit amet fermentum.
Answer
Answer
Answer
Answer
Fel uppstod under bearbetning av mallen.
For "&&" right-hand operand: Expected a boolean, but this has evaluated to a string (wrapper: f.t.SimpleScalar): ==> link_newtab.getData() [in template "20097#20123#PS-ACTION-BANNER" at line 48, column 20] ---- FTL stack trace ("~" means nesting-related): - Failed at: #if !showModal && link_newtab.getData() [in template "20097#20123#PS-ACTION-BANNER" at line 48, column 1] ----
1<#-- declare variables -->
2<#assign
3 buttonLink = ButtonLink.getData()
4 showModal = false
5 typeButton = 'Button'
6 bannerStyle = 'background-color: #D6F1FA;'
7 buttonStyle = 'color: #ffffff;'
8 textStyle = 'color: var(--body-color);'
9 vendorModalId = stringUtil.randomString()
10 isBenefitTipBanner = (icon.getData())?? && icon.getData() != ''
11 imageAlt = ''
12 imageSrc = ''
13 descriptionStyle = 'color: #232323;'
14 currentArticleId = .vars['reserved-article-id'].data
15 openInNewTab = ''
16/>
17
18<#-- Conditions to satisfy action banner -->
19<#if isBenefitTipBanner>
20 <#assign
21 imageAlt = icon.getAttribute("alt")
22 imageSrc = icon.getData()
23 />
24<#else>
25 <#assign
26 imageAlt = Image.getAttribute("alt")
27 imageSrc = Image.getData()
28 />
29</#if>
30
31
32<#if (buttonType.getData())??>
33 <#assign
34 typeButton = buttonType.getData()!''
35 />
36</#if>
37
38<#if typeButton == 'Button'>
39 <#assign
40 buttonStyle += 'padding: 0.625rem 1rem;'
41 />
42</#if>
43
44<#if ModalTitle??>
45 <#assign showModal = ModalTitle.getData()?has_content />
46</#if>
47
48<#if !showModal && link_newtab.getData()>
49 <#assign openInNewTab = 'target="_blank"' />
50</#if>
51
52<#macro ctaButton>
53 <#assign
54 buttonAttributes = ''
55 buttonClasses = ''
56 buttonTag = 'button'
57 />
58
59 <#switch typeButton>
60 <#case "Button">
61 <#assign
62 buttonAttributes = openInNewTab + showModal?then('', ' href="${buttonLink}"')
63 buttonClasses = 'subtitle btn btn-primary mt-3'
64 buttonTag = showModal?then('button', 'a')
65 />
66 <#break>
67 <#case "Link">
68 <#assign
69 buttonAttributes = openInNewTab + ' href="${buttonLink}"'
70 buttonClasses = 'text-decoration-none'
71 buttonTag = 'a'
72 />
73 <#break>
74 <#case "Paragraph">
75 <#assign
76 buttonTag = 'span'
77 />
78 <#break>
79 </#switch>
80 <#if (ButtonText.getData())?? && (ButtonText.getData()?length > 0)>
81 <${buttonTag}
82 ${buttonAttributes}
83 class="${buttonClasses} action-modal-trigger"
84 ${showModal?then('onclick="toggleVendorArticleModal(\'${vendorModalId}\')"', "")}
85 style="${buttonStyle}"
86 id="${currentArticleId}"
87 >
88
89 ${ButtonText.getData()}
90 <#if showModal>
91 <@clay.icon cssClass="ml-2" symbol="open-in-new" />
92 </#if>
93 </${buttonTag}>
94 </#if>
95</#macro>
96
97
98<#-- action banner frame -->
99<div class="action-banner-container ${isBenefitTipBanner?then('benefit-banner-container', '')}" style="${bannerStyle}">
100 <div class="action-banner-info">
101 <h5 style="${textStyle}">${Text.getData()}</h5>
102 <#if (description.getData())??>
103 <p style="${descriptionStyle}">${description.getData()}</p>
104 </#if>
105 <@ctaButton />
106 </div>
107 <div class="action-banner-img">
108 <#if !isBenefitTipBanner>
109 <div class="action-banner-img-polygon"></div>
110 </#if>
111 <img alt="${imageAlt}" src="${imageSrc}"/>
112 <#if !isBenefitTipBanner>
113 <div class="action-banner-img-vector" style="${bannerStyle}"></div>
114 </#if>
115 </div>
116</div>
117
118<#-- display vendor modal for external link -->
119<#if showModal>
120
121 <#include "${templatesPath}/PS-VENDOR-MODAL" />
122
123
124 <@vendorModal
125 id="vendorArticleModal${vendorModalId}"
126 title=ModalTitle.getData()
127 text=ModalText.getData()
128 buttonText=ModalButtonText.getData()
129 buttonLink=buttonLink
130 />
131</#if>
132
133<script>
134 (function() {
135 const bannerButton = document.querySelector('.action-banner-container .action-modal-trigger');
136 bannerButton.addEventListener('click', function (event) {
137 console.log("testing");
138 themeDisplay.trackEvents("cta", { title: "ddm Templates action - CTA Banner", btnLabel: "cta-banner-button", type: "ddmTemplatesaction" })
139 });
140 })();
141</script>