Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I would like to apply a new grid data type to a template, but can't figure out how to do it.
Looking at the fanoe example:
In the "Data Types" (in the developer section), there are a few grid data types (e.g. "Grid Blogpost", "Grid Text", etc.)
When I look at the template, page in the "settings", there is a line that uses a grid data type (@CurrentPage.GetGridHtml("content", "fanoe")).
How does the template know if to apply the "Grid Blogpost" or "Grid Text"?
Apologies for the stupid question. I found out how.
It's in the settings section, under document types, select the document type and set it in the generic properties tab.
Hey , i am not getting anything like Grid Blogspot, Grid FrontPage and Grid TextPage in the Type under the Generic Properties section. At first point i dont even have those DataTypes. Can you let me know how to do that ?
I believe those data types come with the "fanoe" starter kit. Have you installed the fanoe starter kit?
Yes figured out. Thank you. It would have been better if Umbraco provides those data types for every default installation.
Glad to hear you succeeded.
I think it's done like that by design so that different "themes" can be developed and you're not restricted to a certain type of grid design. I believe the exact purpose of the "fanoe" starter kit is to get novices like myself started, but not force experienced users into a certain way.
Kindly choose "Grid Layout" from data type
And for rendering use @Model.Content.GetGridHtml("testbody","Bootstrap2")
This will directly map your data into grid layout
Hope this will use full.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted