Collection Title: Contact
Collection Name: submission
Collection Public Path: contact
Layout: application.html
Template Directory: contact
Fields:
- Name (text)
- Email (text)
- Message (textarea)
Primary Label: Created At
- Locally, create the template directory
contactin thetemplatesdirectory. Addindex.htmlinsidecontact. For the form, you don't need any other templates. - Add the example
airmail.htmllayout to yourlayoutsdirectory. Add the examplecontact_email.htmltemplate to yourairmaildirectory. (If you ever change the directory public path, the name of this file is derrieved from the public make path with_email.htmlappended) - Make sure the
contact.jsscript is in your scripts.
- Edit the
contact.json line 68, so that NUMBER is replaced with the id of your collection. You can find the ID of your collection by going to the Modify view in the admin and looking in the URL.aerostat_collection_id:NUMBER,
- In the Admin, go to Settings and then the Email tab.
- Add your email to the Public Make email list, so emails send to you.