Reusable Blocks Extended

ཞིབ་བརྗོད།

Extend Gutenberg Reusable Blocks feature with a complete admin panel, widgets, shortcodes and PHP functions.

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 the block 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

གཏུབ་རེིས།

  • Reusable Blocks admin screen with preview
  • Reusable block widget

སྒྲིག་འཇུག

  1. Install the plugin and activate.
  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 );

གདེང་འཇོག

2019 ལོའི་ཟླ 11 ཚེས 3 ཉིན།
Great plugin and very useful for me to make my daily workflow flowing better based on template based blog writing.

Wow

2019 ལོའི་ཟླ 9 ཚེས 28 ཉིན།
Smart .. 'nugh said Try it.
2019 ལོའི་ཟླ 9 ཚེས 22 ཉིན།
This is a very usefull plugin. Wth the previews but also with links where the block is used to find locations very fast. I like it very much. Onlu the list where a block is used can become very long, maybe make it colapsible?
གདེང་འཇོག 3 ཡོངས་སུ་ཀློག

བྱས་རྗེས་འཇོག་མཁན། & གསར་འབྱེད་པ།

“Reusable Blocks Extended” is open source software. The following people have contributed to this plugin.

བྱས་རྗེས་འཇོག་མཁན།

“Reusable Blocks Extended” has been translated into 1 locale. Thank you to the translators for their contributions.

ཁྱེད་ཀྱི་སྐད་ཡིག་ནང་ལ་ “Reusable Blocks Extended” ཡིག་སྒྱུར་བྱོས།

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

དག་བཅོས་ཉིན་ཐོ།

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 🙂