From: okko Date: Fri, 16 Apr 2010 16:12:43 +0000 (+0300) Subject: Release of version 0.003. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Controller-MovableType.git;a=commitdiff_plain;h=9eb09c1bcc15348753b3c65b8948bba023f09e7f Release of version 0.003. --- diff --git a/Changes b/Changes index 7de3591..9c112cb 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,5 @@ 0.003 - 2010-04-xx + 2010-04-16 Fixed internal not_found call to properly pass $c when an unexisting script was requested. diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP index d38347b..7e5c3c3 100644 --- a/MANIFEST.SKIP +++ b/MANIFEST.SKIP @@ -1 +1,2 @@ ^(?!script/\w+\.pl|examples/[^\.]+|lib/[\/\w]+\.p(m|od)|inc/|t/\w+\.t|Makefile.PL$|README$|MANIFEST$|Changes$|META.yml$) +!~$ 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.