Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Is it possible to move Expire date property ?

Vote:
 

Hello

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

I'll try this: http://world.episerver.com/blogs/Kalle-Ljung/Dates/2013/10/Moving-built-in-properties-to-the-settings-header-in-EPiServer-7-CMS/

but that not work..

#121385
May 08, 2015 10:25
Vote:
 

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.

#121959
May 21, 2015 23:05
Vote:
 

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

#143076
Jan 12, 2016 10:54
Vote:
 

The above code should still work

Did you also register the metadata extender in an InitializableModule?

#143089
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.