Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How do I programatically move a property to the default property Group? I've tried:
var ct = ApplicationContext.Current.Services.ContentTypeService.GetContentType("Page"); ct.MovePropertyType("alias",null); ApplicationContext.Current.Services.ContentTypeService.Save(ct);
but it does not move.
Hey Muz
Are you meaning you want to move the property to another tab?
Yes, that's easy if the 'another tab' is a named tab, but if it's the built in "Properties" tab I can't figure out how to do it.
Hi,
I think you have to remove it from the group it is in, when a Content Type is in no group then it's shows up in the Generic Properties one.
ct.PropertyTypes.RemoveItem(oldTabName);
actually you just call RemovePropertyGroup on the content type.
ct.RemovePropertyGroup(existingTabName);
@Kevin When I try RemovePropertyGroup It removes the property that was in the group also, rather than putting it into the default 'Properties' group.
I've added an issue to the bug tracker for this.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How do I programatically move a property to the default property Group?
How do I programatically move a property to the default property Group? I've tried:
but it does not move.
Hey Muz
Are you meaning you want to move the property to another tab?
Yes, that's easy if the 'another tab' is a named tab, but if it's the built in "Properties" tab I can't figure out how to do it.
Hi,
I think you have to remove it from the group it is in, when a Content Type is in no group then it's shows up in the Generic Properties one.
actually you just call RemovePropertyGroup on the content type.
@Kevin When I try RemovePropertyGroup It removes the property that was in the group also, rather than putting it into the default 'Properties' group.
I've added an issue to the bug tracker for this.
is working on a reply...