Created
June 24, 2015 11:24
-
-
Save claushingebjerg/17e4622378546e2f682c to your computer and use it in GitHub Desktop.
Render the grid in umbraco 7.2+
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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