Secure Blocks for Gutenberg

外掛說明

Secure your content in the editor by user role with Secure Blocks for Gutenberg.

Using Secure Blocks you can add any Gutenberg block inside a secure block, have it render only to logged in users, or lock it down to a user role of your choosing.

Secure Blocks also provides an additional area that can display blocks to users that do not have permission to view the content.

For more information read the Secure Blocks introductory blog post, or view the video:

The plugin provides the following functionality:

  • Display content only to logged-users
  • Display alternative content to logged-out users
  • Display content to users within certain user roles
  • Display alternative content to users not in those user roles

Roadmap

Features coming soon to aid with securing sites:

  • Login Block
  • Register Block
  • Password Reset Block
  • Restrict entire pages / posts, not just inline content

螢幕擷圖

  • Standard Gutenberg Content
  • Adding the Secure Block
  • What you first see when you add the Secure Block
  • Add any blocks to the Secure Block
  • Viewing the site when logged-in
  • Viewing the site when logged-out
  • Using the Inspector to select roles to lock the content down further
  • Locking down to certain user roles
  • The Secure Block interface reflects the user roles you choose
  • Adding content which is locked down by user role.
  • You are not restricted to the kind of block you can secure
  • A full screen image is not limited by the bounds of the Secure Block

適用於區塊編輯器

這個外掛提供 3 個可供 Gutenberg/區塊編輯器使用的區塊。

matt-watson/secure-block
Secure Block
matt-watson/secure-block-inner-unsecure
Unsecure
matt-watson/secure-block-inner-secure
Inner

安裝方式

  1. Backup your WordPress install
  2. Upload the plugin folder to the /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

Minimum Requirements

You’ll need the Gutenberg editor active on your site.

常見問題集

TBC

使用者評論

二月 3, 2019
Works without a problem. I searched for a plugin for Gutenberg Blocks that would hide or show content depending on user roles. And this is exactly what I can do with "Secure blocks for Gutenberg". And it is for free! Thanks
十二月 25, 2018
The idea is awesome and I needed something like that to forbid access to some parts of my content to my readers, but sadly, it doesn't work (for wordpress 5.0+, with the new editor replacing the old one). Not even for me as the main administrator, it shows nothing at all :(. Guess I'll have to find something else or go without in the meantime.
八月 21, 2018
This plug-in allows you to easily hide only parts of a webpage from certain users. It's a simple and elegant solution – and it demonstrates the power of the block concept introduced by the Gutenberg editor.
閱讀全部 3 則使用者評論

參與者及開發者

Secure Blocks for Gutenberg 外掛為開源軟體。以下人員為這個外掛做出了重大貢獻。

參與者

Secure Blocks for Gutenberg 外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將 Secure Blocks for Gutenberg 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • First release

1.1.0

  • Fixed issue whereby the plugin would not render in certain server environments

1.1.1

  • Removed frontend asset enqueues that didn’t do anything.

1.2.0

  • Fixed issue that prevented blocks saving properly in some scenarios.

1.3.0

  • Replaced withAPIData with withSelect due to depreciation in core.

1.4.0

  • Updated withSelect to use latest API.

1.4.3

  • Bug fixes and refactor.