Developer Forum »
Localized type name
42 posts

I have an instance which inherits from ContentBase. How do I get the localized type name that I have defined in the Webnodes interface, for particular instances? E.g. Article = Artikkel (1044).

Thanks!

-Emil

181 posts

Hi!

You can get the friendly class name of the current language by using this:

 MemDefContentClass defClass = WAFContext.Engine.Definition.ContentClass[ArticleBase.ContentClassId];
defClass.GetName(WAFContext.Session);
42 posts

Thank you :)

1