Skip to content
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

Add a toggle switch #7

Open
MaluNoPeleke opened this issue Aug 13, 2021 · 9 comments
Open

Add a toggle switch #7

MaluNoPeleke opened this issue Aug 13, 2021 · 9 comments

Comments

@MaluNoPeleke
Copy link

I would like to have a toggle switch next to my default date field to turn on/off autopublish for the specified date.

@bvdputte
Copy link
Owner

Unfortunately my vue skills are lacking a bit to set this up.

Maybe it'll be easier when Kirby 3.6 with Fiber lands; and I'll look at it again then.

@MaluNoPeleke
Copy link
Author

Okay, thanks for the honest answer and outlook.

@gearsdigital
Copy link

gearsdigital commented Nov 12, 2021

@MaluNoPeleke @bvdputte We could utitlize the Conditional Field feature of Kirby with only some small code changes. No Vue knowledge necessary.

I've created a small MR. Lets discuss the feature 😸

@MaluNoPeleke
Copy link
Author

MaluNoPeleke commented Nov 13, 2021

Thanks a lot for your support here!
I like your solution and think that it is already an improvement.
To avoid having too many fields for a simple thing the cleanest solution that comes to my mind is that the scheduled date can be set directly in the publishing dialog instead of a field on the page:
image
This way you can define the date and time for publishing right in the moment when you decide to change the status of the page.
I am not sure if that is technically possible at the moment so I raised it as an idea here: https://kirby.nolt.io/338

@gearsdigital
Copy link

Good Morning @MaluNoPeleke,

I'm not certain if this is the right place to handle this process. It hides a quite important part of the user interface and a Editor must know about this feature. You know what I mean?

The (better?) approach could probably be a date range field. So a User can set a range of visibility.

@bvdputte What do you think?

@MaluNoPeleke
Copy link
Author

Maybe as I am coming from Ghost CMS it feels natural for me to have the dialog on the status change dialog like this:
image
I just don't want to pollute the panel page for writing an article with too many fields/tabs and thought the option to schedule a status change would be better located in that dialog.

@bvdputte
Copy link
Owner

I think we should investigate using the new "dialog" possibilities Kirby Fiber offers us.
Then the "Field" could be just a "textual" resume of when the field will be published etc, and all the heavy lifting will happen in a dialog.

What do you all think?

@MaluNoPeleke
Copy link
Author

Sounds like a good solution, looking forward to it :)

@MaluNoPeleke
Copy link
Author

By default the created date and the autopublish are always the same (now). This causes the plugin to autopublish every draft as soon as the next cron job runs. It would be great to not autopublish anything as long as you activate the plugin for an article. Therefore a toggle or different integration would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants