Establish default value for an overwrite page property

Vote:
 

I have a property called subtitle in a base page and would like to overwrite this property with a default value. What I'm trying is to do the following, but the field do not appear in the CMS

public override string SubTitle => ServiceLocator.Current.GetInstance<LocalizationProvider>().GetString(() => PageResources.Vacancy.Subtitle);

Is there anyway to do that?

I'm running EpiServer 10.10.4

#215919
Edited, Jan 17, 2020 14:43
Vote:
 

Hi,

Why you need it on CMS edit mode if you are returning value from localization provider?

If you would like to assign default value and give option for editor to overwrite it, then you would need to declare property are ordinary page property and implement `SetDefaultValues()` method and set value for the property there.

#215922
Jan 17, 2020 15:31
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.