Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Fixed IDs and numeric codes

The node, object and section IDs a new installation starts with, the numbers of the sort fields and sort orders, and the status codes of objects and versions, with the setting or constant each one comes from.

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/help/cms-developers/fixed-ids-and-numeric-codes.md

On this page

Fixed IDs and numeric codes

This is a lookup page. Settings, fetch parameters, the database and imports use numbers where the administration shows names; the tables below translate them. Values marked setting can differ per site, so read them from the setting in code instead of writing the number.

The top of the tree

The tree has a root node, ID 1, which has no object and cannot be removed or shown. Below it are the top-level nodes; each starts a branch with its own section and top menu tab.

NodeBranchSetting (content.ini [NodeSettings])Section
1the root, no objectnonenone
2ContentRootNodeStandard (1)
5UsersUserRootNodeUsers (2)
43MediaMediaRootNodeMedia (3)
48SetupSetupRootNodeSetup (4)
58DesignDesignRootNodeDesign (5)

Top-level nodes cannot be removed or moved: the permission check refuses both for any node whose parent is the root. In templates read them with ezini( 'NodeSettings', 'RootNode', 'content.ini' ) rather than writing 2.

Users and user groups of a new installation

These IDs come from the clean installation data. Site packages may add groups or rename them, so check your own site under Users.

Object IDNode IDWhatSetting
45the group Users, top of the user tree
1045the anonymous user, the identity of every visitor who is not logged insite.ini [UserSettings] AnonymousUserID
1112the group where self-registered users are created (Guest accounts in the clean data, often renamed Members)site.ini [UserSettings] DefaultUserPlacement (the node ID)
1213Administrator users
1314Editors
1415the first administrator account
4244Anonymous Users, the group of the anonymous user

The anonymous user and the first administrator must never be removed: the site uses the first for every visitor, and the second may be the only account that can reach the setup pages.

The classes behind them are site.ini [UserSettings] UserClassID=4 (User) and UserGroupClassID=3 (User group).

Sections

IDNameIdentifier
1Standardstandard
2Usersusers
3Mediamedia
4Setupsetup
5Designdesign

Section IDs are never reused after a section is removed. Override rules can match either the ID (Match[section]) or the identifier (Match[section_identifier]); the identifier survives a move to another installation, the ID may not.

Sort fields and sort orders

Each node stores how its children are sorted: a field (sort_field) and a direction (sort_order). The numbers are constants of eZContentObjectTreeNode; $node.sort_array turns them into the form a fetch takes.

sort_fieldConstantSorts byName in a fetch sort_by
1SORT_FIELD_PATHplace in the treepath
2SORT_FIELD_PUBLISHEDfirst publication datepublished
3SORT_FIELD_MODIFIEDlast modificationmodified
4SORT_FIELD_SECTIONsectionsection
5SORT_FIELD_DEPTHdepth in the treedepth
6SORT_FIELD_CLASS_IDENTIFIERclass identifierclass_identifier
7SORT_FIELD_CLASS_NAMEclass nameclass_name
8SORT_FIELD_PRIORITYthe priority editors set by handpriority
9SORT_FIELD_NAMEobject namename
10SORT_FIELD_MODIFIED_SUBNODElatest change anywhere below the nodemodified_subnode
11SORT_FIELD_NODE_IDnode IDnode_id
12SORT_FIELD_CONTENTOBJECT_IDobject IDcontentobject_id
13SORT_FIELD_VISIBILITYhidden or visiblevisibility (a node's sort_array names it is_invisible, which the fetch does not accept: pass visibility yourself)
sort_orderConstantMeaningIn a fetch
0SORT_ORDER_DESCdescendingfalse()
1SORT_ORDER_ASCascendingtrue()

A list that follows the order editors chose:

{def $children = fetch( 'content', 'list', hash( 'parent_node_id', $node.node_id,
                                                  'sort_by', $node.sort_array ) )}

Status codes

An object (ezcontentobject.status, constants of eZContentObject):

StatusConstantMeaning
0STATUS_DRAFTcreated, never published
1STATUS_PUBLISHEDhas a published version
2STATUS_ARCHIVEDin the trash

A version (ezcontentobject_version.status, constants of eZContentObjectVersion):

StatusConstantMeaning
0STATUS_DRAFTbeing edited; only its creator may edit it
1STATUS_PUBLISHEDthe version readers see; one per object
2STATUS_PENDINGsent for publishing, held back by a workflow (approval, a date)
3STATUS_ARCHIVEDan earlier published version, kept in the history
4STATUS_REJECTEDrefused; not set by the shipped workflows, which return a denied version to draft
5STATUS_INTERNAL_DRAFTa draft opened but not stored yet; old ones are removed by a cronjob
6STATUS_REPEATa workflow event asked to show its form again, so the version can be edited once more
7STATUS_QUEUEDwaiting in the asynchronous publishing queue

Only published objects have nodes. A draft of a new object, a pending first version and an object in the trash are not in the tree, so a fetch of nodes never returns them.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x