Implementing the contact form from the demo

Dear community,

I am making my “own” staterkit by integrating some features from the demo into the starterkit.
I have a problem with the integration of the contact form of the agency/contact page. Everything seems fine in the panel, the “form” tab contains all the necessary fields. However, when I open my page, the form fields doesn’t appear.

Here’s the html code of the generated page:

<form class="margin-l">
  <h2 class="h2">Contact us!</h2>
  <div class="fields margin-l">
      </div>
  <button class="cta">Send</button>
</form>

->The fields are missing.

To make sure I haven’t forgotten anything, I’ve copied all the files (templates, snippets, controllers, content…) linked to the agency pages.

Any idea where the problem might come from or how I could troubleshoot it?

Thanks a lot,

Mathieu

The most obvious issue could be that your template file name is different from the text content file name?

The names are ok, I’ve kept the file names from the demo (agency-contact.yml/.txt/.php). In addition, the informations from the “contact” tab information are displayed correctly…

And did you copy the blocks snippets from /site/snippets/blocks as well, i.e. email-field.php, text-field.php, textarea-field.php?

1 Like

That was the problem.
I guess I should have realized it by looking at the fieldsets in agency-contact.yml!
Thanks for your help.