CatalystX::CMS::Action - action base class
package MyApp::Controller::Foo; use base ( 'CatalystX::CMS::Controller', # MUST come first 'Other::Controller::Base::Class' ); sub bar : Local { } 1; # if /foo/bar?cxcms=1 then can edit foo/bar.tt
CatalystX::CMS::Action isa Catalyst::Action class that handles all the template management. It is typically accessed via a subclass of CatalystX::CMS::Controller.
Only new or overridden method are documented here.
Overrides new() method to call next::method() and then instantiate a CatalystX::CMS object.
You can pass in a cms key/value pair. The value should be an object that conforms to the CatalystX::CMS API.
Checks for the presence the cxcms request parameter. If present and true, calls the cms() method instead of the action's target method.
cxcms
The primary engine of the CMS. Called via execute() if the cxcms param is true.
Possible values for the cxcms parameter:
create
edit
cancel
save
preview
diff
history
blame
See the documentation for CatalystX::CMS for the method name matching the cxcms value.
Works just like the http_method in CatalystX::CRUD::REST. Returns the request method, deferring to the x-tunneled-method or _http_method params if present.
x-tunneled-method
_http_method
Peter Karman, <karman@cpan.org>
<karman@cpan.org>
Please report any bugs or feature requests to bug-catalystx-cms@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-catalystx-cms@rt.cpan.org
The Minnesota Supercomputing Institute http://www.msi.umn.edu/ sponsored the development of this software.
http://www.msi.umn.edu/
Copyright 2008 by the Regents of the University of Minnesota.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install CatalystX::CMS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::CMS
CPAN shell
perl -MCPAN -e shell install CatalystX::CMS
For more information on module installation, please visit the detailed CPAN module installation guide.