Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vaidas 22 posts 65 karma points
    Jun 30, 2015 @ 11:08
    Vaidas
    0

    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.

  • Vaidas 22 posts 65 karma points
    Jun 30, 2015 @ 14:38
    Vaidas
    0

    OK, solved the issue by using Examine to find the nodes with particular documenttype and building the routes.

Please Sign in or register to post replies

Write your reply to:

Draft