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

Adding embedded form like wufoo

Started by Muut Archive 11 years ago · 2 replies · 270 views
11 years ago

Hi guys. I'm currently setting up a site on the deliver skeleton and would like to replace the simple_form with an embedded form like Wufoo. (Simple form isn't that simple... Or perhaps I'm slow on the uptake :-)

Would that mean changing template files to incorporate this etc or is there an easier way to go about this?

11 years ago

Hey Peter,
There are few ways to do that. I think the most easiest one will be modifying corresponding twig file. To do that. open deliver/templates/modular/contact.html.twig and replace

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

with your Wufoo code. After. Save file and you're done. Good luck :)

11 years ago

Perfect! Thanks. Would never have gotten that. Me thinks I might need to read up a little more about twig templating.

Love your work Karol.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1327 9 years ago
Archive · by Muut Archive, 9 years ago
2 921 9 years ago
Archive · by Muut Archive, 9 years ago
2 4050 9 years ago
Archive · by Muut Archive, 9 years ago
1 2928 9 years ago
Archive · by Muut Archive, 9 years ago
3 1107 9 years ago