I need to create custom routes for a multilingual site. The thing is that the URL's are in different languages and they have to be added manually to the RouteTable.
Is there a way to traverse all nodes of a particular DocumentType and access their name in the OnApplicationStarted(..) method?
Basically the url for English looks like "news/{category}",
for Lithuanian: "naujienos/{category}", etc.
Dynamic route mapping on ApplicationStart
Hey all,
I need to create custom routes for a multilingual site. The thing is that the URL's are in different languages and they have to be added manually to the RouteTable.
Is there a way to traverse all nodes of a particular DocumentType and access their name in the OnApplicationStarted(..) method?
Basically the url for English looks like "news/{category}", for Lithuanian: "naujienos/{category}", etc.
OK, solved the issue by using Examine to find the nodes with particular documenttype and building the routes.
is working on a reply...