该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

SB Children block

描述

Use the Children block ( oik-sb/children ) to list children of the current content as links.
Works for any hierarchical post type which supports page-attributes, such as page.

屏幕截图

  • Children block depth=0
  • Children block depth=1
  • Children block depth=2
  • Children block depth=-1

区块

该插件提供了1个区块.

  • Children List children of the current content as links.

安装

  1. Upload the plugin files to the /wp-content/plugins/sb-children-block directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress

OR

With WordPress 5.5 or Gutenberg 8.7.0 or higher, and the authority to install plugins:

  1. In the block editor, open the block inserter.
  2. Search for the block by typing ‘Children’.
  3. Click on the ‘Add block’ button for the SB Children block.
  4. The SB Children block plugin will be installed and activated.
  5. And the block will be inserted into your content.

常见问题

What are the values for the depth parameter?

  • Value – Meaning
  • 0 – Display all descendents in a tree
  • 1 – Display Children only
  • 2 – Display Children and Grandchildren
  • n – Display n levels of descendents
  • -1 – Display all descendents in a single list

What do I need to search for to find the block?

You can try typing the following strings to find the block: c, ch, chi, chil, child, childr, childre and children.
You may also get results by typing the keywords: Child list, Descendents and Tree.

What if my first language is not English?

If your first language is not English then you could try:

  • French – enfants
  • German – Kinder
  • Dutch – Kinderen
  • Italian – la prole
  • Spanish – niñas or niños

Do I need to build this block?

No. The plugin is delivered with the production version of the block.
If you do wish to modify the code then you can find instructions in the src folder.

评价

此插件暂无评价。

贡献者及开发者

“SB Children block” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

“SB Children block”插件已被翻译至1种本地话语言。 感谢所有译者为本插件所做的贡献。

将“SB Children block”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.1.0

  • Fixed: Now works for any hierarchical post type,[github bobbingwide sb-children-block issues 13]
  • Added: Add Page list keyword,[github bobbingwide sb-chidren-block issues 12]
  • Tested: With WordPress 5.5.1
  • Tested: With Gutenberg 9.1.0
  • Tested: With PHP 7.4

1.0.1

  • Changed: Improve readme.txt for users,[github bobbingwide sb-children-block issues 11]
  • Added: Add src/README.md for developers,[github bobbingwide sb-children-block issues 11]

1.0.0

  • Changed: Rename block to oik-sb/children with title ‘Children’,[github bobbingwide sb-children-block issues 8]
  • Changed: Improve ability to style the block in the editor and front end, [github bobbingwide sb-children-block issues 9]
  • Changed: Updated assets – screenshots, banner and icon – reflecting for new block name.
  • Tested: With WordPress 5.5-RC2
  • Tested: With Gutenberg 8.7.0

0.5.4

  • Changed: Update version on package.json to match version in plugin file and readme

0.5.3

  • Fixed: Added webpack.config.js to enable production build peaceful coexistence,[github bobbingwide oik-children-block issues 6]
  • Changed: Updated screenshots
  • Tested: With WordPress 5.5-RC1

0.5.2

  • Changed: Added help parameter for Depth attribute, [github bobbingwide sb-chidren-block issues 7]
  • Changed: Built with npm start
  • Changed: Updated language files

0.5.1

  • Changed: Update build files
  • Changed: Update language files

0.5.0

  • Changed: Internationalized and localized, [github bobbingwide sb-children-block issues 5]
  • Deleted: Removed sb-parent-block, [github bobbingwide sb-children block issues 4]
  • Tested: With WordPress 5.4.2 and WordPress Multi Site
  • Tested: With WordPress 5.5
  • Tested: With PHP 7.3 and PHP 7.4

0.4.0

  • Rename block from oik/children-block to sb/children-block [github bobbingwide sb-children-block issues 4]

0.3.3

  • Changed: More tweaks to the readme. – not released

0.3.2

  • Changed: Attempted to improve usage notes in the readme.

0.3.1

  • Changed: Add screenshots, banner and update the readme.

0.3.0

  • Added: Parent block [github bobbingwide children-block issues 3]
  • Changed: Prepare for multiple blocks [github bobbingwide children-block issues 2]
  • Tested: With WordPress 5.4.2 and WordPress Multi Site
  • Tested: With PHP 7.3 and PHP 7.4

0.2.0

  • Changed: Now implements the child list using server side rendering and supports the depth= parameter [github bobbingwide children-block issues 1]

0.1.0

  • First version as generated by npm wp-create-block