using System;
using System.Collections.Generic;
using EPiServer.Core;
using EPiServer.DataAbstraction;
using EPiServer.Shell.ObjectEditing;
using EPiServer.Shell.ObjectEditing.EditorDescriptors;
namespace Samples
{
[EditorDescriptorRegistrationAttribute(TargetType = typeof(ContentData))]
public class SiteMetadataExtender : EditorDescriptor
{
public override void ModifyMetadata(ExtendedMetadata metadata, IEnumerable<Attribute> attributes)
{
foreach (ExtendedMetadata property in metadata.Properties)
{
if (property.PropertyName == "iversionable_shortcut")
{
property.GroupName = SystemTabNames.PageHeader;
property.Order = 9000;
return;
}
}
}
}
}
My way to find the name for this property (that is actually a bunch of properties in a virtual block) was to put a breakpoint in the loop and just run through it until I found it.
I've used Joels approach here to move the Category property to other tabs with success.
Is it possible to move the Shortcut property as well?
I haven't been able to find the corresponding property name yet (for category the property name is "icategorizable_category").