Reusable Blocks Extended

Beschreibung

Erweitert die Gutenberg-Funktion der wiederverwendbaren Blöcke um ein vollständiges Adminpanel, Widgets, Shortcodes und PHP-Funktionen.

This plugin extends the Reusable Blocks admin interface and provides few fancy features:

  • Add Reusable Blocks dashboard informations
  • Activate Reusable Blocks admin screen
  • Provide a list of Posts where each Reusable Block is used and the date it was last modified
  • Provide a live preview of your reusable blocks from the Reusable Blocks admin screen, with your theme stylesheets
  • Provide a Reusable Blocks Widget to use your block anywhere you want in your theme’s widgets areas
  • Provide a Reusable Blocks Shortcode to use your block anywhere you want in your Post types (even if they use the Classic Editor rather than Gutenberg!)
  • Provide some Reusable Blocks PHP functions to use your block anywhere you want in your theme even

  • NEU: Ein einfaches Werkzeug, um wiederverwendbare Blöcke mit einem Klick zu Block-Vorlagen zu konvertieren!

For a full presentation of Reusable Blocks Extended, see this WordCamp Talk synthesis available on my blog.

Screenshots

  • Extended Reusable Blocks admin screen with preview
  • Reusable block widget

Installation

  1. Installiere das Plugin und aktiviere es.
  2. Go to Reusable Blocks Admin Menu

FAQ

How to implement Reusable Blocks using Widgets

  • Go to WP-Admin > Appearance > Widgets.
  • Add „Reusable Block“ Widget to your widget area.
  • Choose the reusable block you want to use and save the widget.

How to implement Reusable Blocks with shortcode

  • Go to WP-Admin > Reusable Blocks.
  • Choose the reusable block you want to use; copy the provided shortcode.
  • Then, paste it where you want.

Syntax: [reblex id="NUMERIC_ID_OF_THE_REUSABLE_BLOCK"]

How to implement Reusable Blocks with PHP functions

  • Go to WP-Admin > Reusable Blocks.
  • Choose the reusable block you want to use; copy the provided PHP function.
  • Then, paste it where you want.

Syntax:
reblex_display_block( NUMERIC_ID_OF_THE_REUSABLE_BLOCK );

Note for developers: you may also need to get the shortcode data before displaying it. In this case, you should use the following function:
reblex_get_block( NUMERIC_ID_OF_THE_REUSABLE_BLOCK );

Rezensionen

5. März 2021
Hi, I wanna say a big thank you for this awesome plugin. It solves a lot of problem I was facing with reusable block and i think a lot of the features of this plugin should be embedded in the core. Great job!!!
30. November 2020
This is such a useful plugin when working with the new block editor. Not only does it help creating reusable blocks and, by way of conversion, even block patterns, but it also offers a preview of the reusable blocks created. And the icing on the cake, for me, is, that it offers JSON export/import. So, thanks a lot to the developer, your work is much appreciated!
11. November 2020
Adds the missing admin menu to access and edit reusable blocks without having to edit a post
Lies alle 21 Rezensionen

Mitwirkende & Entwickler

„Reusable Blocks Extended“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:

Mitwirkende

„Reusable Blocks Extended“ wurde in 6 Sprachen übersetzt. Danke an die Übersetzerinnen und Übersetzer für ihre Mitwirkung.

Übersetze „Reusable Blocks Extended“ in deine Sprache.

Interessiert an der Entwicklung?

Durchstöbere den Code, sieh dir das SVN Repository an oder abonniere das Entwicklungsprotokoll per RSS.

Änderungsprotokoll

0.6.2

  • Removes a PHP notice.

0.6.1

  • Fix an issue with polylang plugin (props @eddystile).

0.6

  • Introduces the Block Pattern conversion tool for WP 5.5+.

0.5.1

  • Fixes a bug with ACF Pro Blocks. Props @mbcreation for raising the issue.

0.5

  • Improvement of the preview feature, which is now displaying your reusable blocks in a modal window.

0.4

  • Force block editor for wp_block post type even with Classic Editor plugin activated.
  • Collapsible items improvements.

0.3

  • Make block instances collapsible for a better preview. Props @alfredg.

0.2

  • Use @import instead of link tag or enqueues in the preview iframe.

0.1

  • Plugin initial commit. Works fine 🙂