Krang::CGI::Category - web interface to manage categories
use Krang::ClassLoader 'CGI::Category';
pkg('CGI::Category')->new()->run();
Following are descriptions of all the run-modes provided by
Krang::CGI::Category.
- find (default)
Show the category find screen.
- new_category
Shows the new category form which submits to the create runmode.
- create
Creates a new category object and proceeds to edit_category. Expects the
form parameters from new_category. Upon error, returns to new_category with
an error message. Upon success, goes to edit_category.
- edit
The category editing interface. Expects to find a category to edit in
$session{category} or a category_id in they query params.
- db_save
This mode saves the category to the database and leaves the category editor,
sending control to the find screen.
- db_save_and_stay
This mode saves the category to the database and returns to edit.
- save_and_jump
This mode saves the current data to the session and jumps to editing
an element within the category.
- save_and_bulk_edit
This mode saves the current element data to the session and goes to
the bulk edit mode.
- save_and_change_bulk_edit_sep
Saves and changes the bulk edit separator, returning to edit.
- save_and_leave_bulk_edit
This mode saves the current element data to the session and goes to
the edit mode.
- save_and_go_up
This mode saves the current element data to the session and jumps to
edit the parent of this element.
- delete
Deletes the category permanently from the database. Expects a category in
the session.
- delete_selected
Delete all the categories which were checked on the find screen.
- prepare_copy
Show the Category Copy screen, providing controls to tune the category copy.
- execute_copy
Execute the category copy operation.