AI OnAI Off
I am not sure what you mean with new page? From a content area you can only reference existing pages. Todo so you could have override SetDefaultValues in your model class and do something like:
public override void SetDefaultValues(ContentType contentType)
{
base.SetDefaultValues(contentType);
MainContentArea = new ContentArea();
MainContentArea.Add(ServiceLocator.Current.GetInstance<IContentLoader>().Get<StartPage>(ContentReference.StartPage));
}
Hi all,
How to add a new page (new block) in the ContentArea programmatically? I want to implement this in method "public override void SetDefaultValues(ContentType contentType){}" when the object initializing.
Thanks for your help