Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi,
In IContentRepository you have GetReferencesToContent http://world.episerver.com/documentation/Class-library/?documentId=cms/9/72E612B0 wich gives you where a specific content item is being used. To find all content of a specific type you can use IContentModelUsage http://world.episerver.com/documentation/Class-library/?documentId=cms/9/9018F8D5
Why do you want to implement the interfaces? To use them you can either use dependency injection or just get them from the service locator, e.g.:
var modelUsage = ServiceLocator.Current.GetInstance<IContentModelUsage>();
Please help me with my problem.
I need to get list of all blocks and pages where it's used