Orchard cms, admin layout missing

Jyothish

I have an admin controller to manage the appointments from the website, the routes I created as follows,

    public IEnumerable<RouteDescriptor> GetRoutes()
    {
        return new[] {

            new RouteDescriptor 
                {
                    Route = new Route(
                        "Admin/Bt.Forms/Appointments",
                        new RouteValueDictionary {
                                                    {"area", "Bt.Forms"},
                                                    {"controller", "AppointmentAdmin"},
                                                    {"action", "Index"}
                                                },
                        new RouteValueDictionary(),
                        new RouteValueDictionary {
                                                    {"area", "Bt.Forms"}
                                                },
                        new MvcRouteHandler())
              },
        };
    }

When navigated to the url, the admin layout and side menus are lost, can anybody enlighten me what I might be missing, Thanks in advance,

-George

Behnam Esmaili

simply decorate your controller action with [Themed] attribute.like this :

[Themed]
[Admin]
public ActionResult MyAction (){


     return View();
}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related