Answer the question
In order to leave comments, you need to log in
How to enable the public part of the control panel on 1C Bitrix?
Installed on local 1C Bitrix without demo data and template! So it was on assignment. But I don't see the public part, i.e. There is an admin panel, but there is no control panel on the site. How to connect it?
Answer the question
In order to leave comments, you need to log in
In the template, the control panel must be added - https://dev.1c-bitrix.ru/api_help/main/reference/c...
and preferably https://dev.1c-bitrix.ru/api_help/main/reference/c ... (or separately css and js.
In header.php write:
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
IncludeTemplateLangFile($_SERVER["DOCUMENT_ROOT"]."/bitrix/templates/".SITE_TEMPLATE_ID."/header.php");
CUtil::InitJSCore();
CJSCore::Init(array("fx","ls","jquery"));
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?=LANGUAGE_ID?>" lang="<?=LANGUAGE_ID?>">
<head>
<?
$APPLICATION->ShowHeadStrings();
$APPLICATION->ShowHeadScripts();
?>
<title><?$APPLICATION->ShowTitle()?></title>
</head>
<body>
<div id="panel"><?$APPLICATION->ShowPanel();?></div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question