-
Notifications
You must be signed in to change notification settings - Fork 44
Template controllers not loaded in 'draft' mode #70
Comments
I will test and look at fixing in 2.0.2 |
This is working with 2.0.1 from my testing. I'd recommend upgrading and trying again. roots/sage#2025 |
Hi @darrenjacoby can you test this again? I'm having the same problem and I have tried updating to 2.1.0. When assigning a custom page template the normal Page controller is loaded. And I don't use |
@slackday I'm pretty busy for the next month but will take a look when I have a chance. |
I had some time today to tackle this problem again. Turns out it was not an issue with the Controller itself but rather an upstream error in When a page with a custom template is in preview (before it is saved first time) it does not have a I suspect the reason this would work for some people and not for others is the difference if the page would be previewed first time or after it had been published. I have created a PR which solves this issue. I hope it can be merged soon or if the maintainer comes up with a better solution. I don't know the inner works of Hierarchy nor the Controller so this was quite dive 😄. |
Thanks for investigating @slackday , it looks like progress is being made over at brain/hierarchy. I will close this for now, and update the version of brain/hierarchy on dev-master soon. |
It seems that the correct controllers are not being loaded when previewing a page in draft mode. However, Sage 9 does successfully load the correct view.
It loads all the basic controllers:
But unfortunately not the template that is assigned to it.
The text was updated successfully, but these errors were encountered: