November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Why do you want to override it, can't you just do a property next to it and hide the built in from the editors (and maybe set a default value on it if it is needed)?
What property do you want to override?
I need to override the "Name" property when creating a PageType for all languages except master language. And you are right, hiding it will do it but the issue with the existing "Name " values . For custom properties , we have "Revert to Default" or when we uncheck the "Unique value per language" it will automatically clear all the existing values. But as this is an inbuilt EPi property, what would be the best way to clear the existing values and copy the values from master language?
Thats why I though if I create a new property and ignore the existing property and override it with the new property I created that will make my life easier.
I did try this in my content model where I created the new property "SiteName" but the index parameter for "this" never is any propertyname.
[Ignore]
public override object this[string index]
{
get
{
if (index == "icontent_name")
{
return SiteName;
}
return base[index];
}set { base[index] = value; }
}
How to ignore an inbuilt EPiServer property and override with the custom property? Trying to override "icontent_name" property with a custom property