A
A
Andrey Korekhov2020-02-21 15:28:14
1C-Bitrix
Andrey Korekhov, 2020-02-21 15:28:14

How to hide main menu items in 1c-bitrix admin panel?

5e4fcc38c6e83413420725.jpeg
After disabling some of the menu items according to the instructions How to remove marketing (on the left) for a group of users in 1СBitrix?
there are such tails (arrows) does anyone know how to remove them?
And also how can I remove the BITRIX24 button?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Anton, 2020-02-21
@Haotik

Well, if you really need it)
In the /bitrix/php_interface/ folder, create the admin_header.php file. Enter the following
code into the file:

<style>
.adm-main-menu-item:nth-child(5) {display:none !important;}
</style>

Where 5 is the number of the icon on top.

P
PetrPo, 2020-02-22
@PetrPo

I agree with Aliy Kunashev , decide at the level of rights
Regarding the bitrix24 button - the bitrixoids sewed it into the kernel in the sale module, on the same OnBuildGlobalMenu event without registering in the database, that is, it is impossible to cancel the event without customizing the kernel.
5e50d1f70f764920690090.jpeg
It can be seen from the condition:
- that if the interface language is different from "ru" the button will not be displayed if the admin panel is in English))
5e50d2d7ef385019252495.jpeg
- the second part of the condition, even if the language is "ru", if the "intranet" module is installed and the "sale" module option " ~IS_CRM_SITE_MASTER_OPENED" will be equal to "N", the button will also not be displayed.
You can set the option via the command line

\Bitrix\Main\Config\Option::set("sale", "~IS_CRM_SITE_MASTER_OPENED", "N");

Then think for yourself whether you need such a crap, for the sake of disabling this button

S
sergei153, 2022-01-19
@sergei153

This is how you can hide all items, for example, except for SERVICES . We also hide
the styles of menu items by class in
<?php
}
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question