Title: CMS Navigation
Author: Amir Helzer
Published: <strong>2008 年 11 月 21 日</strong>
Last modified: 2011 年 12 月 3 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/cms-navigation.svg)

# CMS Navigation

 由 [Amir Helzer](https://profiles.wordpress.org/amirhelzer/) 開發

[下載](https://downloads.wordpress.org/plugin/cms-navigation.1.4.2.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/cms-navigation/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/cms-navigation/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/cms-navigation/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/cms-navigation/#developers)

 [技術支援](https://wordpress.org/support/plugin/cms-navigation/)

## 外掛說明

#### Update

**Our new plugin, [WPML](http://wpml.org), includes the functionality of _CMS Navigation_
and is recommended for new designs.**

It features much cleaner and simpler HTML and customization via the admin screen.

Additionally, we recommend you checkout our new CMS enabling plugins **Types** and**
Views**.

 * [Types – The Custom Types and Custom Fields Plugin](http://wp-types.com/home/types-manage-post-types-taxonomy-and-custom-fields/)–
   manages custom content type, including post types, taxonomy and custom fields.
 * [Views – The Custom Content Display Plugin](http://wp-types.com/) – displays 
   custom content types in whatever way you choose.

With Types and Fields, you can achieve the functionality of this plugin yourself
and customize it in whatever way you like.

#### Legacy Stuff

Do you want to use WordPress to create a full website, with easy navigation and 
menus?
 This plugin will let you add essential navigation functions to your template,
including:

 * Top navigation bar, listing the top-level pages and their children (as drop-down
   items).
 * Breadcrumbs trail navigation that shows the path to the current page all the 
   way from the home page.
 * Left navigation that shows where the visitor is next to the page’s parent and
   nearby pages.

No configuration is required. To use, add the calls that create each navigation 
element to your template.
 These calls can be added to any WP template

There are three template functions that can be used for displaying the navigation
sections

#### Drop down top menu

Function:
 cms_navigation_menu_nav($order=’menu_order’, $show_cat_menu=false, $catmenu_title
=’News’)

This will display the top navigation – the top level pages with their sub pages 
as drop down elements.
 Additionally – if specified – the menu will include the 
top level post categories at the end.

Normally, this function is added to your header.php file, so that it applies to 
the entire website.

Examples:

 * `<?php cms_navigation_menu_nav() ?>` – include without the categories menu.
 * `<?php cms_navigation_menu_nav('post_title') ?>` – sort items by title.
 * `<?php cms_navigation_menu_nav('menu_order',true,'News') ?>` – sort items according
   to the ‘order’ field.

#### Breadcrumbs trail navigation

Function:
 cms_navigation_breadcrumb()

This will display a path from the current page all the way to the home page.
 It’s
useful for visitors who land in your website to know where they are and be able 
to navigate to relevant pages.

**For posts**

    ```
    Home >> CATEGORY-NAME >> Post title
    ```

**For pages**

    ```
    Home >> Parent pages... >> Page title
    ```

All the items back to the home page will be clickable.

You can add this function to single.php and page.php so that it will produce trail
navigation for every page or post.

#### Sidebar navigation

Function:
 cms_navigation_page_navigation($order=’menu_order’)

This will display the sidebar navigation for pages.
 It will show a tree created
the page parents and it’s ‘brother’ pages (other children to the same parent).

This function should be added to page.php, as it provides local navigation between
pages.

#### Live example using this plugin

[Baripedia](http://www.baripedia.com) is using this plugin (and other CMS related
plugins we’ve written).

### Version History

 * Version 0.1
    - First public release.
 * Version 0.2
    - Removed some of unneeded formatting.
    - Added option to set the tag around sidebar navigation heading.
 * Version 1.2
    - Handles setting static pages for homepage and blog page.
 * Version 1.2.1
    - Added static home page to top navigation
 * Version 1.3
    - Works with IE6 as well as other browsers (didn’t support IE6 before)
    - Removed the gradient and simplified the CSS for customizing the menus
    - The top menu HTML has changed. If the encapsulating DIV has a background, 
      you may need to change or remove it.
 * Version 1.4
    - Added feature to exclude pages from the top navigation.
    - Added GUI for controlling page settings (instead of editing custom fields).
 * Version 1.4.2
    - Added migration instruction to [WPML](https://wordpress.org/extend/plugins/sitepress-multilingual-cms/stats/)

## 螢幕擷圖

[⌊All three navigation functions enabled (highlighted in red).⌉⌊All three navigation
functions enabled (highlighted in red).⌉[

All three navigation functions enabled (highlighted in red).

[⌊An open drop-down menu.⌉⌊An open drop-down menu.⌉[

An open drop-down menu.

## 安裝方式

 1. Place the folder containing this file into the plugins folder
 2. Activate the plugin from the admin interface

## 常見問題集

  Does the plugin work with any theme?

You can add the navigation functions that the plugin creates to any theme. As a 
demo, we’ve added it to the WordPress Default theme.

  Where can I find detailed instructions

Click on the plugin page. It shows detailed instructions of what PHP code needs 
to be added and where.

  How do I customize the drop down menus and other stuff?

There are a `css` and `img` folders in the plugin install folder. Don’t edit them.

Instead, you can provide your own CSS in your theme which will override these defaults.
If you edit the plugin files, your edits will be lost when you upgrade the plugin.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈CMS Navigation〉的開發相關工作。

參與者

 *   [ Amir Helzer ](https://profiles.wordpress.org/amirhelzer/)
 *   [ Amir Helzer ](https://profiles.wordpress.org/icanlocalize/)

[將〈CMS Navigation〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/cms-navigation)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/cms-navigation/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/cms-navigation/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/cms-navigation/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/cms-navigation/)。

## 中繼資料

 *  版本 **1.4.2**
 *  最後更新 **15 年前**
 *  啟用安裝數 **20+**
 *  WordPress 版本需求 ** 2.3 或更新版本 **
 *  已測試相容的 WordPress 版本 **2.7**
 *  語言
 * [English (US)](https://wordpress.org/plugins/cms-navigation/)
 * 標籤:
 * [cms](https://tw.wordpress.org/plugins/tags/cms/)[dropdown](https://tw.wordpress.org/plugins/tags/dropdown/)
   [menu](https://tw.wordpress.org/plugins/tags/menu/)[menus](https://tw.wordpress.org/plugins/tags/menus/)
   [navigation](https://tw.wordpress.org/plugins/tags/navigation/)
 *  [進階檢視](https://tw.wordpress.org/plugins/cms-navigation/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/cms-navigation/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/cms-navigation/reviews/)

## 參與者

 *   [ Amir Helzer ](https://profiles.wordpress.org/amirhelzer/)
 *   [ Amir Helzer ](https://profiles.wordpress.org/icanlocalize/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/cms-navigation/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://wpml.org)