Multiple levels in MVC custom routing
问题 I am trying to build my own little cms. I created an abstract pageBase class that is inherited by Static, Reviews, Articles, News. Each having there own controller methods. My problem is that I need to allow the admin to define his own custom path levels. E.g. news\\local\\mynewdog or Articles\\events\\conventions\\mycon . So I would like a way to pass an array of strings and also set the custom routing. 回答1: You can make CMS-style routes seamlessly with a custom RouteBase subclass. public