Monday, January 3, 2011

Document Type in Umbraco

Document type is a key element of Umbraco. It defines the properties, templates and hierarchy to be used for the content elements. The architecture of Umbraco does not allow creating a content element without a document type.

Document types define the fields to enter data. These fields are called properties in Umbraco. Properties have metadata. The items in the metadata include Name, Alias, Type and Tab. Name refers to a user friendly name of the property. Alias refers to the text used by Umbraco in GET_ITEM calls. Type refers to Data type in Umbraco. Tabs are used to organize document properties. Tabs hold only a single metadata called Name which is used to identify the tab.

Structure tab is the place where we can control the hierarchy of the site. Info tab is the first tab on a document type. This represents the display options for the document type. Info tab has got the following metadata items such as Name, Alias, Icon, Thumbnail, Description, Allowed templates and Default template. Name refers to a user friendly name of the document type. Alias is a text used by Umbraco. Icon is the image displayed in the content tree. Thumbnail refers to a large image that shows on the Create Page dialog. Description holds the information about the document type. An allowed template allows managing the templates associated with this document type.

Next I will jot down a brief introduction to templates in Umbraco.

1 comment:

  1. thanks for clear explanation..it would be much helpful if you explain using some example also

    ReplyDelete

Installing ASP.NET MVC

Installing ASP.NET MVC Before we dive deep into the ASP.NET MVC, let’s install it our development machine. This is very straight forwa...