Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
I solved by adding a method to the views generic baseclass. But there must be a better way.
public string Desc()
{
var repository = ServiceLocator.Current.GetInstance<IContentTypeRepository>();
var blockrepository = new BlockTypeRepository(repository);
string slask = blockrepository.Load<T>().LocalizedDescription;
return slask;
}
I might be stupid but I can't figure out how I can get the LocalizedDescription for a block inside a view.
I'm using forms.
Probably easy but I need help.