I'm adding a thumbnail custom field to the documents and files part of Sitefinity (8.1) and then creating a new widget template to display them. So far so good but I don't know how to get my custom field in my new razor view.
Here's what I did so far:
1. Added a new custom field to the documents and files called "Thumbnail" and set it to be an image
2. Modified a document and set the field to be an image in my system.
3. Copied the MVC/Views/DocumentsList/List.DocumentsList.cshtml to my own view (List.DocumentsGrid.cshtml) in the ResourcePackages folder
4. Dropped the document list widget on a page and set the view to my DocumentsGrid view
Everything renders fine but I'm trying to use the new custom field called Thumbnail. I thought it would be simple (ha) so I could do this:
But that isn't rendering anything.
I can't seem to find any example where this is done. Anyone know how to access a custom field in a custom view?