X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=README;h=f142ffa58a30fc95fd9570f0e0ed4b7d1e2852cc;hb=9eb09c1bcc15348753b3c65b8948bba023f09e7f;hp=ae7717c9c2925b28a033b9e8140432bd42b3f3ee;hpb=2958b5988777d2cdb3b8d96df291646366786637;p=catagits%2FCatalyst-Controller-MovableType.git diff --git a/README b/README index ae7717c..f142ffa 100644 --- a/README +++ b/README @@ -1,6 +1,10 @@ NAME Catalyst::Controller::MovableType - Run Movable Type through Catalyst +DESCRIPTION + Runs Movable Type 5 through Catalyst. Download Movable Type 5 from + http://www.movabletype.org/ + SYNOPSIS package MyApp::Controller::Mt; @@ -12,14 +16,33 @@ SYNOPSIS INSTALLATION Install Movable Type by extracting the zip into your template root - directory. Move mt-static to root/static/mt, and configure Movable Type - accordingly. + directory. Move mt-static to root/static/mt. See Synopsis on how to + inherit the Controller in your app. Presuming you installed Movable Type + into root/mt, in your App's config add: -DESCRIPTION - Runs Movable Type 5 through Catalyst. Download Movable Type 5 from - http://www.movabletype.org/ + cgi_root_path mt/ cgi_dir mt/ + mt_home = /full/path/to/MyApp/root/mt/ + PathPart = mt + + + The cgi_* directives are always given for the Root controller, no matter + what the Root controller is. + + You can modify the path where the script matches by configuring the + PathPart as shown above. This controller defaults to match on the path + "/mt". + + Finally, make sure that the Static::Simple doesn't affect the Movable + Type's installation directory. An example: + + __PACKAGE__->config( name => 'TerveinkansaFi', static => { # first + ignore all extensions, then specify static directories! + 'ignore_extensions' => [ qr/.*/ ], 'dirs' => [ qw/static/ ] } ); METHODS + capture_mt_script + Captures the path of the Movable Type. + run_mt_script Runs the requested Movable Type .cgi script transparently with cgi_to_response.