Template Part or Reusable Block?

I’m not 100% sure what’s the difference and the pros and cons of these two. For headers of cause I use the Template Part. The Reusable Block I use for Query Items for example but I have no particular reason for these decision.
So I was wondering how and when you use the Template Part and Reusable Block.

Bildschirmfoto 2023-05-09 um 19.26.33

Hi @Jonas,

We use Reusable blocks for any reusable page content that we or our clients need to drop into a page that can be edited in a single place and have those edits update all instances of the reusable block on any page it is used.
Examples: FAQ section, customer logos grid, newsletter sign up forms, etc.

We use Block Patterns for any reusable content templates that we or our clients can use as a starting point where each instance can have unique content.
Examples: Headed content, CTA box with action buttons, side-by-side text and image content, etc, etc.

We use Template Parts / fragments for any site content to be used to arrange pages and/or be selectively displayed on pages via the Cwicly Themer visibility conditions.
Examples: Headers, Footers, CTA sections, Banners, etc.

6 Likes

Hi @StrangeTech!

thanks a lot for taking the time to write this detailed response! Very helpful!

What do you mean with “Block Patterns”?

Glad it is helpful. :smile:

We remove the standard block patterns as most of the time they are not suitable, especially for a Cwicly site and we add curated ones specific to the requirements of each project/client.

2 Likes

Thanks! Wasn’t aware of this feature. Will take a closer look at this!

With the exciting new components features being previewed next Wednesday, the answer to the question “Reusable Block or Block Pattern?” may soon become “Component!”.