Answer the question
In order to leave comments, you need to log in
How to connect a style file for an authorized administrator in Bitrix?
I received the task to correct the working site on Bitrix. I would like the style file to be connected only for an authorized administrator, and others would not see this file. How can I do that?
Answer the question
In order to leave comments, you need to log in
Here it is written
, in general, something like this:
if($USER->isAdmin())
{
$APPLICATION->SetAdditionalCSS("path/to/file/css.css");
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question