November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Are you facing this in fresh installation or in existing project?
Which version of Episerver you are using?
Are these properties are custom properties?
I am also setting Default values
public override void SetDefaultValues(ContentType contentType)
{
base.SetDefaultValues(contentType);
Image = new ImageBlock();
CallToAction = new CallToActionButtonBlock();
}
I have used this approach many a time before but first time I am seeing the properties not showing
Did you try this in incognito mode of browser or by clearing the browser cache.
And one more thing try removing default value code and then try once.
The code snippet you are using to set default value in SetDefaultValues
are to set some actual value. You don't to initialize those with the Block types. This SetDefaultValues is in general used to set value to SelectionFactory type properties.When you are creating a property of some block type, it is not needed to initialize like new BlockType(). Removing that should resolve the issue.
Thanks
Yea I'll give it a go not quite sure why it was implemented in this manner, only looked at the code as I was posting an update to this thread.
Yes, the below SetDefaultValues code is creating this issue in your case because it is not able to initialize the new object.
public override void SetDefaultValues(ContentType contentType)
{
base.SetDefaultValues(contentType);
Image = new ImageBlock();
CallToAction = new CallToActionButtonBlock();
}
Removing this will solve the issue.
Im using latest version of Episerver and have found that when I create a new block from within the Content Area the Local Block properties do not show.
Anyone else having this issue ?