Nested Layouts
renderLayout([any layout], [any module=''], [any view=''], [struct args={}], [any viewModule=''], [boolean prePostExempt='false'])<cfdocument pagetype="letter" format="pdf">
<--- Header --->
<cfdocumentitem type="header">
<cfoutput>
<div>
#dateformat(now(),"MMM DD, YYYY")# at #timeFormat(now(),"full")#
</div>
</cfoutput>
</cfdocumentitem>
<--- Footer --->
<cfdocumentitem type="footer">
<cfoutput>
<div>
Page #cfdocument.currentpagenumber# of #cfdocument.totalpagecount#
</div>
</cfoutput>
</cfdocumentitem>
<--- Main Content via nested layout --->
#renderLayout(layout="basic")#
</cfdocument>Last updated
Was this helpful?