Title: Aside Widget
Author: preeve9534
Published: <strong>2010 年 12 月 20 日</strong>
Last modified: 2011 年 10 月 5 日

---

搜尋外掛

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

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

# Aside Widget

 由 [preeve9534](https://profiles.wordpress.org/preeve9534/) 開發

[下載](https://downloads.wordpress.org/plugin/aside.0.9.zip)

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

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

## 外掛說明

Aside widget allows a page or post to insert arbitrary content into a
 sidebar (
or other dynamic widget area), supporting something similar to the typographic notion
of a ‘pull-quote’.

Aside widget is triggered by the presence, in those pages which require it,
 of 
one or more ‘aside’ custom fields with values that specify the content of one or
more widgets. Shifting the locus of widget content control from the widget to the
page makes for more natural authoring of conditional content which needs to be associated
with just a small number of pages.

As well as text, an ‘aside’ custom field may contain HTML and/or PHP code.
 Of course,
any HTML should be crafted so as not to break the containing page structure. PHP
parsing must be explicitly enabled in the widget administration panel and any PHP
in the ‘aside’ field value must be enclosed in the usual tags for it to be recognised.

A little bit of short-form magic can be triggered by formatting the aside
 field
value in the following way.

    ```
    {#|!|!!}id[,prefix,suffix]
    ```

A value of the form #id (e.g. ‘#232’) causes the the page or post
 identified by
the integer id to be used as the widget content.

A value of the form !id (e.g. ‘!myasidediv’) causes the contents of the
 HTML DIV
identified by id to be used as the widget content. The selected DIV must reside 
withing the current page or post. Normally, the selected DIV is removed from display
within the page proper, but a value of the form !!id causes the DIV to remain in
the normal page flow. Processing of page content for the identified DIV is unsophisticated:
the DIV must not itself contain any other DIVs and the DIV id attribute must be 
the first attribute after the tag name.

Prefix and suffix can be used to specify arbitrary text/HTML which will
 be used
to bracket the selected widget content. PHP can also be used, but will only work
if parsing is enabled as described above.

### Examples

A few examples of the use of magic values in the ‘aside’ field.

    ```
    #232  
    ```

Display page 232 in the aside widget.

    ```
    !mydiv  
    ```

Remove the contents of `<div id='mydiv'>...</div>` from the current
 page and display
it in the aside widget.

    ```
    !!mydiv  
    ```

As above, but leave the content in the page.

    ```
    !!mydiv,<span style=”bigquote”>,</span>  
    ```

As above, but style the widget output in some special way.

## 螢幕擷圖

[⌊Widgets admin page showing aside widget in use.⌉⌊Widgets admin page showing aside
widget in use.⌉[

Widgets admin page showing aside widget in use.

## 安裝方式

 1. Place the zip archive in /wp-content/plugins.
 2. Unzip the archive (and then delete it if you wish).
 3. Activate the plugin through the ‘Plugins’ menu in WordPress.
 4. Use the widget like any other widget.

## 常見問題集

  There’s some kind of error on line 43!

That error means that your PHP code is incorrect or otherwise broken.

Bugs in this widget on line 43 are not possible. Any errors attributed to
 aside.
php at line 43 are errors in code you put into an aside value field. The reason 
that it shows the error being in aside.php is because that is where your code is
actually being run from. Please don’t email me about errors in aside.php on line
43.

## 使用者評論

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

## 參與者及開發者

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

參與者

 *   [ preeve9534 ](https://profiles.wordpress.org/preeve9534/)

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

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

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

## 變更記錄

#### 0.9

Release.

## 中繼資料

 *  版本 **0.9**
 *  最後更新 **15 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 2.8 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.2.1**
 *  語言
 * [English (US)](https://wordpress.org/plugins/aside/)
 * 標籤:
 * [aside](https://tw.wordpress.org/plugins/tags/aside/)[conditional](https://tw.wordpress.org/plugins/tags/conditional/)
   [php](https://tw.wordpress.org/plugins/tags/php/)[pull-quote](https://tw.wordpress.org/plugins/tags/pull-quote/)
   [widget](https://tw.wordpress.org/plugins/tags/widget/)
 *  [進階檢視](https://tw.wordpress.org/plugins/aside/advanced/)

## 評分

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

[Your review](https://wordpress.org/support/plugin/aside/reviews/#new-post)

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

## 參與者

 *   [ preeve9534 ](https://profiles.wordpress.org/preeve9534/)

## 技術支援

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

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

## 贊助

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

 [ 贊助這個外掛 ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=preeve%40pdjr%2eu)