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")).
Question:
How does the template know if to apply the "Grid Blogpost" or "Grid Text"?
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 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.
how to choose a specific grid data type
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")).
Question: How does the template know if to apply the "Grid Blogpost" or "Grid Text"?
Leon.
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.
Leon
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 ?
Cheers,
Srini
Hi Srini.
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.
Leon
Hi Leon
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.
Regards
Mehul Gajjar.
is working on a reply...