ExpressionEngine Docs

Category Group Model

class ExpressionEngine\Model\CategoryGroup

Properties

Name Validation Type Description
group_id
site_id
group_name required, unique[site_id]
sort_order enum[a,c]
exclude_group enum[0,1,2]
field_html_formatting enum[all,safe,none]
can_edit_categories
can_delete_categories

Relationships

Site

The MSM Site which the Category Group belongs to.

CategoryGroupSettings

Per-channel settings for this Category Group.

CategoryFields

Custom fields associated with this Category Group

Categories

Collection of categories that have been created in this group

Channels

Channels that this Category Group has been assigned to

UploadDestinations

File upload directories that this Category Group has been assigned to

Methods

  • getAllCustomFields()
  • createCategoryField()
  • getContentType()
  • getCategoryTree()
  • getFieldMetadata()
  • populateCategories()
  • buildCategoryOptionsTree()
  • buildCategoryList($categories, $sort_column)

Events

  • afterDelete