Skip to content

Instantly share code, notes, and snippets.

@mattmetten
Last active August 29, 2015 14:27
Show Gist options
  • Save mattmetten/205c8a0ee0efc0fba1a5 to your computer and use it in GitHub Desktop.
Save mattmetten/205c8a0ee0efc0fba1a5 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<j:jelly trim="true" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<!--The following variable and IF statement allow you to have a custom layout when placing blocks during the edit page process -->
<g:set_if var="jvar_dialog" test="${!RP.isDialog()}" true="false" false="true" />
<j:if test="${jvar_dialog=='false'}">
<!-- including the id="${jvar_name} is the only really critical piece to what is below. It allows the layout to work. -->
<div id="${jvar_name}">
<div class="container">
<div class="header">
<div id="dropzone5" dropzone="true" class="row"></div>
</div>
<div class="content">
<div width="col-lg-3">
<div id="dropzone10" dropzone="true"></div>
</div>
<div width="col-lg-6">
<div id="dropzone20" dropzone="true"></div>
</div>
<div width="col-lg-3">
<div id="dropzone30" dropzone="true"></div>
</div>
</div>
<div class="footer">
<div id="dropzone50" dropzone="true" class="row"></div>
</div>
</div>
</div>
</j:if>
<!-- If the page is being displayed within a dialog, typically when adding content to it, display the table based version.
You'll notice the naming of the drop zones corresponds with the declarations above.-->
<j:if test="${jvar_dialog=='true'}">
<div id="${jvar_name}">
<table width="90%">
<tr><td colspan="3">Place Your Header Content Below:</td></tr>
<tr><td id="dropzone5" dropzone="true" colspan="3"></td></tr>
<tr><td colspan="3">Place Your Content in the Appropriate Drop Zone Below:</td></tr>
<tr><td id="dropzone10" dropzone="true" width="25%"></td>
<td id="dropzone20" dropzone="true" width="50%"></td>
<td id="dropzone30" dropzone="true" width="50%"></td>
</tr>
<tr><td colspan="3">Place Your Footer Content Below:</td></tr>
<tr><td id="dropzone50" dropzone="true" colspan="3"></td></tr>
</table>
</div>
</j:if>
</j:jelly>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment