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

8 Comments

RDude on January 15, 2008, 10:11 p.m. Reply

I can’t understand the instructions for this plugin at all. All there is is a text file. Is that all there is to this plugin?

Carwin Biloquist on April 7, 2009, 10:59 p.m. Reply

I successfully installed the plug in on Movable Type Commercial version 4.25 with: Community Pack 1.62, Professional Pack 1.3

I do not know how to set the Custom Fields in relation to the plugin type. Specifically the Name, Basename, and Template Tag catagory. When I experiment I end up having to uninstall plugin and start over.

Secondly, I do not know what to enter in the sidebar template module once I create the custom fields associated with the plugin…

Any help would be appreciated.

email@alexaobrien.com

Carwin Biloquist on April 8, 2009, 2:41 a.m. Reply

Nevermind:

I uninstalled this widget and created a custom field pulldown menu in the custom fields (one as entry and one as a page) custom field both named sidebar.

I set the tag name for each respectively to “entrywidgetset” or “pagewidgetset” and then wrote this code in the sidebar template:

Sidebar:

Sidebar:

Carwin Biloquist on April 8, 2009, 5:25 a.m. Reply

Scratch that!

Here is the solution for multiple custom page and entry sidebars.

Create sidebar custom field under page and entry. Set name to side bar, basename to either “entrywidgetset” and “pagewidgetset” respectively and tag name to similar “entrywidgetset” and “pagewidgetset”. Add options under Drop Down Menu that you know will correspond to respective sidebar widget sets that you have created or will create.

Then add this code to your sidebar template module (I just copied and pasted from my template so the eq=”NAME” is from my project you can fill in yours depending on your options for page and entry widget sets:

Carwin Biloquist on April 8, 2009, 5:27 a.m. Reply

<mt:If tag="pagewidgetset" eq="Consulting Sidebar">
          <$MTWidgetSet name="Consulting Sidebar"$>
<mt:Else tag="pagewidgetset" eq="CS Sidebar">
          <$MTWidgetSet name="CS Sidebar"$>
<mt:Else tag="pagewidgetset" eq="EIA Sidebar">
          <$MTWidgetSet name="EIA Sidebar"$>
<mt:Else tag="pagewidgetset" eq="CM Sidebar">
          <$MTWidgetSet name="CM Sidebar"$>
<mt:Else tag="entrywidgetset" eq="Thinking Sidebar">
          <$MTWidgetSet name="Thinking Sidebar"$>
<mt:Else tag="pagewidgetset" eq="Archive Sidebar">
          <$MTWidgetSet name="Archive Sidebar"$>
<mt:Else tag="pagewidgetset" eq="Error Sidebar">
          <$MTWidgetSet name="Error Sidebar"$>
</mt:If>
Sunil Shrestha

Sunil Shrestha on August 19, 2016, 2:13 p.m. Reply

Same problem here. Difficult to understand.

192.168.1.1

buyinstfollowers

buyinstfollowers on January 3, 2017, 1:14 p.m. Reply

buy instagram followers

buyinstfollowers

buyinstfollowers on January 3, 2017, 1:15 p.m. Reply

https://buyinstfollowers.com

Leave a Comment

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