-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Frontend Editor (Inline Editor, Sidebar, Topbar, etc) #1
Comments
how do you add more pages to a menu? francisco arenas 2013/8/6 Neil Taylor [email protected]
|
@dospuntocero - Thanks! As for adding items to the menu - In early versions, this will be accomplished with metadata. In future versions, it should be be further abstracted. To edit a page's metadata, you use the first comp that is labeled "Page Editing: (Inline editor, metadata stuck to the top of the page)". From there, a checkbox with a label like "Include in Menu" would be available for the user This would all be trigged via the contentTypes plugin that I'm hoping to publish tomorrow :) |
Quick thoughts on comps:
|
Can we get the source files uploaded somewhere for those mockups? |
Here you go :) |
Sweet thanks! |
What should the buttons do? Should save:
Should cancel:
Should publish:
Should commits:
Should publish:
|
Development of the inline cms is underway here: https://github.com/docpad/docpad-plugin-inlinecms 🚀 :) |
I'm thinking:
In hindsight, this is kind of like how github for mac works :) If that is all good, the question then is how to accomplish this with the DocPad APIs... for instance, when regarding that we may move away from git, into a mongodb source instead. |
^^ All sounds good to me. I'd like to see "Save" and "Cancel" appear when you have made any changes to the page (both meta & inline content changes). So hitting "Save" will save any & all changes, and "Cancel" will reset everything on client-side. A warning dialog when you're going to a different page without saving changes would be nice too. |
Bit of a left field thought, so feel free to shoot me down... :) So I agree with the basic workflow you're suggesting:
But how about getting rid of an explicit save/cancel operation and stream the updates back to the server in [near] real-time? It would facilitate real-time collaboration by multiple users on the same file ala Google Docs (which would be awesome). It would also help to reduce conflicts and accidental overwrites. To 'cancel' changes, you could select to revert files. |
@neilbaylorrulez: This looks nice! About the meta-data: I noticed you use typed fields, i.e: publishdate = calendar, author = a dropdown to select a particular user . Have you implemented some kind of meta-data schema to describe the semantics of each field, how they should be rendered etc? I'm thinking of a declarative way to describe custom meta-data fields. If so, perhaps it's worth discussing to make the "meta-data schema" -stuff something separate, which other parts of Docpad can feed from as well? E.g: the following automatically generates a forms including callbacks etc from a json-declaration. https://github.com/daffl/jquery.dform |
@gebrits Yes, we have a docpad-plugin-contenttypes to handle this mapping (unlinked to github at the moment) ContentTypes also generates some default landing pages for you and is a place to define validation for each content-type Fields like publishdate are 'inherited' by each type so you don't need to re-define them each time |
Video: https://cloudup.com/iatj4CYkkE0 Changes:
Source on branch |
Looks amazing!! |
Video: https://cloudup.com/iY1G9dnUSMX Changes:
Source on branch |
@neilbaylorrulez if you could work on the inline editing (contenteditable, create.js) side of things, and I'll continue working on the admin gui side of things that should work quite well (not that much overlap, less conflicts) - thoughts? :-) |
Sounds perfect. Ill get started today or Monday at the latest |
... do you have two twitter accounts? one for when you rulez and for other times? ;-) |
The docpad/docpad-plugin-inlinegui repo is empty... Something's wrong ? |
It's being split up into multiple projects as we speak!
Trying to figure out how they can all play together nicely. See #20 |
We need a screen for adding content. Perhaps something that asks for the title, and beneath the relativePath. If they enter the title, we slug it for the relativePath. Should probably be a modal. @neilbaylorrulez this would be a good time for the contentypes plugin to go live, as we will need info like - when creating a document for the "posts" collection, where should it go, what fields should it have, etc. |
@balupton sorry dude crazy couple of days for me, haven't had a chance to get in to this yet :( Will publish content types today |
Just wanted to point to the following for an inline-editor to possibly cherrypick ideas from: http://madebymany.github.io/sir-trevor-js/ + related HN: https://news.ycombinator.com/item?id=6570042 nice things:
|
AMAZING! Thanks for sharing! /cc @neilbaylorrulez @neilbaylor @yrassoulli what are your thoughts |
Love Trevor's UI. Would be nice to us it tie it into layout regions. |
Sir Trevor |
Implementations:
The text was updated successfully, but these errors were encountered: