Giter Club home page Giter Club logo

Comments (8)

jasonbahl avatar jasonbahl commented on May 22, 2024 2

@itwasmattgregg I'm thinking this feature would probably be best explored as an extension plugin for now.

I'm not sure where Widgets are going with Gutenberg, and the current state of Widgets don't lend to proper exposure to an API as there's no registry for fields that can be added to a widget.

Ideal implementation would expose widgets with their fields, not the rendered HTML, because not all clients care about the rendered HTML. Most clients, I would argue, want the data that was input so they, the client, can handle the rendering in HTML, or React Native, or whatever other format their client needs to output.

Because of the lack of a proper registry for all properties of widgets (fields, namely) it's difficult to expose to WPGraphQL in a very meaningful way.

And Gutenberg taking over widgets complicates things further.

from wp-graphql.

idesignzone avatar idesignzone commented on May 22, 2024 2

A good solution found here https://github.com/benada002/wp-graphql-widgets

from wp-graphql.

itwasmattgregg avatar itwasmattgregg commented on May 22, 2024 1

I totally agree and that all makes sense. Thanks for the update.

from wp-graphql.

jasonbahl avatar jasonbahl commented on May 22, 2024

Relevant Slack discussion here: https://wp-graphql.slack.com/archives/C3NM1M291/p1548183242930100

And thread here: https://wp-graphql.slack.com/archives/C3NM1M291/p1548184977978200

from wp-graphql.

jasonbahl avatar jasonbahl commented on May 22, 2024

Long story short, I think Widgets have a lot more discussion to be had before we can support them in a meaningful way in WPGraphQL.

from wp-graphql.

itwasmattgregg avatar itwasmattgregg commented on May 22, 2024

Any movement on this?

from wp-graphql.

jrmcdona avatar jrmcdona commented on May 22, 2024

Does this not help with this issue? #485 Sorry I am new to WP Graph QL and WordPress in general but I am currently trying to rebuild my blog in React with WP Graph QL and trying to rebuild side bar widgets.

Is there a clever workaround?

from wp-graphql.

jasonbahl avatar jasonbahl commented on May 22, 2024

Closing per discussion above: #20 (comment)

If anyone is interested in creating an extension for this, you can probably use PR #485 as inspiration.

from wp-graphql.

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.