MVC Widget - Translatable List<T> field

Posted by Community Admin on 04-Aug-2018 14:09

MVC Widget - Translatable List field

All Replies

Posted by Community Admin on 20-Apr-2016 00:00

I have a problem using the translation service with feather and Mvc Controllers,

I have a custom widget that has a List<T> as a property 

When I send a page in translation, this list is serialized into a JSON string. (Attached file)

I wish each property of the object to be displayed as the properties "Title", "HtmlTitle". Is there a solution for this?

public class TestLocalizationController : Controller
    public List<TestLocalization> List get; set;
    public ActionResult Index()
    
            return View();
    
 
public class TestLocalization
    public string Label get; set;

This thread is closed