Thanks Jens “Head of Kirby Plugin Department” Törnell!
It’s amazing how you not only publish plugins so often, but also seem to read my mind regarding the functions. This is something I wanted to simplify myself since quite a while.
Thanks for that plugin. I didn’t find any info, so I have to ask: does it handle caching?
I’ve implemented a similar functionality on my blog, but the problem always is the cache. I can schedule posts, but they will only appear, when I clear the cache. Does your plugin take care of that?
I needed this to work with cached pages, so I worked a bit further on @jenstornell “scheduled pages” core idea and hacked in a cache invalidator so there is no need for a controller / function in each template.
Hey @jenstornell, sorry for the newbie question here…
I’m trying to install both the status and schedule-pages plugins but don’t see them reflected on the panel yet.
I just dragged the unzipped folders from GitHub and dragged them into the site/plugins folder.
Scheduled pages: Have you set up the blueprint as described in the readme? Fieldname is important.
Status plugin: Have you added the status field in your blueprint?
Yes, there seems to be something missing. There is no file called status.php that registers the field and the methods. As it is, this plugin will not work. Maybe @jenstornell accidentally deleted the origin status.php file that was in his first commit? As a workaround, you can move the files in the plugins’s /field folder into your project’s /site/fields/status/folder and then put all the other files (controller-helper.php, page-methods.php and pages-methods.php) directly into site/plugins (without a subfolder)
(Explanation: Plugins are only loaded if the name of the folder and the name of the plugin’s main file are the same, e.g. folder “status” => file status.php. Additionally, if your plugin contains fields or other stuff, these must be registered in the main file.)