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

Blocks

This plugin provides 1 block.

  • 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 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.

評價

There are no reviews for this plugin.

貢獻者及開發者

“SB Children block” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

SB Children block 外掛目前已有 3 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 SB Children block 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.2.0

  • Changed: Update wp-scripts and rework block registration #15
  • Changed: Improve block.json to add supports attributes for color, typography and spacing #14
  • Tested: With WordPress 6.0.1 and WordPress Multi Site
  • Tested: With Gutenberg 13.8.2
  • Tested: With PHP 8.0