Request Access button: empty label field in the CMS = no button (hint added to config)
deploy / build-and-publish (push) Successful in 39s

This commit is contained in:
Keith
2026-11-21 22:08:31 +01:00
parent caf42f95ec
commit e21ee4b24e
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ collections:
- { label: Text, name: text, widget: text }
- { label: Capabilities heading, name: capabilities_title, widget: string, 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: Body
name: body
+1 -1
View File
@@ -134,7 +134,7 @@ const PagePreview = ({ entry, widgetFor, widgetsFor }) => {
</span>
</div>`,
)}
<span class="pv-request">${d("capabilities_cta") || "Request Access"}</span>
${d("capabilities_cta") && html`<span class="pv-request">${d("capabilities_cta")}</span>`}
</section>
`}
<div class="pv-body" data-key-path="body">${widgetFor("body")}</div>
+5 -5
View File
@@ -258,11 +258,11 @@ const hasForm = pageId === "for-founders" || pageId === "for-innovation-hubs";
</label>
))}
</div>
<p class="cta-row">
<a class="button" href="#lead-form">
{fm.capabilities_cta ?? "Request Access"}
</a>
</p>
{fm.capabilities_cta && (
<p class="cta-row">
<a class="button" href="#lead-form">{fm.capabilities_cta}</a>
</p>
)}
</section>
)
}