Is there a way to access the args of a parent container? For example, suppose I define a template tag that is designed to be used inside an <MTEntries>...
I don't have time to test this theory, but the MT4 template compiler stashes a parent element in each token. You should be able to achieve what you want by...
... Thanks, Tim, I will give that a try. ... Can you elaborate on this one? Do you mean that I can grab the actual $tmpl object from the stash, from within...
... In MT::Template::context that MT::Builder::compile calls to create a context object for the page being built, that method stashes the template object with...
... Is there any particular reason you ask? Did something change that might make you wonder about compatibility or whatever? /I'm/ asking because someone's ...
Here is what I posted to that thread in that forum thread: This error may be related to v5.10 disallowing a sloppy program practice or it may be some...
I'm forwarding this along for Chris. See below. <tim/> ... From: Chris Ernest Hall <fozboot@...> Date: Jan 4, 2008 1:53 PM Subject: Re: [mt-dev] Perl...
... As of MT4, a plugin should register callbacks in the registry, either in the MT::Plugin::MyPlugin->new() call or in the init() or init_registry() method....
... http://www.movabletype.org/documentation/developer/plugins/creating-a-global-modifier.html ... I think that the global tag filter is probably the better...
... Don't forget that you can also register callbacks and all other matters of plugin hooks via a config.yaml file. The technical advantage being MT doesn't...
... Hi Tim, Thanks for the tip on that! Surely a useful way to keep the plugins thinner. Hoping you or someone else can answer a related question on text ...
... Hey Kevin, I've began to do some hacking with the macros (it's very nice for microformats) but I can't get it to work in the content entry itself. If I add...
... Sorry if I was unclear about how this would work. expand_macros isn't a built-in feature of MT, it's just a name I made up as an example of a global...
Mark, thanks for the example. Here's another tip--when I'm working on plugin code that involves regexes, what I'll often do first is something like this: sub...
Whoops, hit the wrong key and Gmail went nuts and then sent the message ;) *This* is what I do: sub bold_mark_filter { MT->log('blog_mark_filter started'); my...
... Okay, I finally got around to trying this, and here is what I came up with, which works with limitations: sub my_plugin_tag_handler { my($ctx, $args,...
Let's say I plan to try and open discussion for adding a db column to various MT objects(at the very least entries). Are there any technical/inherent reasons...
... You're not, and it turns out to be really easy: http://movabletype.org/documentation/developer/plugins/extending-existing-object-type.html (I think you may...
... You can't define an index on existing object column extensions. They are metadata that are all stashed in the meta column akin to how MT::PluginData...
Here is another limitation that I have ran into: this doesn't work when either the target tag or container tag (or both) are within an included template...
... This is true for the meta columns (entry_meta) that MT uses internally for some things and that CustomFields uses, but when I tried this example "extending...
sent previously, but from the wrong email address.... ;) ... Tim, I think you may be confusing object extensions (as described in the link Kevin posted) with...
... I think I am. I was under the impression there were only (what we are calling here) meta extensions. This creates a lot of questions for me. I guess I'll...