Skip to content

Instantly share code, notes, and snippets.

@claushingebjerg
Created June 24, 2015 11:24
Show Gist options
  • Select an option

  • Save claushingebjerg/17e4622378546e2f682c to your computer and use it in GitHub Desktop.

Select an option

Save claushingebjerg/17e4622378546e2f682c to your computer and use it in GitHub Desktop.
Render the grid in umbraco 7.2+
If your grid property is aliased bodyText you can do:
@CurrentPage.GetGridHtml()
Else you have to give it the property alias that you gave it:
@CurrentPage.GetGridHtml("myGridPropertyAlias")
By default it will render Bootstrap3 compatible markup. You can overload it:
@CurrentPage.GetGridHtml("myGridPropertyAlias", "bootstrap2")
Will render bootstrap2 compatible markup.
You can also do custom layouts by dropping another view in Views\Partials\Grid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment