Return to doc.sitecore.com

Data Definition API Cookbook

Note: This Data Definition API Cookbook provides a conceptual overview of Application Programming Interfaces (APIs) that Sitecore developers can use to access and manipulate data template and branch template definitions.

To download the document, click one of the below links.
Sitecore CMS 6.0, 6.1, 6.2 versions:

Table of Contents

Data Templates
    How to Access a Data Template
        How to Access the Data Template Associated with an Item
        How to Access an Existing Data Template
        How to Create a Data Template
        How to Access the Icon of a Data Template
        How to Access the Base Templates of a Data Template
    How to Access a Data Template Section
        How to Access an Existing Data Template Section
        How to Add a Section to a Data Template
        How to Access the Icon of a Data Template Section
        How to Access the Sort Order of a Data Template Section
    How to Access a Data Template Field
        How to Access an Existing Data Template Field
        How to Add a Field to a Data Template Section
        How to Access the Properties of a Data Template Field
            How to Access the Sort Order of a Data Template Field
    How to Access the Standard Values of a Data Template
        How to Set a Standard Value of a Data Template Field
            How to Specify a Default Workflow for Items Based on a Data Template
            How to Specify Default Layout Details for Items Based on a Data Template
            How to Specify Default Insert Options for Items Based on a Data Template
            How to Specify a Default Subitems Sorting Rule for Items Based on a Data Template
Branch Templates
    How to Access an Existing Branch Template
    How to Create a Branch Template
        How to Create a Branch Template Containing a Single Item
    How to Add an Item to a Branch Template
        How to Copy Items to a Branch Template
    How to Access Field Values in Items in Branch Templates