"help" button in top right position

It’s a known bug (clicking the button messes up the page and requires a refresh) and not very important, but I use it because I utilize my own link (internal resource) with some instructions.
I haven’t found any solutions around, even temporary ones, except for acting on an overflow, do any exist?
If they don’t exist, is it possible to hide the button with some permission? (I’ve tried almost all of them)

(For your information, I encountered the same problem in my CMP using scrollIntoView with a block parameter different from end or start.)

I don’t think any permission will hide it but you can inject some custom CSS to do that:

#modx-action-buttons-container table table td.x-toolbar-cell:last-child {
    display: none;
}

There are different ways of injecting custom CSS. If you use Redactor, it will load a custom stylesheet. I’m pretty sure someone wrote a plugin for injecting custom CSS into the manager, perhaps @smashingred? I recalling seeing it mentioned regarding customizing resource tree icons. I can’t find it now tho.

Simple. Create your custom CSS file with the rule above in it, and upload the file to your server (probably in the assets folder somewhere). Then, create a plugin (called “customManagerStyles” for example), and put this in it:

$modx->regClientStartupHTMLBlock('<link rel="stylesheet" type="text/css" href="'.MODX_BASE_URL.'[path to my CSS file]" />');

Click the System Events tab and check off “OnManagerPageInit”.

Save, and done!

1 Like

Using a CSS rule, I had already applied #modx-abtn-help{display:none;} in myManager.css
To include it, I simply create my own manager theme and only modify header.tpl to insert the CSS. With my myManager.css, I made a few changes as shown below, also removing the help button.


However, I preferred some solutions, even temporary ones, to resolve the bug, because I place my guide (an internal resource on the site) on the help button, which explains the various parts to manager’s users.

I was also asking about possible permission because in the future I would like to show the button only to certain groups.
Thank you for the responses that always enhance my knowledge, which is never too much, of MODX.

If it helps, I’ve noticed that by entering modal:true at the window, when it opens, you just need to click outside the box to return everything to normal.

I have conducted additional tests that might be useful to those more knowledgeable than I am.
The issue seems to be related to the page inserted in the iframe
If it doesn’t exist, page not found, the issue doesn’t occur
for example, just go to the template administrator policy and click on the button

If you then click on another existing page (e.g. an overview to MODX) within the iframe, the issue occurs again