Creating Folders

Creating Folders

Sitecore Folders

  • Any item in the Contrent Tree can contain other items
  • Folder items act solely as a container for other items and usually have no defined fields
  • The folder name becomes part of the URL when you place content items inside of a folder


C# Web Control Code


Sitecore.Data.Items.Item folder = Sitecore.Data.Items.Item.Add("foldername", database.Templates[Sitecore.TemplateIDs.MediaFolder]);

 

folder.ID, folder.Name, folder.Paths.FullPath

Sources