Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Grid Content

Dave Greasley edited this page Jul 12, 2015 · 3 revisions

If use the Grid for your content editing then Concrete will create a property on your models of type GridContent. This is a class I have written that provides easy access to the Grid helper methods.

There are a number of ways to use the Grid in templates with Concrete:

@Html.Raw(Model.content)

Here the content property is a GridContent object. Using it in the above way will call the ToString() method on the GridContent class which is basically just a shortcut to calling:

@Model.Content.GetGridHtml("content")

The other grid helper methods are available e.g:

@Model.content.GetGridHtml("fanoe")

Admittedly this isn't that much shorter than the standard GetGridHtml helper methods but it means you have access to the property in intellisense.

Clone this wiki locally