CatalystX::CMS::Page - content storage class


CatalystX-CMS documentation  | view source Contained in the CatalystX-CMS distribution.

Index


NAME

Top

CatalystX::CMS::Page - content storage class

SYNOPSIS

Top

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

DESCRIPTION

Top

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

METHODS

Top

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

Top

Peter Karman, <karman@cpan.org>

BUGS

Top

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

Top

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

COPYRIGHT & LICENSE

Top


CatalystX-CMS documentation  | view source Contained in the CatalystX-CMS distribution.