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
SilverStripe 4.1 seems to want javascript/css to live in resources/betterbuttons (fysically public/resources/betterbuttons), unless the path is set from the site root,
so this seems to fix that: _config.php use \SilverStripe\Control\Director; define('BETTER_BUTTONS_DIR', Director::baseURL() . basename(dirname(FILE)));
[EDIT] Sorry: This doesn't fix anything: it strips 'resources' from the url, but that will still generate a 404 (.htacces redirecting everything) :(
Martine
The text was updated successfully, but these errors were encountered:
use \SilverStripe\Control\Director;
define('BETTER_BUTTONS_DIR', Director::absoluteBaseURL() . basename(dirname(__FILE__)));
... got it working again, but obviously modules in the root are not the thing anymore? What would be the best course? Besides better buttons finally becoming part of core :)
SilverStripe 4.1 seems to want javascript/css to live in resources/betterbuttons (fysically public/resources/betterbuttons), unless the path is set from the site root,
so this seems to fix that:_config.phpuse \SilverStripe\Control\Director;define('BETTER_BUTTONS_DIR', Director::baseURL() . basename(dirname(FILE)));[EDIT] Sorry: This doesn't fix anything: it strips 'resources' from the url, but that will still generate a 404 (.htacces redirecting everything) :(
Martine
The text was updated successfully, but these errors were encountered: