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
Currently attempting to use
to render from: Document Type -> Composition -> Content Base that's in one of my document types.
The problem I'm having is that regardless of whether I place the content in a single column or several columns in the backoffice, the "GetGridHtml" prints it all out as a single column.
Is there any way around this?
What about specifying the grid layout that you want?
@CurrentPage.GetGridHtml(Html, "bodyText", "bootstrap3-fluid")
The Grid, by default, expects you to have included BootStrap 3 into your templates in order to lay it out in the grid format you are expecting. If Bootstrap isn't included in your front end then the browser won't know how to style your grid and as such it will display everything in stacked divs.
If you don't want to use BootStrap, then you will need to customise the Grid related partial views to assign the correct classes on the correct elements in order to get your grid to generate.
The reason you are seeing a "grid" layout in the back office even though you aren't on the front end is because the editor is designed to simulate a generic grid in the back office to give you a feel for what it will look like irrelevant of what front end CSS you are actually going to use.
Hope that helps explain the situation :-)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted