Skip to content

Instantly share code, notes, and snippets.

@michaelroper
Created June 14, 2012 07:40
Show Gist options
  • Save michaelroper/2928782 to your computer and use it in GitHub Desktop.
Save michaelroper/2928782 to your computer and use it in GitHub Desktop.
Sitefinity v5 page layout templates using the Twitter Bootstrap grid columns.
<%@ Control Language="C#" %>
<div runat="server" class="row">
<div runat="server" class="sf_colsOut">
<div runat="server" class="sf_colsIn span3"></div>
<div runat="server" class="sf_colsIn span3"></div>
<div runat="server" class="sf_colsIn span3"></div>
<div runat="server" class="sf_colsIn span3"></div>
</div>
</div>
<%@ Control Language="C#" %>
<div runat="server" class="row">
<div runat="server" class="sf_colsOut">
<div runat="server" class="sf_colsIn span4"></div>
<div runat="server" class="sf_colsIn span4"></div>
<div runat="server" class="sf_colsIn span4"></div>
</div>
</div>
<%@ Control Language="C#" %>
<div runat="server" class="row">
<div runat="server" class="sf_colsOut">
<div runat="server" class="sf_colsIn span4"></div>
<div runat="server" class="sf_colsIn span8"></div>
</div>
</div>
<%@ Control Language="C#" %>
<div runat="server" class="row">
<div runat="server" class="sf_colsOut">
<div runat="server" class="sf_colsIn span6"></div>
<div runat="server" class="sf_colsIn span6"></div>
</div>
</div>
<%@ Control Language="C#" %>
<div runat="server" class="row">
<div runat="server" class="sf_colsOut">
<div runat="server" class="sf_colsIn span8"></div>
<div runat="server" class="sf_colsIn span4"></div>
</div>
</div>
@pzi
Copy link

pzi commented Jan 9, 2013

Hi Michael, what exactly is the reason for still using the sf_colsOut/In classes? Are they used within the backend and cannot be omitted?

Edit: Ok, I had a play around and I see, the layout editor has a problem recognizing the editable fields without colsOut/In classes. Uncool.

Cheers
Patrik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment