In this step you will create a new layout weblet. You will see that the "create new layout weblet" function provides a default layout. You will remove much of this content and replace it with code based on the test layout which you created in Step 1.


<style type="text/css">
#lpage_container {
<xsl:templates. . .> blocks of code, which need to be deleted. <xsl:template name="iii_layout:. . . . .</xsl:template> definition:<xsl:template match="/lxml:data">
<xsl:template match="/lxml:data" mode="content.sidebar1">
<xsl:template match="/lxml:data" mode="content.sidebar2">
<xsl:template match="/lxml:data" mode="content.header">
<xsl:template match="/lxml:data" mode="content.navigation">
<xsl:template match="/lxml:data" mode="content.footer">
<xsl:template match="/lxml:data" mode="content.hidden">
Note: Make sure you do not delete the </xsl:transform> at the end of the document. |
Hint: Search (Ctrl+F) for the first line shown using lpage_content_column. The other lines shown follow immediately after this. |
<!-- KEEP -->
<div id="lpage_content_column"><div id="lpage_content" class="lpage_content_area"><xsl:if test="$show_title"><h2 class="title"><xsl:value-of select="$title_text" /></h2></xsl:if><div wd:content="content"><xsl:apply-templates select="*" /></div></div></div><!-- END KEEP --><!—keep --> comment line. Hint: Move the cursor to the top of the XSL document and search (Ctrl+F) for lpage_header. |
</div> tag below your <!—end keep--> comment line. Delete this </div> and everything before: </xsl:element>Note: Do not delete the line </xsl:element>. |
<body class="acme_layout">div id="acme_header">Heading</div><div id="acme_footer">footer</div><div id="acme_sidebar"><div style="padding-top:400px">Left Panel</div></div><div id="acme_content"><div id="acme_messagesContainer"><h2>Messages</h2></div><xsl:if test="$show_title"><h2 class="title">
<xsl:value-of select="$title_text" /></h2></xsl:if><h2>Form Content</h2></div>
<h2>Form Content</h2> line. The moved code is shown in red.<div id="acme_header">Heading</div><div id="acme_footer">footer</div><div id="acme_sidebar"><div style="padding-top:400px">Left Panel</div></div><div id="acme_content"><div id="acme_messagesContainer"><h2>Messages</h2></div><xsl:if test="$show_title"><h2 class="title"><xsl:value-of select="$title_text" /></h2></xsl:if><h2>Form Content</h2><xsl:apply-templates select="*" />
</div>
<!—keep --> and <!—end keep -->.