regionhalland/region-halland-plugin-gutenberg-allow-block

仅启用Region Halland选择的Gutenberg块

v1.8.0 2022-04-28 09:09 UTC

This package is auto-updated.

Last update: 2024-09-28 14:18:07 UTC


README

如何使用Region Halland的插件"RhGutenbergAllowBlock"

以下是使用"RhGutenbergAllowBlock"插件的操作说明。

应用范围

此插件仅启用Region Halland选择的Gutenberg块

许可证模型

此插件使用GPL-3.0许可证模型。您可以通过附带文件了解更多关于此许可证模型的信息

LICENSE (https://regionhalland.visualstudio.com/public.RhWpPlugIns/_git/RhGutenbergAllowBlock?path=%2FLICENSE&version=GBmaster)

安装和激活

A) Hämta pluginen via Git eller läs in det med Composer
B) Installera Region Hallands plugin i Wordpress plugin folder
C) Aktivera pluginet inifrån Wordpress admin

通过Git获取插件

git clone https://regionhalland.visualstudio.com/public.RhWpPlugIns/_git/RhGutenbergAllowBlock

通过composer导入插件

以下两部分需要添加到您的composer文件中

Repositories = 存储插件的位置,在此例中为github

"repositories": [
  {
    "type": "vcs",
    "url": "https://regionhalland.visualstudio.com/public.RhWpPlugIns/_git/RhGutenbergAllowBlock"
  },
],

Require = 指定您想要使用的插件版本,在此例中为1.0.0

注意!请确保您下载的是最新版本。

"require": {
  "regionhalland/region-halland-gutenberg-allow-block": "1.0.0"
},

通过ENV变量指定要激活的WP Gutenberg块

WP_ALLOW_BLOCK="core/paragraph,core/heading,core/image,core/video,core/embed,core/list,core/table,core/shortcode,core/freeform,core/file,core/columns,acf/rh-button,acf/rh-key-value,acf/rh-card,acf/rh-berattelse"

Notera! På så vis kan varje sajt som använder Gutenberg ha sin egen uppsättning block

版本历史

1.7.0

  • 将所有块作为ENV变量列出

1.6.0

  • 添加wp core块"columns"

1.5.0

  • 添加视频和嵌入

1.4.0

  • 添加自定义ACF块"rh-card"

1.3.0

  • 添加wp core块"file"

1.2.0

  • 添加自定义ACF块"rh-button"和"rh-key-value"

1.1.0

  • 添加Packagist发布流水线

1.0.0

  • 第一个版本