# mod\_content\_groups

Source: https://zotonic.com/docs/1298/mod_content_groups

URI: https://zotonic.com/id/1298

Language: en



Module for content group support and ACL-aware content group behavior.

Accepted Events
---------------

This module handles the following notifier callbacks:

- `observe_admin_menu`: Add content-group administration entries to the admin menu.
- `observe_rsc_delete`: Do not allow a content group to be removed iff there are resources in that content group using `m_content_group:is_used`.
- `observe_rsc_get_raw`: Ensure resources get a default content group when no explicit content group is set.
- `observe_rsc_update_done`: Rebuild/normalize the content-group hierarchy after relevant resource updates.

Delegate callbacks:

- `event/2` with `postback` messages: `delete_all`.
- `event/2` with `submit` messages: `delete_move`.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1298?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1298?language=en>)
