Comments (4)
@matthijs166 YES! That is exactly what we've got in store for the future of this plugin. This same pattern will apply across a few other plugins as well, like the form builder.
from plugin-seo.
Hi @matthijs166 I'm digging into this one. The question really comes down to whether you should import Payload from your callback, or the the React component imports it and sends it through to you.
from plugin-seo.
Ok @matthijs166 after second thought, this one is pretty simple. We're in a React component, so we won't have access to Payload local API (we're in a browser). Instead, use would just use the REST API or GraphQL as needed.
from plugin-seo.
Thanks! I see that I can use fetch directly without the need of authentication because the auth is set inside a cookie.
Would be cleaner to get the values without an extra fetch but dont think its easy to implement. Or it need to be build in a way like yoast SEO with the use of snippets variabels: https://yoast.com/help/list-available-snippet-variables-yoast-seo/
from plugin-seo.
Related Issues (20)
- Are Translations Supported? HOT 1
- Re-Use fancy Min/Max Lenght for other fields HOT 1
- Tabbed UI breaks position 'sidebar' HOT 3
- Validation issue on save HOT 4
- Disable tabs nesting HOT 2
- Search by ID only with tabbedUI: true HOT 3
- Display added alt/title on Media when used HOT 1
- Text cursor jumps to end of content HOT 1
- Feat request: Add focus keywords or keyphrase HOT 1
- forms_1.useAllFormFields is not a function HOT 2
- Auto-generate buttons are there even if no generateTitle/generateDescription/etc configured HOT 5
- TabbedUI breaks content fields with `position: 'sidebar'` HOT 11
- Next-Payload not working together with plugin-seo HOT 13
- Allow custom more fields in SEO group? HOT 4
- Nothing displaying in admin panel HOT 2
- Add opengraph support HOT 2
- Fields not rendering in collection when SEO is enabled since v1.0.12 HOT 4
- How to access collection slug inside `generateURL`? HOT 4
- Input is broken on latest payload HOT 1
- Using S3 Adapter, og:image + twitter:image set to SITE_URL/S3_IMAGE_URL HOT 2
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 plugin-seo.