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
Well I guess you are doing the right thing and keeping all your content type names in a lang file so you could get them with the Translate ;)
Else something like
var repo = ServiceLocator.Current.GetInstance<ContentTypeRepository>()); var pageType = repo.Load<currentpage.GetOriginalType()>(); return pageType.DisplayName;
Given I have the CurrentPage object, is it possible to get the value of the DisplayName programatically?
So in example below i should get "test". (CurrentPage.PageTypeName returns name, not the dsiplayname)
[ConSubmittentType(DisplayName ="test"
[Pasting files is not allowed]