Custom MVC Navigation Problem.

Posted by Community Admin on 04-Aug-2018 08:00

Custom MVC Navigation Problem.

All Replies

Posted by Community Admin on 23-Nov-2015 00:00

Hi,

We created following:

  • A custom content as "Telerik.Sitefinity.DynamicTypes.Model.Campus.Campus".
  • A page as /campus with the content widget of the custom content Campus dropped on it.
  • A custom MVCNavigationControl  as "CustomSitefinitySiteMap" to format and display the menu as per our requriements.

The page URL /campus has the custom navigation menu as per our expectation. But on the auto-generated pages for the campus custom content items like /campus/phoenix, /campus/riverside etc the navigation control is not included. When we debug the code we noticed that the “ActionResult Index()” method of our navigation Contoller is not even triggered.

Please advise if we need to make any config/settings changes so that the custom navigation is enabled for the auto-generated URLs. The default navigation of Sitefinity does get included on these auto-generated URLs.

Thanks.

Posted by Community Admin on 26-Nov-2015 00:00

Hello Abhijeet,

The issue seems related to that KB article:
http://www.sitefinity.com/developer-network/knowledge-base/details/custom-mvc-control-is-not-available-in-details-view---auto-generated-pages

So you need to implement HandleUnknownAction in your controller with the desired functionality.

I hope the information helps.

Regards,
Svetoslav Manchev
Telerik

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

Posted by Community Admin on 26-Nov-2015 00:00

Thanks team. HandleUnknownAction method resolves my issue.

This thread is closed