mod_admin_category

Note

This module requires the presence of module#mod_menu for the required JavaScript files which make up the menu editor.

Add support for editing Categories in the admin, by presenting an editable category tree at http://yoursite.com/admin/category.

ACL permissions

The following ACL permissions are required:

  • to view the page, the use permission on the ‘mod_admin_category’ module; see module#mod_acl_user_groups
  • to view the list of categories, view permission on category ‘category’; see module#mod_acl_user_groups
  • to edit and re-order the categories, edit permission on category ‘category’; see module#mod_acl_user_groups. Admin module for managing category trees and category resources in the backend.

Accepted Events

This module handles the following notifier callbacks:

  • observe_admin_menu: Contribute module entries to the admin menu tree.
  • observe_category_hierarchy_save: Check edit permissions and persist category hierarchy changes from the admin UI.
  • observe_rsc_delete: Do not allow a category to be removed iff there are resources within that category using m_category:is_used.

Delegate callbacks:

  • event/2 with postback messages: delete_all.
  • event/2 with submit messages: delete_move.

Edit on GitHub

Observes

Notifications

observe_rsc_delete/2

Resource will be deleted. This notification is part of the delete transaction, it’s purpose is to clean up associated data.

Controllers

Controllers

controller_admin_category_sorter

Shows the admin category screen where you can edit the category tree, rearranging the categories, adding new categories, or removing existing ones.

Dispatch rules

See also

Modules

mod_menu

Create nested navigation menus for your site.