A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
In Episerver 10, everything is IContent.
https://world.episerver.com/documentation/developer-guides/CMS/learning-path/media-support/
You can create an initialization module that listens to content events:
[InitializableModule]
[ModuleDependency(typeof(InitializationModule))]
public class MyModule : IInitializableModule
{
public void Initialize(InitializationEngine context)
{
var contentEvents = context.Locate.Advanced.GetInstance<IContentEvents>();
contentEvents.CheckedInContent += ContentEvents_CheckedInContent;
}
private void ContentEvents_CheckedInContent(object sender, ContentEventArgs e)
{
// ...
}
public void Uninitialize(InitializationEngine context)
{
// ...
}
}
Is there anyone expert in EPIServer.
I need help to migrate code from Version 6 to 10.
I have this code in my file and it gives error after i migrated to Version 10.