Process Tags plugin

Freshness Warning
This article is over 11 years old. It's possible that the information you read below isn't current.

One of the questions often seen on the Movable Type support forums is related to the usage of MT tags inside your entry text. Typically someone tried to use an MT tag inside their entry body and found that it didn’t process the tag. And someone recently asked me why they couldn’t use the MTAmazon plugin inside an entry.

The reason why this doesn’t work is that Movable Type just doesn’t look inside your entry text when it creates your pages. But now it can.

Process Tags is a new plugin from Kalsey Consulting Group that creates a new global tag attribute called process_tags. A global tag attribute is a MT tag attribute that can be used on any tag. You’ve probably seen and used the built-in global attributes like encode_html and dirify.

By using the process_tags attribute, you tell Movable Type to process all the MT tags that are contained in whatever tag you use it on. So for example, if you have included MT template tags in your entry body, you can use <MTEntryBody process_tags="1"> to make sure that those tags get used when the entry is built.

Download

Process Tags 1.0

Installation

Copy processtags.pl into a directory called plugins inside your Movable Type directory. If you don’t already have a plugins directory, create it first. Copy postproc.pm into a directory called bradchoate inside your extlib directory. If you don’t already have a bradchoate directory, create it first.

Your installation should now look like this:
mtdirectory/plugins/processtags.pl
mtdirectory/extlib/bradchoate/postproc.pm

Usage

Once you’ve installed Process Plugins, you’ll have a new global tag attribute that can be used on any non-container tag. Keep in mind, though, that just because you can use the attribute on any tag, using it on things like date tags doesn’t make much sense.

  • process_tags
    When set to 1, processes the results of any MT tag for more MT tags. For example, if you use this on your MTEntryMore tag, any MT tags inside your extended entries would be processed.

Example

<MTCategoryDescription process_tags="1">

Acknowledgements

This plugin relies upon Brad Choate’s post processing plugin, postproc.pm. Brad even updated his plugin to better support this plugin.

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.

Revision History

1.0 - August 5, 2002
Initial release.

Jamie
February 6, 2006 11:11 AM

Hi - I installed Process Tags and MTGoogleMaps. I receive the following error from the cron job: Found = in conditional, should be == at cgi-bin/mt/plugins/GoogleMap.pl line 249. Subroutine MT::Template::Context::add_global_filter redefined at cgi-bin/mt/extlib/bradchoate/postproc.pm line 22. Subroutine MT::Template::Context::post_process_handler redefined at cgi-bin/mt/extlib/bradchoate/postproc.pm line 41. Any suggestions? Thanks in advance.

Geoban
March 19, 2006 9:38 PM

Wow, That was easy. Great plugin. Exactly what I was looking for. Thanks.

Rew Rixom
April 25, 2006 7:00 PM

That was just what I needed! Thank You! Thank You!

Eric
July 7, 2006 5:33 PM

Where does this go? Thanks

Eric
July 7, 2006 5:34 PM

MTCategoryDescription process_tags="1"

voids
July 13, 2006 6:32 AM

Hi~ I think it is a great plugin that I wanted. But is it available to use this plugin in MT 3.2? Actually I failed to use this in my weblogs. (Every tags with this parameter meet an error messages which notifies the out-of-contexte using of template tags)

his
July 16, 2006 2:34 AM

Thank you very good plugin! Process Tags plugin needed small hack to work with MT3.2. But with MT3.31, original code works fine for me. Regards, Hisaaki Shibata

Gregory
February 3, 2007 4:36 AM

I can confirm that commenting out "use bradchoate::postproc;" allows process_tags to work with MT 3.3 without requiring the postproc extension (which was disrupting Notifier on my installation). additionally, by comment out the said line, the MT Plugins interface allows you to see the process_tags 'resources'; ie, the process_tags attribute. thank you for the plugin. I can now refer to entries by id from within entries without fear of urls gone wrong: regards, Gregory

JR Geoffrion
February 7, 2008 11:11 AM

Has anyone been able to make the process_tag work with MT4.1? I'm having trouble and can't figure out which lines to change to make it work. Thanks in advance for your assistance -- I'll be happy to provide details as requested.

Gregory
April 8, 2008 8:02 AM

ProcessTags is working with 4.1 ;-) I downloaded v1.0, commented out the "use bradchoate::postproc;" line and uploaded it to my MT4 server. I did NOT upload the postproc.pm file. at first, I thought it wasn't working and then I realised that I had reverted the template sets to an MT set and needed to reinsert the process_tags="1" attribute in each and every instance of , and . once I had done that and republished the files, everything worked fine. note that attributes are processed in the order that they are specified in the tag (new in MT4?). therefore, and are very different.

Paul
April 24, 2008 2:34 AM

Thanks Gregory, been trying to get this to work for ages, tried the same method as you and it worked!

Toni Hambilton
July 20, 2008 6:16 PM

I uploaded both parts of the plugin, added the tag to the entry more tag, and presto it works in 4.2 Excellent..

vr
October 31, 2008 6:12 AM

Question: We have downloaded the plug in because we want to use the template variables on pages and entries. We also downloaded the FCK editor plugin and re-configured it. I created a page that uses a template variable, when I'm in the WYSWSG editor. I save the page, and I can see the variable's value on the page in the browser. However, if I re-open the page in WYSWSG mode, it breaks the variable by putting the < and > in place of the that close the variable. So instead of having this on the page: Instead you have: <$mt:var name="test"$> I would really appreciate any assistance on this issue. Thanks

Adam Kalsey
October 31, 2008 10:22 AM

That's an issue with FCKEditor, not with the plugin. Most wysiwyg editors for the web replace angle brackets with HTML entities. Some suggestions for fixes: http://www.google.com/search?q=fckeditor+%26lt%3B

pat g
June 26, 2010 4:41 AM

Thanks gonna try this, even bearing in mind the freshness warning...hope it works. cheers p

These are the last 15 comments. Read all 35 comments here.


Your comments:

Text only, no HTML. URLs will automatically be converted to links. Your email address is required, but it will not be displayed on the site.

Name:

Not your company or your SEO link. Comments without a real name will be deleted as spam.

Email: (not displayed)

If you don't feel comfortable giving me your real email address, don't expect me to feel comfortable publishing your comment.

Website (optional):

Follow me on Twitter

Best Of

  • Let it go Netscape 4 is six years old.
  • Pitching Bloggers Forget what you learned in your PR classes. Start acting like a human instead of a marketer, and the humans behind the blogs will respond.
  • The best of 2006 I wrote a lot of drivel in 2006. Here's the things that are less crappy than the rest.
  • Lock-in is bad T-Mobile thinks they'll get new Hotspot customers with exclusive content and locked-in devices.
  • Debunking predictions Read/Write Web's authors have some goofy predictions.
  • More of the best »

Recently Read

Get More

Subscribe | Archives

11

Recently

Double Opt-In helps you (Apr 2)
A simple reason why double opt-in is a good thing for marketers.
Make the most of opportunities (Mar 5)
Often, part of success is being in the right place at the right time. What will you do with the opportunity when it happens?
Email as a model for future mobile phone service (Feb 10)
What if your phone wasn't tied to your phone number?
MySQL inadequecies (Feb 9)
This guy seriously hates MySQL and helps you understand how to use it better.
invisible Fence (Mar 22)
The New York Times has a paywall now. Sorta. If you don't choose to ignore it.
Black status icon for Chrometa (Mar 17)
Replacing the status icon of Chrometa
Using Google Voice as your voicemail on AT&T (Oct 26)
How I set up my iPhone to use Google Voice as it's voicemail system.
Don Mattingly forced to make coaching change (Sep 17)
New LA Dodgers coach starts to wonder if he knows the rules of baseball at all.

Subscribe to this site's feed.

Elsewhere

Tropo
Voice and communications platforms, including Tropo and Phono. Work.
SacStarts
The Sacramento technology startup community.
Pinewood Freak
Pinewood Derby tips and tricks

Contact

Adam Kalsey

Mobile: 916.600.2497

Email: adam AT kalsey.com

AIM or Skype: akalsey

Resume

PGP Key

©1999-2014 Adam Kalsey.
Content management by Movable Type.