This is the blog of Adam Kalsey. Unusual depth and complexity. Rich, full body with a hint of nutty earthiness.

Content Management

Expressions

Expressions is a Movable Type (MT) plugin designed to be used by plugin developers. The plugin provides a method that allows plugins to support the use of Movable Type tag expressions in their tag attributes. When a plugin is using Expressions, MT tags like the following are allowed:

<MTFoo bar="[MTEntryBody encode_xml="1"]">

Download

Expressions.zip

Installation

Copy Expressions.pm into a directory called MTPlugins inside your Movable Type extlib directory. If you don’t already have a MTPlugins directory, create it first.

Your installation should look like this:
mtdirectory/extlib/MTPlugins/Expressions.pm

Usage

Unless you are developing plugins, you won’t find this plugin very useful. It doesn’t add any new tags. It doesn’t make your copy of MT do anything interesting. All it does is gives plugin authors an easy way to support tag expressions in their plugins.

If you are a plugin developer, well, that’s a different story. By using this plugin, you’ll find you sleep better at night, no longer get hangovers, and have the sudden urge to send me money by PayPal.

Okay, maybe not.

But you will be able to support tag expressions in your plugins.

To use, all you need to do is hand the plugin your MT object reference (commonly stored in $ctx) and your tag attributes (commonly stored in $args). The plugin will check all your attributes for tag expressions, run them through MT for processing, and hand them back to you, ready for use.

The plugin nesses with your token stash and your stashed builder object, so it’s very important to retreive these before you call this plugin. You can do that like so:

my $tokens = $ctx->stash('tokens');
my $builder = $ctx->stash('builder');
$args = MTPlugins::Expressions::process($ctx, $args);

Example

<MTMyPlugin input="[MTEntryTitle]">

Acknowledgements

This plugin was insired by an idea from Brad Choate. Brad also contributed a patch to MTAmazon that is now part of this plugin as well.

License

Like our other freeware, this plugin is released under the open-source MIT License. In plain English, that means you can do whatever you want with the software, including modifying it, selling it, or eating it, but we’re not responsible for anything that goes wrong. Read the license file included with the downloaded package for the complete license.

Revision History

1.0 - January 8, 2003
Initial release.

Recently Written

AI writing is intolerable. I'm trying to fix it.
Nov 13: "Delve" is the least of it. It's too long and hard to follow. I built open-source skills for Claude, ChatGPT, and Grok that fix that.
The Pumpkin Talks Back
Nov 6: I gave my flaming jack-o'-lantern a voice, a camera, and a personality, and let it insult trick-or-treaters for six hours.
A Skills Wheel for Product Designers
Oct 18: I love Petra Wille's PM Wheel for product managers. I couldn't find an equivalent for designers, so I built one.
Where Does Product Marketing Belong?
Mar 6: The debate about whether PMM reports to product or marketing has a simple answer once you ask the right question.
The Rise of Vertical Software
Feb 15: AI makes execution cheap. Deep industry knowledge becomes the real moat.
Using Chatbots as a Tutor
Feb 11: A prompt that turns your LLM chatbot into a custom tutor.
How to Interview Product Managers
Nov 9: Most people never learned to interview, so when thrust into hiring a product manager they ask bad questions. Here's how to ask better ones, with lots of examples of real questions.
AI as Your Strategic Thinking Partner
Oct 12: AI becomes a lens on your own logic. It doesn’t replace your judgment—it sharpens it. By asking questions you wouldn’t think to ask yourself, it turns private reasoning into something visible and testable.

Older...

What I'm Reading