I have a style sheet that I was using to add some CSS to the manage login form. That is no longer working
Step to reproduce
Create a plugin with this code:
$modx->regClientStartupHTMLBlock('<link rel="stylesheet" type="text/css" href="'.MODX_BASE_URL.'assets/css/manager.css" />');
and trigger it on OnManagerLoginFormRender and OnManagerLoginFormRender.
The CSS file does not get loaded into the login page.
I’m pretty sure this was working in 3.0.0
Are you sure?
From what I can see, the events triggers.
The “problem” seems to be, that code added with
$modx->regClientStartupHTMLBlock(...) just doesn’t get output to the login page, because the header template (“header.tpl”) isn’t integrated into this page. But it looks like this has been the case for years.
Is this a bug, then? Shouldn’t we be able to add code like this to the startup screen?
I know I got this to work on a 3.0 site, but maybe I ended up adding the CSS some other way. I don’t remember for sure.
Just checked, and yes, I ended up doing it a different way, by directly altering a plugin code.
I don’t know if this is a bug or an intentional choice.
Maybe create an issue (with a feature request) on Github.