Not a developer? Go to MovableType.com

Plugin and Theme Directory

Two Dimensional Select v1.0

By Byrne Reese
Posted January 29, 2010, in Custom Fields.

Details

This plugin provides a new custom field type to Movable Type Pro users. This new field type, called a "two dimensional select" allows one to have a pull down menu, which when a selection is made, reveals a second pull down menu to further narrow down the user's choice. This is perfect for managing LARGE pull down menus for which the menu's content is easily categorized, e.g. states within regions, cities within states, etc.

Usage

  1. Create a new Custom Field.

  2. Select "Drop Down Menu (2-Dimensional)" as the field's type.

  3. In the Options text area that appears enter in data according to the following structure:

     { 
       "California" => [ "LA","San Francisco","San Diego" ],
       "Texas" => [ "Dallas","Houston","Austin" ],
       "Lousiana" => [ "New Orleans","Sliddel","Baton Rougue" ],
     }
    

    For those familiar with Perl, you will recognize this is a simple hash.

    Syntax is important here, so pay attention to placement of commas, and make sure all square and curly brackets are opened and closed properly.

Screenshots

The Edit Field Screen

The Custom Field in Action

Prerequisites

  • Movable Type Pro

Installation

To install this plugin follow the instructions found here:

http://tinyurl.com/easy-plugin-install

Compatibility

Movable Type versions: 4.3

License

Perl Artistic


Back

Byrne Reese

Byrne Reese was previously the Product Manager of Movable Type at Six Apart, where he had also held positions as the Manager of Platform Technology and Product Manager for TypePad. Byrne is a huge supporter of the Movable Type user and developer community. He dedicates much of his time to promoting and educating people about Movable Type as well as building the tools and plugins for Movable Type that are showcased on Majordojo. He contributes regularly to open source; and he is an advocate for open protocols and standards like Atom and OpenID.

Website: http://profile.typekey.com/byrnereese