Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Edit entire blog post #5

Open
sdmccloskey opened this issue Apr 26, 2018 · 1 comment
Open

Edit entire blog post #5

sdmccloskey opened this issue Apr 26, 2018 · 1 comment
Labels
question Further information is requested

Comments

@sdmccloskey
Copy link

Is there a way to have the logged in user be able to edit the title and image along with the actual post? All I see is the ability to edit the main content.

@danielmahon
Copy link
Owner

@sdmccloskey yes, as is you would have to use the EditableMarkdown component where the title is and add another mutation or edit the existing one so that text put there would update the title instead of the body content. Take a look at the code in gatsby-starter-procyon/src/templates/post.js. Should give you an idea of how its done for the content. You just need to implement it for any other pieces of content you want the live editor to be enabled for. Might be worth making a EditableString component to handle string only fields.

@danielmahon danielmahon added the question Further information is requested label Apr 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants