filament-fabricator icon indicating copy to clipboard operation
filament-fabricator copied to clipboard

Draft Pages

Open Z3d0X opened this issue 1 year ago • 2 comments

opt-in feature for draft/publish states

Z3d0X avatar Jun 11 '23 13:06 Z3d0X

@Z3d0X What are the implementation details you are thinking of? Would it be a boolean is_draft attribute on the Page Model or maybe a date published_at attribute where the page is only live if the date is not null / and it's currently past that date?

If you have implementation details in mind and are willing to let me work on this, let me know. This feature would greatly benefit my use of Fabricator!

alexfaus08 avatar Sep 18 '23 17:09 alexfaus08

I am thinking of published_at way, but along with a draft_blocks.

draft_blocks will be updated if you edit an existing page. Then you have to "publish" those changes (in this process, draft_blocks will be copied to blocks). You can also "discard" draft_blocks.

This way you can make changes to a already published page, without the change immediately showing up on the frontend.

Thank you for your interest and offer for help, I would love the help, you could get started on published_at implementation.

Z3d0X avatar Sep 19 '23 05:09 Z3d0X