medienbaecker / kirby-modules

Plugin for modular Kirby websites
MIT License
73 stars 7 forks source link

Add "autopublish" option #19

Closed pedroborges closed 3 years ago

pedroborges commented 3 years ago

This PR overrides the Page::create method to auto-publish modules when the medienbaecker.modules.autopublish option is true.

Should the default option value be true or false? What do you think?

By the way, 9999 is there just to ensure the module is the last published module. The actual folder num will follow the regular sequence.