You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding private static $controller_name = PageController::class; to Page.php causes Blog Categories etc. to fail. One way to work around this would be, to add static $controller_name = BlogController::class; to Blog.php, but may there is a smarter way fixing this for other instances that extend Page.php?
Should this be "fixed" in Blog (👍) or not (👎) ?
If not in Blog.php, can you pleas outline where and how or why not.
The text was updated successfully, but these errors were encountered:
Hmm, I wonder if the code that fetches this (SiteTree::getControllerName()) should look for an “uninherited” config value instead of any value that’ll inherit from parent classes? I’m not sure if that would be a BC-break though.
Adding
private static $controller_name = PageController::class;
toPage.php
causes Blog Categories etc. to fail. One way to work around this would be, to addstatic $controller_name = BlogController::class;
toBlog.php
, but may there is a smarter way fixing this for other instances that extendPage.php
?Should this be "fixed" in Blog (👍) or not (👎) ?
If not in
Blog.php
, can you pleas outline where and how or why not.The text was updated successfully, but these errors were encountered: