Hi,
I'm trying to append a contact form to the existing contact page content. The existing content for the _main.php page is as follows:
<div id='content-body'>
<?=page()->body?>
</div>
I've created a contact.php page and have included the following code but the form is not being rendered:
<?php namespace ProcessWire;
// This is the form for the /contact/ page.
?>
<div pw-append="content-body">
<div id="contact-form">
// ... contact form details here
</div>
<p> </p>
</div>
The following is returned in debugging mode which doesn't appear to be of much help:
Any thoughts on what I am doing wrong?
Any help appreciated.