Okay, I am struggling to get the contact form working in the Agency theme.
- I am using Grav 1.1.12 with Agency 1.4.0
- I have enabled the forms plugin, installed version is 2.0.8
- I have followed the steps on https://learn.getgrav.org/forms/forms/how-to-forms-in-modular-pages and now my page setup looks like this:
Screen Shot 2017-01-03 at 22 - I have created a custom theme for my modifications, the folder structure (with form.html.twig and formdata.html.twig) is this:
Screen Shot 2017-01-03 at 22 - The frontmatter content of user/pages/01.home/_contact/form.md is this:
YAML
title: Contact cache_enable: false - The content of user/pages/01.home/modular.md is this:
YAML
title: 'Marleen Labbeke' menu: Home onpage_menu: true content: items: '@self.modular' order: by: default dir: asc custom: - _hoofding - _copywriting - _diensten - _opgelet - _portfolio - _overmezelf - _testimonials - _marleen - _contact form: name: contact-form action: /home fields: - name: name label: Name classes: form-control placeholder: 'Enter your name' autofocus: 'on' autocomplete: 'on' type: text position: left validate: required: true - name: email label: Email classes: form-control placeholder: 'Enter your email address' type: email position: left validate: required: true - name: message label: Message placeholder: 'Enter your message' type: textarea classes: form-control position: right validate: required: true buttons: - type: submit classes: 'btn btn-primary btn-lg' value: Submit process: - email: from: '{{ config.plugins.email.from }}' to: ['{{ config.plugins.email.from }}', '{{ form.value.email }}'] subject: '[Feedback] {{ form.value.name|e }}' body: '{% include ''forms/data.html.twig'' %}' - save: fileprefix: feedback- dateformat: Ymd-His-u extension: txt body: '{% include ''forms/data.txt.twig'' %}' - message: 'Thank you for your feedback!' - I have read the topic https://getgrav.org/forum#!/plugin-development:contact-form-and-email-in-m but still my contact form looks like this:
Screen Shot 2017-01-03 at 22
What am I missing? :)