20 Comments

  1. Stephen Vaughan
    · Reply

    Nice one 👍

    Will give it a test run tomorrow.

    Report

  2. Aaron
    · Reply

    Can’t wait to try this out, Justin. Thank you.

    But what I really want to know is whether it’s better to create Block Patterns, or use the group block to create a pattern and make it reusable? What would be the biggest difference?

    Report

  3. Hardeep Asrani
    · Reply

    I’ve some ideas for this plugin. If you are open to contribution, should I start an issue in the repository?

    Report

  4. Dave Mackey
    · Reply

    Awesome! Can’t wait to give it a try!

    Report

  5. Mel Choyce-Dwan
    · Reply

    This is great — thanks for sharing, Justin!

    Report

  6. Nick
    · Reply

    Works like a charm. And because the plugin uses CPT and Gutenberg, and no Custom Fields, you can very easily export your Patterns from the Tools->Export screen, and install them in any other website.

    At this point I’m guessing that in the future the Patterns would be allowed to be organized in Categories and not let the core, and numerous plugins and themes dump all their patterns in one place – what a nightmare that would be !

    Manually creating the Patterns with php is very easy, so it’s not a big issue, but for the extremely lazy theme/plugin developers (and I’m the president of that club!), it would have been nice to have a feature to export the php code needed to register the patterns in our products, similar to what the CPT UI and ACF plugins do (these 2 spoil us, a lot).

    Nevertheless, in my book, this is a 5 star plugin, and will open the door to virtually anyone having the ability to create all sorts of patterns, and not to resort into using the Reusable blocks, where if each instance has to be unique, one has to covert them to Regular Blocks first, just to independently edit them.

    Once again Justin,
    Thanks.

    Report

    • Justin Tadlock
      · Reply

      And because the plugin uses CPT and Gutenberg, and no Custom Fields, you can very easily export your Patterns from the Tools->Export screen, and install them in any other website.

      I did not even think of that possibility. Good point.

      At this point I’m guessing that in the future the Patterns would be allowed to be organized in Categories…

      I would assume we would get categories and/or collections for patterns in the same way that blocks work. When that happens, I plan to create a taxonomy to allow users to group their patterns with the plugin.

      …it would have been nice to have a feature to export the php code needed to register the patterns in our products…

      That was on my mind too. I am not sure how to handle that just yet, but I would be happy to see anyone submit a patch that makes it happen. It would be really useful to have a direct copy/paste method with the PHP code included.

      Report

  7. Nick Hamze
    · Reply

    I love it.

    Report

  8. Stephen Vaughan
    · Reply

    Just tested out the plugin and it works quite well. Down the road it would be good if you could control what patterns are loaded. In other words, remove the default ones that load with the default Gutenberg install.

    Report

  9. Jordan
    · Reply

    Well, this is what reusable blocks were missing. If somebody like me writes in pattern plugin is gone save a lot of time.

    Regards.

    Report

    • Justin Tadlock
      · Reply

      Reusable blocks solve a different problem, but I agree that many of us were looking at reusable blocks and wanting patterns. Admittedly, I was using reusable blocks to create faux patterns there for a while.

      Report

  10. Clayton C Collie
    · Reply

    Love this plugin. Really hits home how big of a game changer block patterns will be.

    Wish Gutenberg hub would publish a plugin with all of their templates available right there. Don’t even need to copy and paste. Maybe they are listening 👂

    Report

  11. Tom
    · Reply

    Justin: thanks for your contribution this is really game changer stuff!

    I built some patterns using your plugin and it worked great. However there are some “Example” patterns already loaded. I am sure similar to “Manger Reuse” there will be a screen for deleting unwanted/needed patters but is there a way to do this via filter or database today? Or maybe there is and I missed it?

    Report

    • Justin Tadlock
      · Reply

      Those example patterns are from Gutenberg itself. I may look into building out a more extensive manager that allows you to disable those coming from Gutenberg or third-party plugins/themes.

      There is an existing unregister_block_pattern() function (unregister_pattern() pre-Gutenberg 8.1.0) that allows this.

      Report

      • Tom
        · Reply

        Justin, thanks for the quick reply!

        That was just the ticket, I figured there were similar filters as Blocks. For those looking to remove those they are in …\wp-content\plugins\gutenberg\lib\client-assets.php

        Looking forward to seeing your plugin grow.

        // register_block_pattern( 'core/text-two-columns', gutenberg_load_block_pattern( 'text-two-columns' ) );
        // register_block_pattern( 'core/two-buttons', gutenberg_load_block_pattern( 'two-buttons' ) );
        // register_block_pattern( 'core/cover-abc', gutenberg_load_block_pattern( 'cover-abc' ) );
        // register_block_pattern( 'core/two-images', gutenberg_load_block_pattern( 'two-images' ) );
        // register_block_pattern( 'core/hero-two-columns', gutenberg_load_block_pattern( 'hero-two-columns' ) );
        // register_block_pattern( 'core/numbered-features', gutenberg_load_block_pattern( 'numbered-features' ) );
        // register_block_pattern( 'core/its-time', gutenberg_load_block_pattern( 'its-time' ) );
        // register_block_pattern( 'core/testimonials', gutenberg_load_block_pattern( 'testimonials' ) );
        

        Report

  12. E. Robinson
    · Reply

    Very interesting plugin. Maybe i will give it a test soon. Anyway wanted to change something on my site.

    Report

  13. Liliana
    · Reply

    It’s a nice plugin I must say.
    Trying this out ASAP

    Report

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: