Skip to content
Available for new work
Pages in Blog

GuidePremium

Layout and article blocks in CoullWorks Blog for Laravel

The columns, section, cta, toc, takeaways, faq, table, html and products blocks: every field with its limits, nesting rules, how each renders, the stored JSON, with screenshots.

Updated 16 November 2026Back to the package pageBuy

These blocks arrange content or add article furniture: columns, sections, a call to action, a contents list, key takeaways, a question list, a table, raw HTML and product cards. Adding, moving and deleting blocks is in the block editor. The editor screenshots show the Edit block dialog opened from the gear on a block's line; the rendered screenshots show the block on the Blade front end of the demo blog.

Columns#

The Columns block form: Number of columns set to 3 columns, then Column 1, Column 2 and Column 3, each with a Text block and its own Add button

The Columns block form with three columns. Each column holds its own blocks.

A rendered Columns block: three columns of short text, each with a bold heading, side by side

The three columns on the page.

What it is for. Short items side by side: three tips, a comparison, a before and after.

Add it. Picker group layout, entry Columns. Choose Number of columns, then press the Add your first block button inside each column.

Field (label)TypeRequiredDefaultAllowed values and validationWhat it does
Number of columnsSelect (not stored)Yes2 columns2, 3 or 4 columnsSets how many columns there are. Raising it adds empty columns. Lowering it removes empty ones only.
Columns (columns)List of columnsYes2 columns2 to 4Each column is labelled Column 1, Column 2 and so on. Drag to reorder; the bin deletes a column and asks "Delete this column?" first, because the blocks in it go too.
Blocks (columns.blocks)Nested block listYesEmptyUp to 20 blocks per column; no Section or Columns insideThe content of that column.

Stored: { "columns": [ { "blocks": [ { "type": "coullworks.text", "v": 1, "data": {...} } ] }, { "blocks": [ ... ] } ] }. The path of the first block in the second column is 3.columns.1.children.0 (when the Columns block is the fourth block).

Rules. One container level only: no Columns inside Columns, none inside a Section. Nested blocks count towards the post's block limit (see the block limits). Reducing the count never throws blocks away; a column that holds blocks stays, with the notice "Those columns hold blocks".

How it renders. Side by side from 768 px wide, stacked below. The reading and keyboard order is always column 1, then column 2, then column 3.

Tips. Keep columns short and alike in length. On a phone they become one long stack, so do not rely on a column being next to another.

Common mistakes. Putting a long article in a column, and expecting a Section to go inside (it will not be offered).

Section#

The Section block form: Width, Background color, Background, Padding and a Children list holding a Heading and a Text block

The Section block form with a wide width, a pale blue background and two child blocks.

A rendered Section block: a pale blue band with a heading Pack list and a line of text

The section on the page: a coloured band holding its blocks.

What it is for. A band with its own width, background and spacing that holds other blocks: a boxed pack list, a feature panel.

Add it. Picker group layout, entry Section. Use Add your first block under Children to fill it.

Field (label)TypeRequiredDefaultAllowed values and validationWhat it does
Width (width)SelectYestextnarrow, text, wide, bleedHow wide the section runs, from narrower than the text to wider than it.
Background color (background_color)Text inputNoEmptyUp to 32 characters: a hex colour (#eef3f8), a plain colour name (white) or a design token such as var(--cw-panel)The fill colour.
Background (background)Image uploadNoEmptyAn image up to 10 MBA background picture.
Padding (padding)SelectYesmdnone, sm, md, lgThe space between the edge and the content.
Children (children)Nested block listNoEmptyBlocks other than Section and ColumnsThe content.

Stored: { "width": "wide", "background_color": "#eef3f8", "background": null, "padding": "md", "children": [ { "type": "coullworks.heading", ... } ] }.

Tips. In the article-with-rail layout wide and bleed stay within the column, so the rail is not covered. Check text contrast against a dark background colour.

Common mistakes. A colour like rgb(...) or light blue (only the three forms above pass), and nesting a Columns block (not offered).

Cta#

The Cta block form: Style, Title, Text, Link, Address and Media

The Cta block form for a button linking to an address.

A rendered Cta block: an orange button reading Get the printable kit list with one line of text under it

The call to action in the button style.

What it is for. A single, clear next step: download, buy, read on.

Add it. Picker group commerce, entry Cta.

Field (label)TypeRequiredDefaultAllowed values and validationWhat it does
Style (style)SelectYesbuttonbutton, cardA button, or a card with the optional image and text.
Title (title)Text inputYesEmptyUp to 255 charactersThe headline, and the button words.
Text (text)Text inputNoEmptyUp to 500 charactersA supporting line.
Link (link)Link pickerYesEmptyAddress, Post, Category or TagWhere it goes. Choosing a kind shows its field: Address (up to 2048 characters, starting https://, http://, mailto:, tel:, / or #), or a searchable Post, Category or Tag. A post, category or tag link follows the item if its address changes.
Media (media)Image uploadNoEmptyAn image up to 10 MBAn image for the card style.

Stored: { "style": "button", "title": "Get the printable kit list", "text": "One page, no sign-up, tuned for a weekend.", "link": { "kind": "url", "url": "https://example.com/shop" }, "media": null }.

Tips. One call to action per article reads as an invitation; five read as an advert. Link to a Post, Category or Tag when the target is on your blog.

Common mistakes. Choosing Address and leaving the address empty (refused), and writing a Title that does not say what happens next.

Toc#

The Toc block form: Levels set to h2 and a Title of In this guide

The Toc block form has two fields.

A rendered Toc block: a box titled In this guide with one numbered link, Start with the weather you expect

The contents list. It lists the headings of this demo post that match the chosen level.

What it is for. A contents list at the top of a long article, built from the article's own Heading blocks.

Add it. Picker group navigation, entry Toc.

Field (label)TypeRequiredDefaultAllowed values and validationWhat it does
Levels (levels)SelectYesh2-h3h2, h2-h3Which heading levels are listed. h3 entries are indented under their h2.
Title (title)Text inputNoEmptyUp to 255 charactersA label above the list. When empty, the list is still named "On this page" for screen readers.

Stored: { "levels": "h2-h3", "title": "In this guide" }. The list itself is not stored; it is built from the headings each time the page is drawn.

Tips. It lists only Heading blocks, in order, including those inside a Section, and links to each heading's anchor. If the article has no matching heading, the block draws nothing at all.

Common mistakes. Adding a Toc to a short article, and expecting headings typed inside a Text block to be listed.

Takeaways#

The Takeaways block form: a Title and an Items list of four short lines

The Takeaways block form with four items.

The article rail on the page: On this page contents, a Key takeaways list of four bullets, the author and related posts

This capture is the article rail of the post, where the first Takeaways block is shown under On this page. The rail also holds the author box and related posts.

What it is for. The few points a reader should leave with. The first Takeaways block of a post also feeds the article rail when the post uses the Blog default article layout.

Add it. Picker group text, entry Takeaways. Press Add to items for each point.

Field (label)TypeRequiredDefaultAllowed values and validationWhat it does
Title (title)Text inputNoEmptyUp to 255 charactersThe heading of the list. When empty the page says "Key takeaways".
Items (items)ListYesEmpty1 to 20 itemsThe points.
Text (items.text)Text inputYesEmptyUp to 500 charactersOne point.

Stored: { "title": "Key takeaways", "items": [ { "text": "Choose for the worst night you expect, not the average one." } ] }.

Tips. Three to five short points. Write each so it makes sense alone. Where a post has no rail, the block is drawn as a boxed list in the body.

Common mistakes. Using it as a table of contents, and writing points longer than a sentence.

FAQ#

The FAQ block form: five question and answer pairs, each with a rich text answer, and an Open first toggle switched on

The FAQ block form with five items. Open first is on.

A rendered FAQ block: five questions as an accordion, the first open with its answer

The accordion on the page. The first answer is open because Open first is on.

What it is for. Questions and answers readers actually ask, as a list that opens and closes.

Add it. Picker group text, entry Faq. Press Add to items for each question.

Field (label)TypeRequiredDefaultAllowed values and validationWhat it does
Items (items)ListYesEmptyAt least 1 itemThe questions. Drag to reorder.
Question (items.question)Text inputYesEmptyUp to 500 charactersThe question.
Answer (items.answer)Rich text, full toolbarYesEmptyText; HTML is cleaned on saveThe answer.
Open first (open_first)ToggleNoOffOn or offOpens the first answer when the page loads.

Stored: { "items": [ { "question": "Is a footprint worth buying?", "answer": "<p>For the first season, yes.</p>" } ], "open_first": true }.

Search data. When the SEO setting seo.output.jsonld.faq is on (see SEO settings), the block also adds FAQPage structured data from the same questions and answers.

Tips. Write the question the way a reader would type it. Keep answers short and self-contained.

Common mistakes. Using an FAQ for marketing claims no reader asked, and stacking several FAQ blocks, which duplicates the structured data.

Table#

The Table block form: toggles for Header row and Header column, a Caption, a Striped toggle and a grid of cells with Add row and Add column buttons

The Table block form. The rows are a compact grid with one input per cell.

A rendered Table block: a table comparing tent shapes with a shaded header row, bold first column and a caption under it

The table on the page with the header row and header column switched on.

What it is for. Comparisons and figures: real table markup, readable by screen readers and search engines, not a picture of a table.

Add it. Picker group text, entry Table.

Field (label)TypeRequiredDefaultAllowed values and validationWhat it does
Header row (header_row)ToggleNoOffOn or offTreats the first row as column headings. In the grid it is shown shaded.
Header column (header_column)ToggleNoOffOn or offTreats the first column as row headings. In the grid it is shown bold.
Caption (caption)Text inputNoEmptyUp to 255 charactersA caption under the table.
Striped (striped)ToggleNoOffOn or offShades alternate rows.
Rows (rows)Cell gridYesA 2 by 2 grid of empty cellsAt least 1 row; every row must have the same number of cells. Error: "Every row needs N cells."The cells, one text input each.

The grid. Type in a cell to fill it. Add row and Add column add an empty row or column at the end. The small x on the right of a row removes that row; the x column above a column removes that column. The helper text under the grid reads "One input per cell. Simple inline HTML such as <strong> and <a> in a cell is kept." Other HTML is cleaned out. Long cell text scrolls inside its input; the real width is only seen in the rendered table.

Stored: { "header_row": true, "header_column": true, "caption": "Typical figures for two-person tents.", "striped": false, "rows": [ ["Shape", "Typical weight"], ["Tunnel", "1.8 to 2.4 kg"] ] }. Empty cells are kept, so every row stays as wide as the first.

Tips. Turn on Header row and Header column whenever the table has headings; that is what makes it usable with a screen reader. Keep tables under about six columns so they stay readable on a phone.

Common mistakes. Deleting a cell from one row by hand so the rows are uneven (refused), and using a table for layout.

Html#

The Html block form: one monospace text area holding a small piece of markup

The Html block form has one field.

A rendered Html block: the words Kit check in bold followed by pegs, poles, pouch

The markup from the form, drawn on the page.

What it is for. A snippet no other block can make. It is the last resort, in the picker group advanced.

Add it. Picker group advanced, entry Html.

Field (label)TypeRequiredDefaultAllowed values and validationWhat it does
Html (html)Monospace text areaYesEmptyUp to 200,000 charactersThe markup.

Stored: { "html": "<aside class=\"note\"><strong>Kit check:</strong> pegs, poles, pouch.</aside>" }.

Safety. The markup is passed through the package's HTML sanitiser when you save, so scripts, event handler attributes and other unsafe markup are removed. It is not a way to add a tracking script or an iframe; use the Embed or Video block for third-party content.

Common mistakes. Pasting a script or an iframe and wondering where it went, and using Html for something a Text or Table block would do with better accessibility.

Products#

The Products block form: Layout grid, Count 4, Source rule, a Cards list of four collapsed cards, then Collection key and Rule key

The Products block form with Source set to rule. Collection key (empty) and Rule key, a select showing "Select an option" until you choose one of your rules, come after the cards.

A rendered Products block: four product cards in a grid, each with a picture, a title and a price

Four cards in the grid layout.

What it is for. A row or grid of product cards inside an article. The package has no product catalogue of its own, so the cards are either typed by hand or supplied by your application.

Add it. Picker group commerce, entry Products.

Field (label)TypeRequiredDefaultAllowed values and validationWhat it does
Layout (layout)SelectYesgridcarousel, gridA grid of cards, or a sideways carousel.
Count (count)Number inputYes4A whole number from 1 to 24How many cards to show.
Source (source)SelectNoEmpty, then worked outcards, collection, ruleWhere the cards come from. When empty it is cards if there are cards, otherwise collection if a collection key is set. The editor offers rule only when your application binds a rule provider.
Cards (cards)ListNoEmptyNeeded when Source is cardsThe hand-made cards.
Title (cards.title)Text inputYesEmptyUp to 255 charactersThe card title.
Link (cards.link)Link pickerYesEmptyAddress, Post, Category or TagWhere the card goes.
Media (cards.media)Image uploadNoEmptyAn image up to 10 MBThe card picture.
Alt (cards.alt)Text inputYes when the card has a picture, unless Decorative is onEmptyUp to 255 charactersAlternative text for the picture.
Decorative (cards.decorative)ToggleNoOffOn or offMarks the card picture as decoration.
Price text (cards.price_text)Text inputNoEmptyUp to 64 charactersThe price as text, for example £249.
Product ref (cards.product_ref)Text inputNoEmptyUp to 191 charactersA reference to a product in your catalogue, such as a SKU, for your ProductProvider to turn into live data.
Collection key (collection_key)Text inputNoEmptyUp to 191 charactersThe key of a collection in your catalogue.
Rule key (rule_key)Select (shown when Source is rule)Yes when Source is ruleEmptyOne of the rules your ProductRuleProvider listsA named rule that picks products, for example "Best sellers".

Error when no cards and no collection are given: "Add at least one card or set a collection key."

Stored: { "layout": "grid", "count": 4, "source": "cards", "cards": [ { "title": "Two-person dome tent", "link": { "kind": "url", "url": "https://example.com/shop" }, "media": {...}, "alt": "A dome tent", "decorative": false, "price_text": "£249", "product_ref": "TENT-DOME-2" } ], "collection_key": null, "rule_key": null }.

Where the cards come from. The cards source uses what you typed. The collection source and the rule source name something in your own application, and its ProductProvider (and for rules, ProductRuleProvider) turn those names into cards; see the package's blocks guide for the interfaces. A stored rule block whose rule has gone is kept unchanged, draws nothing on the page, and is counted on the dashboard widget "Broken internal links". The rule source is not drawn by the Inertia front end.

Accessibility. The grid is a list of links. The carousel is announced as a carousel region named "Products" with each card labelled "slide N of M", its scroll area can be reached with the keyboard, and previous and next buttons appear once JavaScript has run. Without JavaScript the carousel is a plain scrollable list of the same links. Give every card picture real alt text or mark it decorative.

Tips. Use grid for up to four cards and carousel for more. Keep price text short and say what it includes elsewhere in the article.

Common mistakes. A card with a picture and no alt text (refused), Count higher than the number of cards (only the cards that exist are drawn), and picking rule without a provider (the option is hidden).

Available for new work

UK based · PHP · Python · JS · TS. Every first call is free.