A critical vulnerability was discovered in React Server Components (Next.js). Our Systems Remain Fully Protected. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our Systems Remain Fully Protected. Learn More.
Yes. Here's some pseudo code
YourContentAreaProperty.Add(IContent);
Or if you already have a contentarea with references something like this.
YourPage.SetValue("ContentAreaPropertyName",contentareawithreferences).
Don't forget to save the page
contentRepository.Save(yourpageobject, EPiServer.DataAccess.SaveAction.Publish, Security.AccessLevel.NoAccess);
hi, is there a way to add block on a content area programmatically?