MVC Widget on master page disapears when other view is displayed
I am using MVC to create widgets, but have a confusing situation going on.
I created a custom masterpage with a placeholder in the top right for a login control. I then created a custom login control using MVC which is placed on the master page template within the sitefinity backend designer.
This all works as expected when creating pages using the master page template, but if I add an MVC widget to the body of the page which links to another view the login widget placed on the master template disappears when the view is changed for example /reports to /reports/detail/1.
For example:
I assume this has something to do with the fact that when the body MVC widget changes to an edit or detail view, the login widget must also have a view with the same route. Since it doesn't it does not display. Is there a way to make sure that other widgets on the same page play well together when changing views.
I have come across the same problem.
This is how to reproduce problem: (basically same as above)
Hello,
I would suggest you to review the following blog post where you will find useful information:
www.sitefinity.com/.../how-to-display-mvc-widget-in-detail-views-of-content-items
Regards,
Stefani Tacheva
Telerik