What is Content? 

When discussing a Content Management System, it is important to understand the term content. This is especially true in Sitecore because of the separation of content and presentation elements within the product.

The definition of content is substantive information or creative material viewed in contrast to its actual or potential manner of presentation. With this definition, we can discuss the text and related digital assets of a website separate from the look and feel of the presentation.

Content Terms

  • Data Template: The data structure and framework around which content is created.
  • Fields: The individual components of a Data Template where data is entered into the system
  • Field Types: Determines the manner in which data is entered or selected. These include single-line text, multi-line text, rich text, numbers, checkbox, checkbox list, and many others.
  • Inheritance: Data Templates can inherit from other base templates to allow templates to share field definitions.

Data Templates

The starting point for adding content is through the creation of data templates. Let's use this article item as an example. As stated earlier, a template can inherit from other templates - making it easy to manage things like titles, icons, etc. in one location, rather than copying from template to template.

Content of the current article in Content Editor (with field sections collapsed)

You'll note this article is made up of many fields, and those fields are sorted into field sections. The Quick Info is a system field section present on every item so developers/information architects/etc. can easily look up the item ID, path, template, owner, etc.

If you click on the link to the template /sitecore/templates/Launch Sitecore/Article you'll launch the Template Editor and you will see that the template is actually quite small - there are only two fields. Adding new fields and sections is as simple as typing in the appropriate box, and selecting a field type.

Template Manager view of an Article Template

As for all the other fields and field sections such as general, menu display and the main text - these are actually inherited from other templates. If you click the Content Tab, you can see all of the inherited templates.

Inherited templates

Content Items

Once Data Templates are created, we use these to create content items. A content item is simply an instance of a template. By storing this content apart from the visual presentation, it can be reused across multiple pages, sites, or even on a mobile version of the current site. This results in less editing and more consistency, as well as better content.

Everything in Sitecore is stored in the Content Tree as an item. This can be assets such as PDFs or images, content primarily used to make pages (such as this article page), metadata, and content used in components on pages. Even the Sitecore system settings such as templates and workflows are stored as items in the same way.

Having everything in a single repository makes it easy to reuse data. For example, in this article template there is a field called Prerequisite Articles. The source associated with this field is specified as /sitecore/content/Home/about-launch-sitecore. This means that the moment someone adds a new article, it is automatically able to be used as a source for this field. You can get fairly complex filtering with the Source attribute. Full details on Data Templates can be found in the Data Definition Reference on SDN.

Once you start to populate the content tree and define your Information Architecture you will want to make use of Insert Options. Insert Options restrict what type of content can be inserted in which folders in the content tree.. Insert Options are the rules that help maintain consistency in your information architecture and help keep your editors from inserting the wrong content types in the wrong folders..