Skip to content

Instantly share code, notes, and snippets.

@jamiepollock
Created June 15, 2015 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamiepollock/3897e6fa735f0b2a0321 to your computer and use it in GitHub Desktop.
Save jamiepollock/3897e6fa735f0b2a0321 to your computer and use it in GitHub Desktop.
The following is an implementation of the GridResolver. The attribute takes two properties; propertyAlias and framework. Framework is used to determine the grid framework. In this case it is fanoe (based on the v7.2.x+ starter kit.
using System.Web.Mvc;
using Our.Umbraco.Ditto.Resolvers.Grid.Attributes;
namespace My.Website.ViewModels {
public class HomeViewModel {
[GridResolver(framework: "fanoe")]
public MvcHtmlString Content { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment