Try our conversational search powered by Generative AI!

Is it possible to move Expire date property ?



Is there any way to move "Manage expiration and archiving" functionaly edit pageheader panel -> EPiServerCMS_SettingsPanel or just property PageStopPublish ?

I'll try this:

but that not work..

May 08, 2015 10:25

You can use the code you mentioned from the blog, but you have to change it a bit:

public class SiteMetadataExtender : IMetadataExtender 
    public void ModifyMetadata(ExtendedMetadata metadata, IEnumerable<Attribute> attributes) 
        foreach (ExtendedMetadata property in metadata.Properties) 
            if (property.PropertyName == "iversionable_stoppublish") 
                property.GroupName = "EPiServerCMS_SettingsPanel";
                property.ShowForEdit = true;
                property.IsRequired = false;
                property.Order = 1; 

By using the interfacename where the property is defined in (in this case iversionable), followed by an underscore and the propertyname (stoppublish) you can move more properties to the settingspanel.

May 21, 2015 23:05

Did you succeed in moving the Expiration date to the settings pane? The shown example uses a different property. The correct name of the property is the trick and i couldn't find it..

Jan 12, 2016 10:54

The above code should still work

Did you also register the metadata extender in an InitializableModule?

Jan 12, 2016 12:03
* 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.