PlasticField, A Plugin For Movable Type
Thanks to Jay and Arvind, I’ve finally finished my first plugin, PlasticField. I’d appreciate any feedback on it you may have.
Overview
This plugin gives you a new custom field type (‘Formatted Multi-Line Text Field’) with familiar formatting buttons as well as resizing controls instead of the bare boxes that CustomFields provides by default. Extremely handy if you’re using Movable Type’s Custom Fields extensively as a CMS.

Requirements
PlasticField requires that you have MT4.1 Professional or higher running. (The CustomFields addon pack is required.)
Download PlasticField v.0.1 for MT (.zip/32k, updated 6/3/08)
Cost and Support
This plugin is free and is provided as-is. You can use it, redistribute it and/or modify it. You just can’t start reselling it as-is. If you have a problem and would like to submit a fix, let me know. If you’d like to hire me to install it for you or just make your website look good, drop me a line.
Installation
Simply copy the contents of /plugins/ to your Movable Type plugin directory, and copy the contents of /mt-static/ to your static directory.
Using PlasticField
Look for changes to your Customfields » New Field screen. If you’ve installed it correctly, the field type dropdown on the New Field screen should list “Formatted Multi-Line Text Area” as one of the choices.
Converting Existing Fields
Some people have asked about enabling these formatting controls on existing fields. To do that, you must specify a different field type for the field, and that’s not something you can do from the application yet (I’d really like to address in a future release). If you’re feeling bold and have made a backup recently, you can edit the mt-fields table in your database and change the field-type from ‘textarea’ to ‘formatted_field’ in any of the fields you want converted. Do this at your own risk!
InterAction:
16 July 20082. padawan:
Hi Jesse,
very useful plugin indeed, it definitely scratches an itch with CustomFields not offering a rich text editor option with text fields.
I do have one issue, the plugin doesn't seem to honor my normal blog /mt-static/ location, it wants its static files from the /cgi-bin/mt/plugins/PlasticField/images/ folder instead.
Best,
François
16 July 20083. padawan:
Trying to debug this with my limited capabilities (I'm definitely NOT a Perl connoisseur!), it looks like the following code isn't executed:
So the following code in PlasticField.pl:
src="plugins/PlasticField/images/bold.gif"
becomes this in the resulting HTML:
src="plugins/PlasticField/images/bold.gif"
I'm using Movable Type version 4.2rc3-fr with Professional Pack 1.11 (the French commercial beta version).
1 September 20084. hixster:
Any fixes for the image location issue? I having the same problem as Padawan,
Thanks H :-)
21 September 20085. thegreenpages:
I am having the same problem as well. It is looking for the static files images @ /cgi-bin/mt/plugins/PlasticField/images/ folder instead.
YourThoughts?
(Minutia)
This entry was written by Jesse on Tuesday, June 3, 2008 at 4:16 AM and appears in the Movable Type chapter. The previous article was entitled, "Movable Type Pagination", and the next entry is called, "Movable Type as a Desktop App". Bookmark the permalink, save it to del.icio.us or Digg it.
GetUpdated
ElseWhere
AllChapters
- 2 articles in the chapter Accessibility
- 3 articles in the chapter Announcements
- 4 articles in the chapter Blogging
- 6 articles in the chapter CMS
- 3 articles in the chapter CSS
- 13 articles in the chapter Design
- 4 articles in the chapter Downloads
- 1 articles in the chapter Gadgets
- 4 articles in the chapter Journeys
- 1 articles in the chapter Miscellany
- 7 articles in the chapter Movable Type
- 1 articles in the chapter Print
- 2 articles in the chapter SEO
- 4 articles in the chapter Social Networking
- 1 articles in the chapter Standards
- 1 articles in the chapter Writing
BiteSize.blog
ReaderFavorites
- CSS Image Framing
- Tools of the Web Design Trade, Pt.1: Where to Begin
- Tools of the Web Design Trade, Pt.2: Building Trust
- 10 Tips For Creating Website Mockups In Photoshop
- Movable Type As A Desktop App
- Redesign, Part 1: The Logo
- Redesign, Part 2: Stylesheet Philosophy
- The Social Graph in Plain Language
- Writing Your Own Autobiography: The New Persistence of Information
- Designing eComm 2008


















3 June 20081. Jesse Gardner:
That's a good question. I did consider employing a different editor (FCK or the YUI simple editor), but decided that was overkill for the purpose I needed it. There are also the additional complications of the context sensitive javascript controls (i.e. click bold while markdown is selected and you get **THIS**, click bold while Convert Line Breaks is selected and you get <strong>this</strong>) as well as figuring out how to enable different formatting types on a per-field basis.
I wasn't sure if formatting switches should be a plugin configuration setting, another field or just (as you mentioned) inherit the text formatting of the entry body. In the mean time you can use the 'filters' template tag modifier to specify how you want the contents of your field to be handled in your templates. (i.e. <mt:EntryDataIngredients filters="markdown" /> )