kirby-auto-publish
kirby-auto-publish copied to clipboard
Update autopublish.php
Sometimes there are reasons why one could define a specific blueprint that has no other template than default. Could be because of permissions (Kirby 2.4+) based on a template. Autopublish doesn't work for these use cases as $page->template() returns "default" if the corresponding template doesn't exist. Changing $page->template() to $page->intendedTemplate() solves this problem.
If you don't want to change the current behavior, @groenewege, it could be a config option if template()
or intendedTemplate()` should be used!?