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:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user