Content Items

Content Items

What is a Sitecore Content item?

  • An addressable unit of content with a specific location in the Content Tree
  • A node in the Content Tree with values for fields defined by an associated data template
  • All items can be accessed through the Sitecore API
  • Not available as pages on the site when they only contain metadata or system information

What are the two types of items in Sitecore?

  • Content items contain information that will appear on the published Web site
  • Definition items contain meta-data describing some aspect of the Web site configuration or implementation
    • Layouts, sublayouts and other renderings have a definition item so Sitecore can access the code
    • Data templates and fields are definition items that are used to model content for a site 

What types of versions does Sitecore support?

  • Language versions are the primary type of versioning supported by Sitecore
    • Each item can contain any number of language versions
    • Each item must have at least one language version defined
    • The default language version is English if no other language version is specified
  • Numeric versions of items is the secondary type of versioning supported by Sitecore
    • All numeric versions exist within a language version of an item
    • Each language version of an items must contain at least one numeric version
    • Each language version of an item can contain any number of numeric versions

Why is item versioning useful?

  • Language versions are used to support localization of a site
  • Numeric versions are used for many reasons
    • An old version of a page can be displayed to the public while the new version is being created
    • Newer versions of items can be blocked from being published until they are approved
    • A page can be rolled back to an older version of the page quickly
    • Seasonal pages can be re-used more easily each year

What is the relationship of one Sitecore item to another?

  • Sitecore items can relate to other items in the Content Tree (like a foreign key)
  • An item can contain a field that stores the ID of another item
  • Each Sitecore item keeps track of its parent and children

What are the primary attributes of Sitecore items?

  • The Globally Unique ID (GUID) is the primary attribute of each Sitecore item
    • All Sitecore items have a GUID assigned to them at the time they are created
    • The GUID does not change unless the item is deleted and re-created
  • All Sitecore items also have a path in the Content Tree
    • The path contains all of the containers from the root of the tree to the item
    • The path is less efficient because Sitecore needs to convert it to a GUID to locate an item
  • Either one of these attributes can be used to locate an individual item uniquely

What attributes are displayed in the Item Properties Dialog Box?

  • Who created the item
  • When it was created
  • When it was last modified
  • Whether or not the item is in a workflow
  • Whether or not a reminder has been set
  • Whether or not an archive date has been set

How does someone edit content items in Sitecore?

  • Log on to the Sitecore User Interface (UI) to edit a content item
    • The Sitecore UI provides tools that are suitable for experienced as well as inexperienced Content Authors
    • Add /sitecore to the URL of your authoring website so http://authoring.mydomain.com becomes http://authoring.mydomain.com/sitecore
  • Save your content changes frequently to minimize lost data from network or power related issues
    • Use the Save button on the ribbon or press <Ctrl-S> to save content in the Content Editor

Sources