kirby-auto-publish icon indicating copy to clipboard operation
kirby-auto-publish copied to clipboard

Update autopublish.php

Open oliverschneider opened this issue 7 years ago • 1 comments

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.

oliverschneider avatar Sep 29 '16 06:09 oliverschneider

If you don't want to change the current behavior, @groenewege, it could be a config option if template() or intendedTemplate()` should be used!?

flokosiol avatar Apr 03 '18 14:04 flokosiol