Search Results
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 |
For posts related to the usage, implementation, and support of the Custom Item Generator, which is based off of Sitecore's CustomItem implementation for strongly typed Item references.
5
votes
Sitecore MVC - Controller Renderings - View Model for Custom Item
I believe your problem is when you're instantiating the custom item. You want to pass an Item to the CustomItem constructor in order to use the properties.
Try this:
public ActionResult Index()
…
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 …