V
V
Vadim Timoshenko2019-12-26 18:47:34
1C-Bitrix
Vadim Timoshenko, 2019-12-26 18:47:34

How to create an include area on a Bitrix page?

I created this page in the /contacts/ folder at the root of the site.
It is necessary that it be possible through the editing mode directly on the page to switch through the included area to the editing mode in a pop-up window. What parameter should be added?

<?
  require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
  $APPLICATION->SetPageProperty("title", "Контакты");
  $APPLICATION->SetTitle("Контакты");
?>

<p>123</p>

<?php
  require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");
?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2019-12-26
@PbI6A_KuT

Component Use

<?$APPLICATION->IncludeComponent(
    "bitrix:main.include",
    "",
    Array(
        "AREA_FILE_SHOW" => "file",
        "PATH" => SITE_TEMPLATE_PATH."/include/company.php"
    )
);?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question