mod_content_groups

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: 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.

Edit on GitHub

Observes

Notifications

observe_rsc_get/3

Resource is read, opportunity to add computed fields Used in a foldr with the read properties as accumulator.

Notifications

observe_rsc_update_done/2

An updated resource has just been persisted. Observe this notification to execute follow-up actions for a resource update.

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.

Models

Models

content_group

Model for content-group checks, currently exposing whether a content group is in use.

See also

Referred by

Models

rsc

The main resource model, which is the central part of the Zotonic data model. This model provides an interface to all resource ("page") information. It also…