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,
Did you try code like:
@foreach (int category in this.Model.CurrentPage.Category) { var name = EPiServer.ServiceLocation.ServiceLocator.Current.GetInstance<EPiServer.DataAbstraction.CategoryRepository>().Get(category).Name; <div>@name</div> }
Hi,
How, in Razor, do you get a page's Categories that have been tagged in the CMS. I cant seem to use CurrentPage - it isnt an option in my Model.
Jon