Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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