Is this really the version you are looking for? Kentico 8.1 documentation is no longer updated. Use the switch in the header to choose your Kentico version.

Storing custom data for all page types

If you need to add custom data fields to all pages, regardless of page type, use the NodeCustomData column of the CMS_Tree database table, or the DocumentCustomData column of the CMS_Document table.

The content of the columns is inaccessible from the administration interface. You can access the columns in the API using properties of objects of the TreeNode class:

  • TreeNode.NodeCustomData
  • TreeNode.DocumentCustomData

The properties provide two ways to store values:

Storing a single text value
treeNode.NodeCustomData.Value = "Single block of text";
Storing a collection of custom values in XML format
treeNode.NodeCustomData["CustomProperty1"] = "Value 1";
treeNode.NodeCustomData["CustomProperty2"] = "Value 2";