Comments (6)
@nring Yes, the Ghost Content API limitation remains and you would have to make requests through the Ghost Admin API. I have no plans to add that myself, but if you want to make a contribution you are more than welcome.
from next-cms-ghost.
@mbernard: Welcome!
The preview route has the following access pattern /api/v1/preview/<slug>
.
from next-cms-ghost.
hummm
It works for a published post, but when I try with a draft I got a 404
Am I doing something wrong? any ideas?
from next-cms-ghost.
That's a current limitation as the Ghost Content API does not expose draft posts.
There are possible workarounds, such as accessing the Ghost Admin endpoints, but it doesn't quite fit into the current access patterns. If you want to PR that, you are more than welcome.
from next-cms-ghost.
Thanks for the clarification
from next-cms-ghost.
@styxlab Checking in a year later, do you still see this as a limitation of the Ghost Content API? And that the best way to preview unpublished posts is likely through something custom with Ghost Admin endpoints?
from next-cms-ghost.
Related Issues (20)
- Changing theme settings doesn't work HOT 4
- Netlify Deploy workflow fails HOT 9
- next/images on Netlify HOT 2
- ISR on Netlify
- Open the images in full-screen display on click HOT 8
- Can I change my theme. HOT 1
- Pagination is not available HOT 12
- Error: Index creation failed - after adding API URL & Key HOT 10
- Integrate post/draft preview HOT 1
- getting issue on author image HOT 2
- I cant embed html scripts in my posts. HOT 1
- Upgrade Rehype HOT 2
- did you can add search bar HOT 1
- I can't send message in Contact page HOT 1
- Will this not work for Ghost V.5 and why not? HOT 1
- Working with local ghost installation
- TypeError: withImageLoader is not a function (warning [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. HOT 6
- Build error occurred ReferenceError: Cannot access 'api' before init
- Abandoned? HOT 1
- Build specific feed for each author
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 next-cms-ghost.