Thanks for your reply, I forgot to mention that I am running in AppData mode so I do indeed have access to @Model.Content.frontPageArticle, which is the grid alias.
Mind you, it still doesn't explain why my quote and RTE message are sat on top of each other?
Great! I have something that now uses XY Grid as opposed to Float Grid.
One question though, I changed my method to @Html.GetGridHtml(Model.Content, "frontPageArticle", "Foundation6") as you suggested and my content disappeared, so I put it back to @Html.GetGridHtml("frontPageArticle", "Foundation6"), would you know why?
I am using Models Builder in AppData mode, but not sure why this is not working? If I do this: <pre>@Model.Content.frontPageArticle</pre> I can see the json that Umbraco produces, but if I put it in this method, my content as mentioned earlier disappears.
Ah, I think I know what the issue is.. I was half asleep and was still using @CurrentPage, which I believe is dynamic. Using @Html.GetGridHtml() with my strongly typed view and all is working as it should.
Foundation with Grid
Setup my first grid today, but regardless of what I use: Bootstrap or Foundation 5, I am getting rendering issues:
Here is my configuration:
To add to this, is there a way to use foundation 6's XY Grid?
Hi Darryl,
Yes you can certainly use foundation XY grid with the Grid editor in Umbraco.
First you will have to return the grid content in view like this:
Last parameter tells the grid to use the custom foundation view you create in the next step.
Its best you copy the Bootstrap grid view inside of the folder:
Rename it to Foundation.cshml.
Then you can edit the view to use the foundation xy grid html.
Hope this helps you.
Thanks for your reply, I forgot to mention that I am running in
AppData
mode so I do indeed have access to@Model.Content.frontPageArticle
, which is the grid alias.Mind you, it still doesn't explain why my quote and RTE message are sat on top of each other?
Here is the CSS:
Thanks
Just a simple suggestion but did you insert the CSS of Foundation in your master template (or your current template)?
Hi Garðar Þorsteinsson,
Great! I have something that now uses XY Grid as opposed to Float Grid.
One question though, I changed my method to
@Html.GetGridHtml(Model.Content, "frontPageArticle", "Foundation6")
as you suggested and my content disappeared, so I put it back to@Html.GetGridHtml("frontPageArticle", "Foundation6")
, would you know why?I am using Models Builder in AppData mode, but not sure why this is not working? If I do this:
<pre>@Model.Content.frontPageArticle</pre>
I can see thejson
that Umbraco produces, but if I put it in this method, my content as mentioned earlier disappears.Can you post your template code here ? Do you inherit from UmbracoViewPage
Ah, I think I know what the issue is.. I was half asleep and was still using
@CurrentPage
, which I believe is dynamic. Using@Html.GetGridHtml()
with my strongly typed view and all is working as it should.Thanks for all the answers/suggestions.
is working on a reply...