Hi guys,
I have been struggling with something apparently elementary, but I cannot figure out what I am doing wrong.
The scope is to render a navigation directly in the Page template.
I am trying to use
Navigation.RenderNavigation(navigationTemplate, navigationSettings)
With a regular navigation template.
I have correctly defined the NavigationSettings:
The navigation template inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.Navigation.NavigationTreeViewModel>
No matter what I do, I get this error (which is useless):
Error executing template "Files/Templates/Designs/Hive/Navigation/TabsNavigation.cshtml" System.NullReferenceException: Object reference not set to an instance of an object. at Dynamicweb.Rendering.Template.RenderRazorTemplate() Line: 1
I am clearly missing something but I cannot figure out what.
Thank you in advance for any suggestions.
Adrian