Request Access button: empty label field in the CMS = no button (hint added to config)
deploy / build-and-publish (push) Successful in 39s
deploy / build-and-publish (push) Successful in 39s
This commit is contained in:
1 parent
caf42f95ec
commit
e21ee4b24e
3 files changed
+5
-5
No files matched your search
@@ -80,7 +80,7 @@ collections:
|
|||||||
- { label: Text, name: text, widget: text }
|
- { label: Text, name: text, widget: text }
|
||||||
- { label: Capabilities heading, name: capabilities_title, widget: string, required: false }
|
- { label: Capabilities heading, name: capabilities_title, widget: string, required: false }
|
||||||
- { label: Capabilities note, name: capabilities_note, widget: text, required: false }
|
- { label: Capabilities note, name: capabilities_note, widget: text, required: false }
|
||||||
- { label: Request Access button label, name: capabilities_cta, widget: string, required: false, default: Request Access }
|
- { label: Request Access button label, name: capabilities_cta, widget: string, required: false, hint: Scroll link under the checklist; leave EMPTY to show no button }
|
||||||
- { label: Pricing note, name: pricing_note, widget: text, required: false }
|
- { label: Pricing note, name: pricing_note, widget: text, required: false }
|
||||||
- label: Body
|
- label: Body
|
||||||
name: body
|
name: body
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ const PagePreview = ({ entry, widgetFor, widgetsFor }) => {
|
|||||||
</span>
|
</span>
|
||||||
</div>`,
|
</div>`,
|
||||||
)}
|
)}
|
||||||
<span class="pv-request">${d("capabilities_cta") || "Request Access"}</span>
|
${d("capabilities_cta") && html`<span class="pv-request">${d("capabilities_cta")}</span>`}
|
||||||
</section>
|
</section>
|
||||||
`}
|
`}
|
||||||
<div class="pv-body" data-key-path="body">${widgetFor("body")}</div>
|
<div class="pv-body" data-key-path="body">${widgetFor("body")}</div>
|
||||||
|
|||||||
@@ -258,11 +258,11 @@ const hasForm = pageId === "for-founders" || pageId === "for-innovation-hubs";
|
|||||||
</label>
|
</label>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
{fm.capabilities_cta && (
|
||||||
<p class="cta-row">
|
<p class="cta-row">
|
||||||
<a class="button" href="#lead-form">
|
<a class="button" href="#lead-form">{fm.capabilities_cta}</a>
|
||||||
{fm.capabilities_cta ?? "Request Access"}
|
|
||||||
</a>
|
|
||||||
</p>
|
</p>
|
||||||
|
)}
|
||||||
</section>
|
</section>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user