2 Catalyst::Controller::MovableType - Run Movable Type through Catalyst
5 Runs Movable Type 5 through Catalyst. Download Movable Type 5 from
6 http://www.movabletype.org/
9 package MyApp::Controller::Mt;
12 BEGIN {extends 'Catalyst::Controller::MovableType'; }
18 Install Movable Type by extracting the zip into your template root
19 directory. Move mt-static to root/static/mt. See Synopsis on how to
20 inherit the Controller in your app. Presuming you installed Movable Type
21 into root/mt, in your App's config add:
23 <Controller::Root> cgi_root_path mt/ cgi_dir mt/ </Controller::Root>
24 <Controller::Mt> mt_home = /full/path/to/MyApp/root/mt/ <actions>
25 <capture_script_name> PathPart = mt </capture_script_name> </actions>
28 The cgi_* directives are always given for the Root controller, no matter
29 what the Root controller is.
31 You can modify the path where the script matches by configuring the
32 PathPart as shown above. This controller defaults to match on the path
35 Finally, make sure that the Static::Simple doesn't affect the Movable
36 Type's installation directory. An example:
38 __PACKAGE__->config( name => 'TerveinkansaFi', static => { # first
39 ignore all extensions, then specify static directories!
40 'ignore_extensions' => [ qr/.*/ ], 'dirs' => [ qw/static/ ] } );
44 Captures the path of the Movable Type.
47 Runs the requested Movable Type .cgi script transparently with
51 Sets the response to a simple 404 Not found page. You can override this
58 Catalyst::Controller::WrapCGI
61 Oskari 'Okko' Ojala <perl@okko.net>
64 Matt S. Trout <mst@shadowcatsystems.co.uk>
67 Copyright 2010 the above author(s).
69 This sofware is free software, and is licensed under the same terms as