MojoMojo::Controller::Admin - Site Administration


MojoMojo documentation  | view source Contained in the MojoMojo distribution.

Index


NAME

Top

MojoMojo::Controller::Admin - Site Administration

DESCRIPTION

Top

Action to handle management of MojoMojo. Click the admin link at the bottom of the page while logged in as admin to access these functions.

METHODS

Top

auto

Access control. Only administrators should access functions in this controller.

settings ( /.admin )

Show settings screen.

user ( .admin/user )

User listing with pager, for enabling/disabling users.

role ( .admin/role )

Role listing, creation and assignment.

create_role ( .admin/create_role )

Role creation page.

edit_role ( .admin/role/ )

Role edit page.

handle_role_form

Handle role form processing. Returns true when a submitted form was actually processed.

update_user ( *private*)

Update user based on user listing.

precompile_pages

Make a formatted version of content body and store it in content.precompiled. This makes MojoMojo go zing, when loading content for page requests.

Depending on the number of pages, and versions of them, this could take some minutes. For 2000 page versions on a 2.4 GHz desktop this script took about 3 minutes to run.

delete

Delete a page and it's descendants. This is in Admin.pm because we are restricting page deletion to admins only for the time being.

AUTHOR

Top

Marcus Ramberg <mramberg@cpan.org>

LICENSE

Top

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.


MojoMojo documentation  | view source Contained in the MojoMojo distribution.