I followed this guide: http://www.movabletype.org/documentation/developer/plugins/extending-existing-object-type.html and had an init_registry method that...
Does anyone know of a reference or sample that explains the various variables such as next_max, list_end, list_total, etc. that are used to control the...
Explains as in documentation? No, I've never seen any. But explains in terms of real-world examples? Absolutely... If you don't already have them, get a...
[Asking over here too since it's related... Originally from MTOS-dev list] Does anyone know a good way to have your plugin config panel automatically opened to...
Hi, For a client I've to integrate MT with a php-based cms. I've used php::interpreter(1) and php's perl extension (2) to somwhow integrate them. The problem...
I'm trying to write a plugin for ActionStream which adds support for Slashdot, but to do that I need more complex functionality than what scraper or xpath...
Hello all. I'm putting out an updated version of our MT plugin and am having some issues with the upgrade scripts b/c I need to up the schema version. For the...
Jesse, Its hard to be specific since you haven't posted any code but... I don't think the MT api will remove the column. It is pretty good add schema changes...
Thanks for the reply, Mark. Sorry for not posting code, but I had literally followed the example on the page I referenced to the tee. Anywho, here's my ...
... This is correct, it must match the object type you have defined. Each object passing the "condition" will get passed to the "code" function, so your first...
Turns out I wasn't paying attention to the ever so important placement of a closing brace, so my entire upgrade_functions section was not in the registry...
If you already have a template object (from the db) loaded, you can do: my $ctx = $tmpl->context; The error is because your context does not include a blog...
Hmmm, see I'm loading the template from a plugin directory, not the database. Do I need to register the tmpl file in the registry to make this easier?...
I have an object being passed to a template and can access it's fields just fine. The object represents a user-selected "list", of which there may be many. I...
... In this line you seem to be creating $id but not setting it to anything, and then testing if it equals $lid. That obviously won't because you never gave...
Su, on the line you referenced, "id" is coming from the "lists" object (it maybe a hash) used in my mt:loop. Also notice that it's a "var", not a "setvar"....
... In that case, you were probably on the right track originally, but you need add the blog context manually: my $ctx = MT::Template::Context->new(); ...
Ok, that works. How do I pass it variable values so that tags like <mt:var and <mt:loop can get populated? What I have right now is: $params{items} =...
Michael, you should be able to just shove any other variables you want into the $params hash you have setup there. I'm not real great with my perl and what...