Skip to content

Instantly share code, notes, and snippets.

@casper-rasmussen
Last active April 30, 2016 12:24
Show Gist options
  • Save casper-rasmussen/15ee1f428fcff82a9f984cf5f722da12 to your computer and use it in GitHub Desktop.
Save casper-rasmussen/15ee1f428fcff82a9f984cf5f722da12 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")
{
LanguagePath = "/episerver/cms/components/pagetree";
SortOrder = 150;
PlugInAreas = new string[] { "/episerver/commerce/mainnavigation/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