[WordPress] 外掛分享: Subpages in Context

首頁外掛目錄 › Subpages in Context
WordPress 外掛 Subpages in Context 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
300+
安裝啟用
★★★★★
5/5 分(4 則評價)
4998 天前
最後更新
問題解決
WordPress 3.0+ v0.2 上架:2012-07-04

內容簡介

一個常見的網頁設計模式是有一個主導航欄顯示頂級頁面,然後每個頁面上都有一個單獨的導航元素,顯示與頂級頁面相關的頁面。這個外掛可以幫助建立這些次級導航元素。

如果您的頁面結構如下:

首頁
關於我們
— 我們的歷史
— 我們的員工
— — 就業機會
服務
— 小部件開發
— 儀表板部署
聯繫我們

並且您將具有默認設置的小工具添加到側邊欄,它會創建以下列表:

關於我們
我們的歷史
我們的員工
— 就業機會

在任何關於子樹中的頁面。 請注意,頂級祖先About作為列表的第一個元素包括在內。

選項

標題。小工具標題。 如果留空,則默認為最上層祖先頁面的標題。
顯示標題。也許您不想要標題。在這裡關閉它。
頂部頁面。您可以選擇其中一個頁面作為頂部頁面,或者您可以選擇默認值,該值確定顯示的頁面的最上層祖先。
菜單類。應用於最外層的<ul>元素。
連結之前。插入到列表中連結之前的HTML。
連結之後。插入到列表中連結之後的HTML。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Subpages in Context」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

A common web design pattern is to have a primary navigation with the top level pages, and then a separate
navigation element on each page that shows only those pages related to a common top-most page. This widget helps
to build those secondary navigation elements.
If your page structure was like this:

Home
About
— Our History
— Our Staff
— — Employment Opportunities
Services
— Widget Development
— Gadget Deployment
Contact Us

and you added the widget with its default settings to a sidebar, it would create a list like this:

About
Our History
Our Staff
— Employment Opportunities

on any of the pages in the About subtree. Notice that the top-most ancestor, About, is included as the first element of the list.
Options

Title. The widget title. If left blank, it defaults to the title of the top ancestor page.
Show Title. Maybe you don’t want a title. Just turn it off here.
Top Page. You can select one of your pages to be the top page, or you can choose Default, which determines the top-most ancestor of the page being displayed.
Menu Class. Gets applied to the outermost

文章
Filter
Apply Filters
Mastodon