NAME

CatalystX::CMS::Model - manage template file paths

SYNOPSIS

 package MyCMS::Model::CMS;
 use strict;
 use base qw( CatalystX::CMS::Model );
 1;

DESCRIPTION

CatalystX::CMS::Model is a subclass of CatalystX::CRUD::Model::File. Be sure to read that documentation.

METHODS

Only new or overridden methods are documented here.

Xsetup

Sets inc_path() based on the main application cms config root values.

fetch( file => path/file )

Overrides base method to additionally set cms_root and ext in the returned CatalystX::CMS::Page object.

find_page_in_inc( cmspage [, extra_paths] )

Called by fetch(). Locates cmspage in the filesystem if it exists, setting type and flavour flags and calling the read() method on cmspage if found.

Returns cmspage.

make_query

Returns a CODE ref according to CatalystX::CRUD::Model::File API to skip all .svn dirs and files not ending with file_ext().

Overrides default method to call fetch() on each 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.