Locating Packages

Locating Packages

Sitecore Packages

  • Can contain Items, Files and Security Accounts
  • Created and installed from /Data/packages folder under root of application installation (not site root)
  • Package sizes are limited by the size of the memory address space and the amount of memory on the server where they are created
  • There is no undo when installing packages

Package Designer

  • Sitecore tool for creating and managing Sitecore packages
  • Located on Sitecore Start Menu under Development Tools

Package Settings

  • The PackagePath setting identifies the physical location of Sitecore (.zip) package files
  • The default path is $(dataFolder)/packages
  • Use x64 systems for Sitecore implementations when available so you are not restricted by the 4GB address space with packaging sites
  • Perform a full backup before installing a package so you can restore it if the package causes problems

Configuration Settings

<configuration>

    <settings>

                <setting name="PackagePath" value="$(dataFolder)/packages"/>

    </settings>


C# Web Control Code

Sitecore.Data.Items.Item item = Sitecore.Context.Item;
if (item == null) return;

string packagePath = Sitecore.Configuration.Settings.PackagePath;

output.AddAttribute(System.Web.UI.HtmlTextWriterAttribute.Style, "font-weight:bold; width:100%; clear:both");
output.RenderBeginTag(System.Web.UI.HtmlTextWriterTag.Div);
output.Write("C# Web Control Real-time Output");
output.RenderEndTag();

output.AddAttribute(System.Web.UI.HtmlTextWriterAttribute.Style, "font-size:x-small; width:100%; clear:both");
output.RenderBeginTag(System.Web.UI.HtmlTextWriterTag.Div);
output.AddAttribute(System.Web.UI.HtmlTextWriterAttribute.Style, "font-weight:bold");
output.RenderBeginTag(System.Web.UI.HtmlTextWriterTag.P);
string displayName = Sitecore.StringUtil.GetString(item.DisplayName, item.Name);
//using &#58; for colon and &#160; for space
output.Write("{0}&#58;&#160;{1}", "Item", displayName);
output.RenderEndTag(); //P

output.Write("{0}&#58;&#160;{1}", "Packages Location", "<b>" + packagePath + "</b>");

output.RenderEndTag(); //Div


C# Web Control Real-time Output

Item: Locating Packages

Packages Location: C:\Inetpub\wwwroot\TIC66Live\Data\/packages