Bard section pairs #5517
Unanswered
jamiedumont
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I would have a Bard set called Update if you want to do everything in one field, or a separate field for the Update. Those are the two cleanest ways – doing a start and end thing is pretty janky IMO. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm a Statamic old-timer having built a few sites with V1 and a couple with V2 just as it launched but am now getting back into it again with V3.
I have a question regarding Bard sets. My goal is an update "block" that just wraps the other content and blocks the Bard editor can use. A visual example can be seen here (I'm switching from Zola to Statamic 🥳).
The markdown for that entry looks like this:
The gist is that I'm able to continue authoring content within the
<div></div>
pair that is created by the update shortcode, along with all other shortcodes for galleries, embeds, etc.With Bard I either have to nest another Bard editor with matching blocks inside the update block at the top level (minus the update block in nested editors to prevent recursive overflows), or have two update blocks — an "update_start" and an "update_end" — that provide the wrapping. My preference is the latter as even though it requires diligence in adding both start and end blocks I avoid maintaining two semi-identical sets of blocks and the recursive nature of nested Bards.
Am I missing a better way to do this?
Beta Was this translation helpful? Give feedback.
All reactions