Git Product home page Git Product logo

Comments (6)

blizam avatar blizam commented on June 9, 2024

I'm sure this is wrong but in contact.html.twig if I change:

<div class="row"> {% if config.plugins.simple_form.enabled %} {% set simple_form_config = page.header.simple_form ?: config.themes.agency.simple_form %} {{ simple_form(simple_form_config) }} {% endif %} </div>

to

<div class="row"> {% set simple_form_config = page.header.simple_form ?: config.themes.agency.simple_form %} {{ simple_form(simple_form_config) }} {% include 'plugins/simple_form/simple_form.html.twig' %} </div>

It at least outputs the form... it doesn't pick up the auth code I set in the contact.md but I can hardcode it... seems like at the very least it's missing the Include for simple_form.html.twig and the config toggle for IF enabled

from grav-theme-agency.

flaviocopes avatar flaviocopes commented on June 9, 2024

It uses the Simple Form plugin which sadly has been discontinued (and removed) from its author.

I need to change this to use the Form plugin instead, which is the new way of handing forms in Grav.

In the meantime, you can copy templates/form.html.twig from Antimatter to start with, and start from here: https://learn.getgrav.org/forms/forms/example-form

from grav-theme-agency.

blizam avatar blizam commented on June 9, 2024

Thank you, I'll check into using the Form plugin and since I intend to keep the current Agency form styling I'll post my code back here should it prove useful :)

from grav-theme-agency.

flaviocopes avatar flaviocopes commented on June 9, 2024

The theme part is fixed in 1f0e662

from grav-theme-agency.

flaviocopes avatar flaviocopes commented on June 9, 2024

Skeleton fixed too: getgrav/grav-skeleton-agency-site@712ca1a

from grav-theme-agency.

swinde avatar swinde commented on June 9, 2024

Is there a technical reason to omit the closing tags for

and <div class = "container>,
?
Sorry for Google translator

from grav-theme-agency.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.