Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Simple Contact

Started by Muut Archive 11 years ago · 3 replies · 259 views
11 years ago

Apparently, I'm an idiot but I have the Simple Contact plug in installed and can't seem to get it to show up on the contact page. What do i need to add there? is it shortcode or what?

11 years ago

On your template, make sure you added:

TWIG
{% if config.plugins.simple_form.enabled %}
    {% set simple_form_config = page.header.simple_form ?: config.themes.YOUR_TEMPLATE_HERE.simple_form %}
    {{ simple_form(simple_form_config) }}
 {% endif %}

and inside markdown page you need to include following header variables:

YAML
simple_form:
      token: "your token goes here" 
      template_file: "default"
      redirect_to: /thankyou
11 years ago

Sorry for being ignorant but do I put the if statement in the base.html.twig file before the endblock? Thank you

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1341 9 years ago
Archive · by Muut Archive, 9 years ago
2 928 9 years ago
Archive · by Muut Archive, 9 years ago
2 4057 9 years ago
Archive · by Muut Archive, 9 years ago
1 2942 9 years ago
Archive · by Muut Archive, 9 years ago
3 1115 9 years ago