Giter Club home page Giter Club logo

Comments (3)

robmarshall avatar robmarshall commented on May 31, 2024

Hey,

Conditional logic has not been added yet. It would be great if you could get involved!

I would start by forking it, connecting to a local install and taking a loop at the GF fields passed to the plugin.

Take a look at this file:
https://github.com/robmarshall/gatsby-source-gravityforms/blob/master/src/gatsby-node.js

Line 50 all forms and fields are brought in. A good place to inspect.

Process forms is where everything is converted
https://github.com/robmarshall/gatsby-source-gravityforms/blob/master/src/utils/processForms.js

I suppose a key needs adding to the field object, relating the fields by ID?

from gatsby-source-gravityforms.

SilencerWeb avatar SilencerWeb commented on May 31, 2024

@robmarshall, got it.

What about testing? How to do that?

from gatsby-source-gravityforms.

robmarshall avatar robmarshall commented on May 31, 2024

Create a tester Gatsby app (maybe clone this, that I use : https://github.com/robmarshall/gatsby-gravity-forms-sandbox)

Also clone this plugin.

Then link the plugin, to the tester site using Yarn Link.

  1. Go to plugin root, type "yarn link"
  2. It will give you a command. Probably "yarn link gatsby-source-gravityforms"
  3. Go to your test site root, and enter that command

Now any changes that are made in the plugin, automatically push to the build.

To compile the plugin as you build
yarn watch

from gatsby-source-gravityforms.

Related Issues (19)

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.