Comments (8)
@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.
A good solution found here https://github.com/benada002/wp-graphql-widgets
from wp-graphql.
I totally agree and that all makes sense. Thanks for the update.
from wp-graphql.
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.
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.
Any movement on this?
from wp-graphql.
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.
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)
- Not returning all menu items HOT 4
- when i activate wpgraphql plugin with stratus theme,it will generate error. itβs not compaitible with it. HOT 3
- hasPublishedPosts is being over-ridden with true for unauthenticated requests, even if hasPublishedPosts: POST is being requested HOT 1
- User connections `hasPublishedPosts` should not allow `ATTACHMENT` value
- SendPasswordResetEmail Doesn't Display Reset Link in Received Emails Due to Formatting Issue with <> characters HOT 3
- Unable to query menuItems from "UTILITY" menu location with Apollo (works in GraphiQL) HOT 5
- Sticky posts are ignored HOT 3
- incompatible with custom field for oder by (mysql aggregated reason) HOT 2
- PHP deprecated HOT 6
- mediaDetails sizes query returns incorrect value for "file" HOT 4
- Test against WordPress 6.4
- tests: GraphiQL e2e tests failing on WordPress 6.4
- Fatal error in `WPConnectionType` when calling `str_ends_with()` on PHP < 8.0 HOT 7
- Query failing when a linked post type has a draft HOT 4
- Querying parent info in preview mode returns the current post info. HOT 3
- Add workflow to help automate version numbers during releases HOT 2
- No error thrown when query value first exceeds max query amount HOT 8
- nodeByUri return null for some custom CPT HOT 3
- Let's Revamp Our IDE π HOT 1
- Document Previews in WPGraphQL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-graphql.