  {"id":2749,"date":"2024-02-06T10:20:54","date_gmt":"2024-02-06T15:20:54","guid":{"rendered":"https:\/\/carleton.ca\/cutheme-docs\/?page_id=2749"},"modified":"2024-09-18T20:31:21","modified_gmt":"2024-09-19T00:31:21","slug":"module-6-understanding-patterns","status":"publish","type":"page","link":"https:\/\/carleton.ca\/cutheme-docs\/mastery\/module-6-block-patterns\/module-6-understanding-patterns\/","title":{"rendered":"Understanding Block Patterns"},"content":{"rendered":"\n<section class=\"w-screen px-6 cu-section cu-section--white ml-offset-center md:px-8 lg:px-14\">\n    <div class=\"space-y-6 cu-max-w-child-5xl  md:space-y-10 cu-prose-first-last\">\n\n            <div class=\"cu-textmedia flex flex-col lg:flex-row mx-auto gap-6 md:gap-10 my-6 md:my-12 first:mt-0 max-w-5xl\">\n        <div class=\"justify-start cu-textmedia-content cu-prose-first-last\" style=\"flex: 0 0 100%;\">\n            <header class=\"font-light prose-xl cu-pageheader md:prose-2xl cu-component-updated cu-prose-first-last\">\n                                    <h1 class=\"cu-prose-first-last font-semibold !mt-2 mb-4 md:mb-6 relative after:absolute after:h-px after:bottom-0 after:bg-cu-red after:left-px text-3xl md:text-4xl lg:text-5xl lg:leading-[3.5rem] pb-5 after:w-10 text-cu-black-700 not-prose\">\n                        Understanding Block Patterns\n                    <\/h1>\n                \n                                \n                                    \n\n\n<p>Module 6.1 \u2013 Mastery: Patterns: Introduction<\/p>\n\n\n\n                            <\/header>\n\n                    <\/div>\n\n            <\/div>\n\n    <\/div>\n<\/section>\n\n\n\n\n<div class=\"w-full max-w-xl mx-auto overflow-hidden bg-white rounded-lg shadow-lg cu-stackedlist cu-component not-contained not-prose\">\n    <h2 class=\"px-6 py-4 text-base font-semibold border-b rounded-t-lg md:text-xl bg-gray-50 text-cu-black-800\">\n        Table of Contents\n    <\/h2>\n    <div class=\"grid cu-scrollto cu-stackedlist--toc cu-stackedlist--1 md:grid-cols-1\">\n            <div class=\"space-y-1\">\n                    \n            <div class=\"pl-4 text-cu-red-700\">\n                <div class=\"flex gap-2 pb-3 text-base md:text-lg\">\n                    <span class=\"font-light text-cu-black-700\">\n                        1.\n                    <\/span>\n\n                    <a href=\"#what-is-a-block-pattern\" class=\"font-medium hover:underline\">\n                        What is a Block Pattern?\n                    <\/a>\n                <\/div>\n\n                            <\/div>\n                    \n            <div class=\"pl-4 text-cu-red-700\">\n                <div class=\"flex gap-2 pb-3 text-base md:text-lg\">\n                    <span class=\"font-light text-cu-black-700\">\n                        2.\n                    <\/span>\n\n                    <a href=\"#synced-vs-non-synced-patterns\" class=\"font-medium hover:underline\">\n                        Synced vs. Non-synced Patterns\n                    <\/a>\n                <\/div>\n\n                                        <div class=\"space-y-1\">\n                    \n            <div class=\"pl-10 text-cu-red-700\">\n                <div class=\"flex gap-2 pb-3 text-base md:text-lg\">\n                    <span class=\"font-light text-cu-black-700\">\n                        2.1\n                    <\/span>\n\n                    <a href=\"#synced-pattern\" class=\"font-medium hover:underline\">\n                        Synced Pattern\n                    <\/a>\n                <\/div>\n\n                            <\/div>\n                    \n            <div class=\"pl-10 text-cu-red-700\">\n                <div class=\"flex gap-2 pb-3 text-base md:text-lg\">\n                    <span class=\"font-light text-cu-black-700\">\n                        2.2\n                    <\/span>\n\n                    <a href=\"#non-synced-pattern\" class=\"font-medium hover:underline\">\n                        Non-Synced Pattern\n                    <\/a>\n                <\/div>\n\n                            <\/div>\n            <\/div>\n\n                            <\/div>\n                    \n            <div class=\"pl-4 text-cu-red-700\">\n                <div class=\"flex gap-2 pb-3 text-base md:text-lg\">\n                    <span class=\"font-light text-cu-black-700\">\n                        3.\n                    <\/span>\n\n                    <a href=\"#video-tutorial\" class=\"font-medium hover:underline\">\n                        Video Tutorial\n                    <\/a>\n                <\/div>\n\n                            <\/div>\n                    \n            <div class=\"pl-4 text-cu-red-700\">\n                <div class=\"flex gap-2 pb-3 text-base md:text-lg\">\n                    <span class=\"font-light text-cu-black-700\">\n                        4.\n                    <\/span>\n\n                    <a href=\"#try-it-out\" class=\"font-medium hover:underline\">\n                        Try it Out!\n                    <\/a>\n                <\/div>\n\n                            <\/div>\n            <\/div>\n\n    <\/div>\n<\/div>\n\n\n\n<h2 id=\"what-is-a-block-pattern\" class=\"wp-block-heading\">What is a Block Pattern?<\/h2>\n\n\n\n<p>Patterns refer to pre-designed layouts that allow you to easily create consistent and reusable content on your website. They can include one block or a combination of blocks.<\/p>\n\n\n\n<p>Patterns help streamline your content creation process by providing you with ready-made designs for common page elements such as headers, and various section layouts.<\/p>\n\n\n\n<h2 id=\"synced-vs-non-synced-patterns\" class=\"wp-block-heading\">Synced vs. Non-synced Patterns<\/h2>\n\n\n\n<p>There are two different kinds of patterns: <strong class=\"myprefix-text-bold\">synced<\/strong> and <strong class=\"myprefix-text-bold\">non-synced.<\/strong> They both solve a similar problem -providing users with ways to easily add commonly used blocks.<\/p>\n\n\n\n<p>However, they are quite different from each other.<\/p>\n\n\n\n<p>The biggest difference is that if you make a change to a synced pattern, it changes the pattern on every page or post you\u2019ve used it on.<\/p>\n\n\n\n<h3 id=\"synced-pattern\" class=\"wp-block-heading\">Synced Pattern<\/h3>\n\n\n\n<p>A synced pattern is useful to lay out content that will be exactly the same everywhere on your site. It likely does not change often and when it does, you want the changes to be sitewide.<\/p>\n\n\n\n<p>For example, you might use a synced pattern for: <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A newsletter signup<\/li>\n\n\n\n<li>Asking users to follow you on social media at the end of blog posts<\/li>\n\n\n\n<li>Adding calls-to-action at the end of pages or posts (for example &#8211; register for a particular event or program)<\/li>\n\n\n\n<li>Forms &#8211; such as feedback or contact, that may appear on a few pages<\/li>\n\n\n\n<li>Seasonal page elements or announcements<\/li>\n<\/ul>\n\n\n\n<p><strong class=\"myprefix-text-bold\">Important &#8211; Changing a synced pattern<\/strong><\/p>\n\n\n\n<p>When you create a synced pattern, <strong class=\"myprefix-text-bold\"><em class=\"myprefix-text-italic\">any changes that you make to the pattern will cascade <\/em><\/strong><strong class=\"myprefix-text-bold\"><em class=\"myprefix-text-italic\">t<\/em><\/strong><strong class=\"myprefix-text-bold\"><em class=\"myprefix-text-italic\">h<\/em><\/strong><strong class=\"myprefix-text-bold\"><em class=\"myprefix-text-italic\">r<\/em><\/strong><strong class=\"myprefix-text-bold\"><em class=\"myprefix-text-italic\">o<\/em><\/strong><strong class=\"myprefix-text-bold\"><em class=\"myprefix-text-italic\">u<\/em><\/strong><strong class=\"myprefix-text-bold\"><em class=\"myprefix-text-italic\">g<\/em><\/strong><strong class=\"myprefix-text-bold\"><em class=\"myprefix-text-italic\">h<\/em><\/strong><strong class=\"myprefix-text-bold\"><em class=\"myprefix-text-italic\">o<\/em><\/strong><strong class=\"myprefix-text-bold\"><em class=\"myprefix-text-italic\">u<\/em><\/strong><strong class=\"myprefix-text-bold\"><em class=\"myprefix-text-italic\">t<\/em><\/strong><strong class=\"myprefix-text-bold\"><em class=\"myprefix-text-italic\"> your entire site to wherever the pattern is implemented.<\/em><\/strong> This is an important distinction to keep in mind as every change may affect several pages across your website.<\/p>\n\n\n\n<h3 id=\"non-synced-pattern\" class=\"wp-block-heading\">Non-Synced Pattern<\/h3>\n\n\n\n<p>A non-synced pattern provides a foundational set of blocks that you can use as a starting point (or template) to lay out content and then customize as needed. <\/p>\n\n\n\n<p>For example, you might use a non-synced pattern for: <\/p>\n\n\n\n<p>Module pages on a training site &#8211; on this site, we have a pattern that includes blocks for the intro, Step-by-Step, a training video and video transcript, and Try it Out exercises. <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Program pages<\/li>\n\n\n\n<li>Services that your department offers<\/li>\n\n\n\n<li>Research projects<\/li>\n<\/ul>\n\n\n\n<p><strong class=\"myprefix-text-bold\">Important &#8211; Changing a Non-Synced Pattern<\/strong><\/p>\n\n\n\n<p>Changes that you make to a non-synced pattern or to a page that contains a non-synced pattern are localized. They will not affect any other pages or posts where the pattern is used. <\/p>\n\n\n\n<h2 id=\"video-tutorial\" class=\"wp-block-heading\">Video Tutorial<\/h2>\n\n\n\n<div class=\"cu-section cu-section-5xl not-contained  cu-prose cu-prose-dark\"><figure class=\"cu-embed cu-component not-contained mx-auto max-w-5xl\"><div class=\"relative w-full pb-[56.25%] overflow-hidden border border-cu-black-100\"><iframe title=\"Videos Embed\" src=\"https:\/\/www.youtube.com\/embed\/QBDb8_ssY6Y\" class=\"cu-embed-iframe\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/div><\/figure><\/div>\n\n\n\n<section class=\"w-screen px-6 cu-section cu-section--white ml-offset-center md:px-8 lg:px-14\">\n    <div class=\"space-y-6 cu-max-w-child-5xl  md:space-y-10 cu-prose-first-last\">\n\n        \n    \n    <dl class=\"cu-description cu-component-updated\">\n        \n    <div class=\"grid pt-4 pb-3 border-b accordion border-cu-black-100 md:pt-6 md:pb-5 first:border-t\">\n        <dt class=\"font-semibold not-prose\">\n            <button class=\"flex items-center justify-between w-full text-left accordion__button\" aria-expanded=\"false\" aria-controls=\"accordion-transcript\">\n                <span class=\"flex-1 ml-auto text-left break-words whitespace-normal cu-icon\">\n                    <strong class=\"myprefix-text-bold\">Transcript<\/strong>\n                <\/span>\n                <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" fill=\"none\" viewbox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\" class=\"w-5 h-5 ml-auto transition-transform rotate-0 accordion__icon text-cu-black-500\">\n                    <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M8.25 4.5l7.5 7.5-7.5 7.5\"><\/path>\n                <\/svg>\n            <\/button>\n        <\/dt>\n        <dd class=\"p-0 mt-0 cu-prose cu-prose-first-last accordion__content md:p-0 md:mt-0\" hidden=\"\" id=\"accordion-transcript\">\n            \n\n<p>Hello, today I will be going over how you can better understand block patterns within CuTheme.&nbsp;<\/p>\n\n\n\n<p>First, a block pattern is a pre-designed template that lets you easily create consistent&nbsp;&nbsp;<\/p>\n\n\n\n<p>and reusable content within your site. This can include one block, or a combination of blocks.<\/p>\n\n\n\n<p>Patterns streamline the content creation process, by providing you with ready-to-use designs for common page elements, like headers, information sections, and so much more.<\/p>\n\n\n\n<p>There are two different kinds of patterns:&nbsp;synced and non-synced. They both solve&nbsp;&nbsp;a similar problem: providing users with ways to easily add commonly used blocks.<\/p>\n\n\n\n<p>However, it is important to note that the two are very different.<\/p>\n\n\n\n<p>You should make sure to use the right patterns in the right places. Otherwise, using the wrong type can result in major unintentional changes to your site, which will have to be fixed.<\/p>\n\n\n\n<p>Now, onto the types of patterns.<\/p>\n\n\n\n<p>A synced pattern is useful to lay out content that will be exactly the same everywhere on your&nbsp;site. It likely does not change often and when it does, you want the changes to be sitewide.<\/p>\n\n\n\n<p>For example, you could use a synced pattern for things like a newsletter signup,&nbsp;links to social media sites, and forms.<\/p>\n\n\n\n<p>You should be aware that when you create a synced pattern, any changes that you make to the pattern will cascade throughout your entire site, wherever it is implemented. This is an important distinction to keep in mind as every change may affect several pages across your website.<\/p>\n\n\n\n<p>On the other hand, a non-synced pattern provides a foundational set of blocks that you can use as a starting point (or template) to lay out content and then customize as you need.<\/p>\n\n\n\n<p>Non-synced patterns can be used for things such&nbsp;as module pages on a training site, and research projects.<\/p>\n\n\n\n<p>Changes that you make to a non-synced pattern or to a page that contains a non-synced pattern are localized. They will not affect any other pages or posts where the pattern is used.<\/p>\n\n\n        <\/dd>\n    <\/div>\n\n\n    <\/dl>\n\n\n    <\/div>\n<\/section>\n\n\n\n<h2 id=\"try-it-out\" class=\"wp-block-heading\">Try it Out!<\/h2>\n\n\n\n<p>Now that you have learned what a pattern is, time to try it out!<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Review the pages on your site. \n<ul class=\"wp-block-list\">\n<li>Are there any with similar elements where a pattern might be useful?<\/li>\n\n\n\n<li>Would you use a synced or non-synced pattern?<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Note your ideas. In the next 2 modules, you will learn how to create and implement block patterns.<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/carleton.ca\/cutheme-docs\/mastery\/module-6-block-patterns\/how-to-create-patterns\/\">Next: How to create a pattern<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>What is a Block Pattern? Patterns refer to pre-designed layouts that allow you to easily create consistent and reusable content on your website. They can include one block or a combination of blocks. Patterns help streamline your content creation process by providing you with ready-made designs for common page elements such as headers, and various [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2769,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_cu_dining_location_slug":"","footnotes":"","_links_to":"","_links_to_target":""},"cu_page_type":[11],"class_list":["post-2749","page","type-page","status-publish","hentry","cu_page_type-general"],"acf":{"cu_post_thumbnail":false},"_links":{"self":[{"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/pages\/2749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/comments?post=2749"}],"version-history":[{"count":5,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/pages\/2749\/revisions"}],"predecessor-version":[{"id":4250,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/pages\/2749\/revisions\/4250"}],"up":[{"embeddable":true,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/pages\/2769"}],"wp:attachment":[{"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/media?parent=2749"}],"wp:term":[{"taxonomy":"cu_page_type","embeddable":true,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/cu_page_type?post=2749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}