knows anyone an article I can implement a template-system in my ASP.NET MVC 4 application?
Like many other websites, my own has many different categories and for each should use there own template.
The color circle is the template (like musictemplate_layout.cshtml) and ContentPlaceHolder123 has always the same content.
Best regards, Patrik
Create different Views as your specific templates like bellow:
Use different layouts by defining at the top of each page like bellow:
Also, you can have more levels of Layouts, according to your interface plans. You can use layouts dynamically by different factors, like UserAgent or ... by Placing string variable in front of 'Layout' for more adoptable or intelligent results.