Feedback
 
Did this article resolve your question/issue?

   

Your feedback is appreciated.

Please tell us how we can make this article more useful. Please provide us a way to contact you, should we need clarification on the feedback provided or if you need further assistance.

Characters Remaining: 1025

 


Article

Navigation: Pages in a custom navigation widget are not rendered after upgrade to 13.0

« Go Back

Information

 
Article Number000108822
EnvironmentProduct: Sitefinity
Version: 13.x
OS: All supported OS versions
Database: All supported Microsoft SQL Server versions
Question/Problem Description

A customized Navigation controller does not display the pages. No errors are present on the frontend or the log files.

Steps to Reproduce
Clarifying Information
In this scenario, the customization is done on the controller level and not the Model as it is per the official Sitefinity documentation. The custom controller is using the built-in model:

Sitefinity documentation, Extend the model of built-in widgetshttps://www.progress.com/documentation/sitefinity-cms/extend-the-model-of-built-in-widgets-mvc
Error Message
Defect/Enhancement Number
Cause
A change introduced in Sitefinity 13.0 in the implementation of the built-in controller is missing from the custom one. 
Resolution
Check the Index action implementation in Sitefinity Feather's GitHub repo:
https://github.com/Sitefinity/feather-widgets/blob/master/Telerik.Sitefinity.Frontend.Navigation/Mvc/Controllers/NavigationController.cs#L245 

The new line of code that initializes the PageNodes that should be bound to the view is:
this.Model.InitializeNavigationWidgetSettings();
Add this line to the custom controller's Index action and compile the project.
Workaround
Notes
Although a change in the built-in functionality is causing the behavior, it is not considered a breaking change since the official way of extending built-in MVC widgets is to extend their model and not their controller. If the model is extended, the above behavior will not be exhibited after an upgrade to 13.0.
Attachment 
Last Modified Date5/21/2020 9:44 AM