Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.

 

Move default property Shortcut to other tab

Vote:
 

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").

#113012
Nov 10, 2014 15:22
Vote:
 

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;
}
}
}
}
}

#113032
Nov 11, 2014 12:03
Vote:
 

That worked great. Thanks Linus!

#113034
Nov 11, 2014 12:18
Vote:
 

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.

#113035
Nov 11, 2014 12:20
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.