Routing (RoutingHandler.cs)

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
8/13/2014 10:24:34 AM
Gravatar
Total Posts 190

Re: Routing (RoutingHandler.cs)

Thanks, Joe. I'll work on getting my code updated. Doesn't sound like a big deal.

8/15/2014 3:59:41 PM
Gravatar
Total Posts 190

Re: Routing (RoutingHandler.cs)

Hey Joe,

I started looking into this and it doesn't seem quite as apparent to me as my first impression. Maybe if you could clarify a little bit for me how to get from point a to point b. "a" being the config for the old route and "b" the place where the route is working in the new setup. Here's what I had previously configured for a route:

  <Route name="Schedules" routeUrl="Route/{route}/{service}/{pick}" virtualPath="~/Schedules/WebSchedules.aspx">
    <Restrictions>
      <add parameterName="route" restriction="\w{1,3}"></add>
      <add parameterName="service" restriction="\d{1,2}"></add>
      <add parameterName="pick" restriction="\d{1,3}"></add>
    </Restrictions>
    <Defaults>
      <add parameterName="service" defaultValue="0"/>
      <add parameterName="pick" defaultValue="0"/>
    </Defaults>
  </Route>

I'm just not immediately clear from the ForumMod example where to go with this.

Thanks again,

John

8/17/2014 1:56:39 PM
Gravatar
Total Posts 18439

Re: Routing (RoutingHandler.cs)

Hi John,

I just emailed you a zip with a dll and instructions that should get your existing routes working. Its just a mapping from the new route system to the old one which I copied into the new class library.  the code that used to be part of mojoportal and worked with the old routing config files is now in this new class library along with a class that implements the new IRouteRegistrar and just calls the old implementation to plugin routes from the config file. So this should just work with your existing route config files and get them working again.

I have not tested it though so let me know if you have any trouble getting it working.

Thanks,

Joe

You must sign in to post in the forums. This thread is closed to new posts.