NAME

CatalystX::CMS::Page - content storage class

SYNOPSIS

 my $page = $c->model('CMS')->fetch(file => 'foo/bar');
 # $page isa CatalystX::CMS::Page
 

DESCRIPTION

CatalystX::CMS::Page is a subclass of CatalystX::CRUD::Object.

METHODS

Only new or overridden method are documented here.

new( file => path/to/file )

Returns new CatalystX::CMS::Page object.

create

Calls create() on the delegate(), passing all params.

read

Calls read() on the delegate(), passing all params.

update

Calls update() on the delegate(), passing all params.

delete

Calls delete() on the delegate(), passing all params.

url

Returns file() stringified.

calc_url

Determines the url value based on file(), type() and flavour(). Sets the url() value and returns the value.

title

Returns the title from attrs().

type

Returns the type from attrs() or the local type if overriden in the page.

flavour

Returns the flavour from attrs() or the local flavour if overriden in the page.

bare_file

Returns the delegate basename() without any file extension (as indicated by the delegate ext() value).

tree

Returns array suitable for templating. The array data are the related URLs for the wrapper set for this Page.

AUTHOR

Peter Karman, <karman@cpan.org>

BUGS

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.

ACKNOWLEDGEMENTS

The Minnesota Supercomputing Institute http://www.msi.umn.edu/ sponsored the development of this software.

COPYRIGHT & LICENSE

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.