S
S
Senseich2017-08-31 10:19:32
1C-Bitrix
Senseich, 2017-08-31 10:19:32

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

2 answer(s)
L
lexnekr, 2017-08-31
@lexnekr

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.

A
Alexey Emelyanov, 2017-08-31
@babarun

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 question

Ask a Question

731 491 924 answers to any question