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

Albumize

外掛說明

I wanted to take the convenience and ease of use of the built-in WordPress [gallery] shortcode and add a little more functionality to it. By organizing your galleries as multiple child pages of one parent page, you can use this plugin to see a preview thumbnail and description of each gallery.

Styling

Version 1.2 added increasing styling options by wrapping each element in a <div. There are two display options included with the plugin and limitless possibilities exist for any type of custom styling you would like to do. Horizontal styling is the default using only the [albumize] shortcode. However, to use the included vertical styling (thanks Roman!) simply use [albumize style='vert'].

To add your own custom styling, use [albumize style='yourstylename'] (where ‘yourstylename’ is any name you’d like to classify it as) and add the styling to your themes stylesheet. The Albumize elements are classified as the following:

  • albumize_gallery_yourstylename
  • albumize_thumb_yourstylename
  • albumize_title_yourstylename
  • albumize_desc_yourstylename
  • albumize_count_yourstylename

Whatever you use for the style attribute will be used as the last part of the element classification when the album is displayed. Just add your own styling for these elements and you are all set to go. Add as many different styles as you want and call any of them using the style attribute.

螢幕擷圖

  • Demonstrating how to add the shortcode to your page.
  • Note the two custom fields added to the page to designate the blurb and the thumbnail cover. Also note that "2006" was selected as the parent page.
  • Sample display of the album including the blurb and thumbnail cover as added in screenshot-2.png.

安裝方式

  1. Upload the albumize folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Create a page that will function as your album and place the [albumize] shortcode in it.
  4. Create child pages of your album page and place your galleries in them.
  5. (Optional) Create a brief description of your gallery by using an “alb_blurb” custom field key and the description in the value.
  6. (Optional) Select the gallery cover for the album by using an “alb_cover” custom field key and the number of the picture in the gallery (e.g. 5, 13, etc) for the value. The first picture in the gallery will be used by default.

常見問題集

Does this plugin work for posts?

Nope. Currently this plugin only works for pages because it relies on the parent/child page relationship.

Do I need to use the custom fields for the plugin to work?

Nope. The plugin will use the first image in the gallery by default. If you don’t put in a blurb to describe your gallery, the plugin will just display the title of the gallery and nothing else.

How many levels of child pages will this work for?

Unfortunately (or fortunately, I suppose), the plugin displays all levels of child pages underneath the parent page. There is currently no way to restrict it to only one level. A page hierarchy like the following:

  • Album Page (Parent)
    • Gallery 1 (Child of Album)
    • Gallery 2 (Child of Album)
    • Gallery 3 (Child of Album)
      • Gallery 3, Day 1 (Child of Gallery 3)
      • Gallery 3, Day 2 (Child of Gallery 3)

Would be displayed as the following on the album page:

  • Gallery 1
  • Gallery 2
  • Gallery 3
  • Gallery 3, Day 1
  • Gallery 3, Day 2
How would you recommend setting up your page hierarchy for Albumize and WordPress’ Gallery function?

This is what works for me. I have a parent Photos page. I have my Album pages as child pages of the Photos page. I just manually link to the Album pages on the Photos page. Then I have my Gallery pages as child pages of each Album page.

I’m sure you can figure out your own way of doing it. But this type of hierarchy was what I had in mind when I designed this plugin.

If you have any other questions, feel free to visit the plugin homepage at http://www.litschers.com/wordpress/albumize/

使用者評論

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

參與者及開發者

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

參與者

將〈Albumize〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄