內容簡介
總結:這個外掛是一個 Gutenberg 區塊,可以透過按書名和章節名的方式組織的一系列文章,並從中建立一個目錄。您只需選擇要使用的根類別,外掛就會完成其他工作。建立目錄後,您可以對章節和文章進行排序,並且外掛會記住順序。此外,外掛還會建立到下一篇和上一篇文章的連結。
問題與答案:
<ul>
<li>這個外掛的作用是什麼?</li>
<p>答:這是一個 Gutenberg 區塊,可以根據書名和章節名的方式組織的一系列文章,建立一個目錄。</p>
<li>如何使用這個外掛?</li>
<p>答:只需選擇要使用的根類別,外掛將完成其餘工作。</p>
<li>外掛可以記住什麼?</li>
<p>答:外掛可以記住章節和文章的排序。</p>
<li>這個外掛還可以做什麼?</li>
<p>答:外掛還會建立到下一篇和上一篇文章的連結。</p>
<li>這個外掛的原始碼來自於哪裡?</li>
<p>答:Pau目錄表區塊是根據區塊編輯器手冊建立的 Gutenberg 區塊。</p>
</ul>
外掛標籤
開發者團隊
原文外掛簡介
This plugin is a Gutenberg block that takes a collection of posts organized by category (book name) and subcategories (chapter names)
and creates a table of contents from them. You simply choose the root category to use, and the plugin does the rest. Once
the table of contents is made, you can sort the chapters and posts, and the plugin will remember the order. The plugin also
creates links to the next and previous posts.
Source Code
The Pau Table of Contents Block is a Gutenberg block created as recommended in the Block Editor Handbook
(https://developer.wordpress.org/block-editor/). As recommended by the handbook, the source code is minified by the
build process for production. In keeping with the spirit of open source, the unminified code
for Pau Table of Contents is available at GitHub (https://github.com/paustian/pau-table-of-contents-block/).
If you want to see an example of this used on a live site, check out my textbook Through the Microscope (https://textbookconsortia.com/through-the-microscope-table-of-contents/)
Minimum Requirements
WordPress version 6.8 or greater.
PHP version 7.4 or greater
MySQL version 5.7 or greater.
Recommended Requirements
Latest WordPress version.
PHP version 8.0 or greater.
MySQL version 8.0 or greater, or MariaDB 10.5 or greater.
