If you're struggerling to see how it all pieces together can I suggest you work through the basic walk-through - it doesn't cover the grid but it will help understand how Umbraco slots together then the code Anders posted will make more sense.
It sounds like you're nearly there.. so it might be too basic for you.
Thank you Steve, I admit I am struggling a bit. I actually installed the starter kit which I now see skips a lot of the basic understanding of the system. I'll have to go back and study the basics . . .
And then I would recommend you to see the videos step by step from the chapter about document type to chapter about Razor syntax and querying Umbraco data with Razor
Absolute beginner!
Hi
I have installed Umbraco CMS. We plan to use it for our new hospital website. All working fine, thanks.
I have downloaded and installed the U7 grid data type, and I have created a new data type and selected Content grid and added some columns.
What do I do now???
How do I add the content grid to a page so I can see it in the front end?
Many thanks
Welcome to Our ;)
In the template of your page, you can simply add the following line (where
content
is the name of the property holding the grid):This will automatically render the grid using Bootstrap 3. This is the simplest way to render the grid, since you let Umbraco do the magic.
You can also use other frameworks than just Bootstrap 3 - eg. if you have installed the Fanoe starter kit, or simply created your own:
To get a feel on what's going on, you can look through the files in the
~/Views/Partials/Grid/
folder for inspiration.Also, feel free to ask if you have any further questions ;)
If you're struggerling to see how it all pieces together can I suggest you work through the basic walk-through - it doesn't cover the grid but it will help understand how Umbraco slots together then the code Anders posted will make more sense.
It sounds like you're nearly there.. so it might be too basic for you.
Thank you Steve, I admit I am struggling a bit. I actually installed the starter kit which I now see skips a lot of the basic understanding of the system. I'll have to go back and study the basics . . .
Hi Robert,
also umbraco.tv is a great start when you're new to Umbraco. In just one day all basics are demonstrated in short videos!
Good luck,
Jeffrey
Hi Robert,
When you are saying U7 grid data type did you mean the build in grid in Umbraco 7.2.x or did you mean this package. https://our.umbraco.org/projects/backoffice-extensions/u7-grid-data-type
If you mean the u7-grid-data-type, then you will find good Razor examples here https://our.umbraco.org/projects/backoffice-extensions/u7-grid-data-type
Also try to see my comments in this thread https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/52749-Need-help-for-razor-syntax-in-U7-Grid-Data-Type
Hope this helps,
/Dennis
I meant the U7-grid-data-type, but when you say Razor examples I think you're talking about shaving!
I'm used to Joomla, WordPress, SharePoint where adding plugins, webparts or whatever to a page is relatively simple.
I'll have to go back to the basics.
Thanks for your advice.
Hi Robert,
Okay then I think that you should sign up for Umbraco TV. http://umbraco.tv/ You can see the different plans here http://umbraco.tv/plans-signup/
And then I would recommend you to see the videos step by step from the chapter about document type to chapter about Razor syntax and querying Umbraco data with Razor
http://umbraco.tv/videos/umbraco-v7/implementor/
Hope this helps,
/Dennis
Thank you all for your advice. It is a nice surprise to find a forum that actually responds so helpfully and quickly!
is working on a reply...