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

16 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

birikkiuch

birikkiuch on April 8, 2017, 12:48 p.m. Reply

I found your this post while searching for some related information on blog search…Its a good post..keep posting and update the information.

Rustambek

Rustambek on April 11, 2017, 7:03 a.m. Reply

I’ve proper selected to build a blog, which I hold been deficient to do for a during. Acknowledges for this inform, it’s really serviceable! holodsakhalina.ru

chendler

chendler on April 11, 2017, 7:26 a.m. Reply

I am very much pleased with the contents you have mentioned. I wanted to thank you for this great article. itsmydownload.com

shodiyor

shodiyor on April 14, 2017, 5:44 a.m. Reply

The website is looking bit flashy and it catches the visitors eyes. Design is pretty simple and a good user friendly interface. Click To Discover More!

PeterZeilstra

PeterZeilstra on April 24, 2017, 1:40 p.m. Reply

Really nice for green screen kopen, a page of mine in The Netherlands

akmalaka

akmalaka on April 25, 2017, 4:40 a.m. Reply

Mmm.. good to be here in your article or post, whatever, I think I should also work hard for my own website like I see some good and updated working in your site. liuhey.com

John Martin

John Martin on May 3, 2017, 12:05 p.m. Reply

Great site, recognized criticism that I can handle. I’m advancing and may apply to my present place of employment as a pet sitter Can Someone Do My Essay For Me, which is exceptionally agreeable, however I have to extra extend.

Rustambek

Rustambek on May 31, 2017, 10:58 a.m. Reply

This app provides a simple and convenient way to discover dementia friendly places and leave reviews. downlodable pdf Most of the features in the app have come from your suggestions.

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