Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 499

For questions relating to ASP.NET MVC implementations. The ASP.NET MVC is a web application framework developed by Microsoft, which implements the model–view–controller pattern.

5 votes

Sitecore MVC - Controller Renderings - View Model for Custom Item

RenderingContext.CurrentOrNull.Rendering.DataSource; T viewModel = Sitecore.Context.Database.GetItem(dataSourceId); return View(viewModel); } } Glass.Mapper is worth learning and probably a better choice for working with MVC
Chris Sulham's user avatar
  • 1,458
7 votes

Sitecore MVC - Controller Rendering - Output Image

There are a couple ways you can do this. In the Custom Item Generator, each field has a .Rendered property you can reference which just runs the field renderer on that field. Use this if you want to r …
Chris Sulham's user avatar
  • 1,458
9 votes

Adding Views - VS Adds Scaffolding and NuGets

With MVC 5, you should have the option to add an MVC 5 View Page, like so, Using this option gives you a simple popup to type in a name, then it generates a cshtml file with no scaffolding. @{ … MSDN reference: https://www.asp.net/mvc/overview/getting-started/introduction/adding-a-view …
Chris Sulham's user avatar
  • 1,458