Skip to content

Instantly share code, notes, and snippets.

@casper-rasmussen
Created April 30, 2016 12:13
Show Gist options
  • Save casper-rasmussen/3cfb48ae2ac63b212f8ca7af34caaed7 to your computer and use it in GitHub Desktop.
Save casper-rasmussen/3cfb48ae2ac63b212f8ca7af34caaed7 to your computer and use it in GitHub Desktop.
[Component()]
// Adding the Pagetree to the product catalog, allowing to drag & drop Page in ContentArea
public class PageNavigationComponent : ComponentDefinitionBase
{
public PageNavigationComponent()
: base("epi-cms.component.MainNavigationComponent")
{
Categories = new[] { "content" };
Title = "Pages";
SortOrder = 150;
PlugInAreas = new string[] { "/episerver/commerce/assets/defaultgroup" };
Settings.Add(new Setting("repositoryKey", PageRepositoryDescriptor.RepositoryKey));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment