Local Nav Issue. Can't figure it out how it works.

Topics: Writing modules
Sep 11, 2012 at 3:01 PM

Consider this piece of code on AdminMenu.cs.

.....

.....

 

.Add(subItem => subItem .Caption(T("Reportes")).
Action("List", "ReportAdmin", new { area = "Inversiones" })                                              

.Add(T("Publicaciones"),"0", i => i.Action("List", "ReportAdmin").LocalNav())
.Add(T("Configuracion"), "1", i => i.Action("List", "DockingAdmin", new { area = "Inversiones", name = "Report" }).LocalNav())

 

 

.......

The tabs are displayed as expected when the subitem "Reportes" is hit.

When tab "Publicaciones" is hit, everything is ok too. But, when the tab "Configuración" is pressed, it goes to the controller and displays the content, but the tabs are gone!

I have been thru all the skywalker tuts, i have seen a lot of examples on src code, search on discussions, and can't figure it out how to make it work. If i don't get it working, i will have to add my own section to my view directly on razor with a new zone with the html generated by localnav, and that would be so disgusting.

Thx a lot for your help!

Coordinator
Sep 12, 2012 at 5:55 PM

Just as a test, what happens when you remove the area parameter from configuracion or when you add it to publicaciones?