-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
WIP: Dynamic Widget #498
WIP: Dynamic Widget #498
Conversation
…ble widgets available. This will then append the widget to a lower div for data gathering
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a comment on configuration. Also, I'm not seeing previews working - you can check the deploy preview so we're looking at the same thing: https://deploy-preview-498--cms-demo.netlify.com/#/collections/kitchenSink/entries/a-big-entry-with-all-the-things
example/config.yml
Outdated
@@ -4,6 +4,12 @@ backend: | |||
|
|||
media_folder: "assets/uploads" | |||
|
|||
dynamic_widgets: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably better to keep widget configuration on the widget itself, even if it's redundant. I'd suggest accepting the list of widgets under a widgets
key on the dynamic widget config.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that idea. Then you can choose what widgets are available on a collection by collection basis. Clever.
@domtalbot that's the control panel, which does work great, but the values aren't showing up in the preview pane. |
Ahh, of course. It is something I am working on |
@domtalbot any update on this? |
It's currently on the back burner for me simply due to not having time to
focus on it
…On 2 September 2017 at 17:07, Shawn Erquhart ***@***.***> wrote:
@domtalbot <https://github.com/domtalbot> any update on this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#498 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AG114_v34IFpr9usiuB7glZllrDuVJJ7ks5seX1CgaJpZM4Oj3_E>
.
--
Kind Regards
Dominic Talbot
07791193905
|
Understood, I'll check back later on :) |
@domtalbot I'm going to close this for now, but let's discuss the idea further in #565 if you're still interested, I have some thoughts on it. |
So, here is my first attempt at a contribution to NetlifyCMS. In simple terms, it's aim is to allow you to create truly dynamic layouts based on prebuilt blocks.
My goal with Dynamic Widget was to allow NetlifyCMS to be used in a way to create component based pages, posts or anything you wish.
Let me take a Blog Post Collection as an example. I want to start with a content block, then break the page with a blockquote, followed by an image gallery. Yes I could do this with a markdown editor, but it isn't simple for a content writer.
Using Dynamic Widgets gives the developer the power to create custom widgets and enable them in the Widget Selector. A content writer then has the power to create truly unique Blog Posts quickly and simply.
ToDo