
內容簡介
Child Page Tree(孩子頁面樹狀列表)在頁面編輯網站的「發佈」按鈕正上方添加了一個下拉框。使用此下拉框,您可以決定是否添加及添加頁面樹的位置。您可以將頁面樹添加到頁面的頂部(prepend)或結尾(append)。
輸出是一個帶有巢狀清單的無序列表,以反映子級的層次結構。然而,此列表可以使用內置篩選器 child_page_tree_before_output 进行更改。此篩選器在列表添加到內容之前應用。
該插件隨附一個基本樣式表,其中為每個鏈接添加了一個圖標並且不顯示頁面的層次結構。此樣式表的處理程序是 child_page_tree_style 可以通過 wp_dequeue_style() 簡單取消佇列脚本。另一个添加您自己的自定义樣式的方法是使用自定义CSS插件覆盖默認樣式。頁面樹有一個 ID(ul#child_page_tree)和一個類,即 .append 或 .prepend ,具体取決于其位置。
要求
min. PHP 5.4
外掛標籤
開發者團隊
原文外掛簡介
Child Page Tree adds a select box to the page edit site right above the publish button. Using this select box you can decide whether to add and where to add the page tree. You can either add the page tree at the very top of page (prepend) or add it to the end of a page (append).
The output is a unorderd list with nested lists to reflect the hierarchy of the children. However this list can be changed using the build-in filter child_page_tree_before_output. This filter is applied before the list is added to content.
The plugin ships with basic stylesheet, which adds a icon to each link and does not show the hierarchy of the pages. The handler for this stylesheet ist child_page_tree_style and you can simple dequeue the script using wp_dequeue_style(). Another way to add your own custom style is to override the default style by using a custom CSS plugin. The page tree has an id (ul#child_page_tree) you can use and one class, either .append or .prepend depending its location.
Requirements
min. PHP 5.4
