Not a developer? Go to MovableType.com

Plugin and Theme Directory

Widget Set Custom Field v1.1.3

By Byrne Reese
Posted March 25, 2013, in Custom Fields.

Details

This plugin defines a new custom field type that allows users to select and associate with pages and entries a widget set installed in the current blog.

It also provides a template tag called <mt:IfWidgetSetExists> that will return true if a named WidgetSet exists and false otherwise.

Installation

Install the WidgetSetCF.pl file into the following directory (create it if necessary):

/path/to/your/mt/plugins/WidgetSetCF/

Usage

Create a Custom Field as usual. The type "Widget Set" will be available. A selected Widget Set can be published with the example below:

<mt:IfNonEmpty tag="pagewidgetset">
    Sidebar: <mt:PageWidgetSet>
    <mt:SetVarBlock name="widgetset"><mt:PageWidgetSet></mt:SetVarBlock>
    <mt:IfWidgetSetExists widgetset="$widgetset">
        <mt:WidgetSet name="$widgetset">
    </mt:IfWidgetSetExists>
</mt:IfNonEmpty>

Support

This plugin is provided as-is. If you have a problem and would like to submit a fix, please file a Github Issue.

Authors: Byrne Reese, Dan Wolfgang.

Requirements

Widget Manager Movable Type Professional

Compatibility

Movable Type versions: 4.35.05.1


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