Answer the question
In order to leave comments, you need to log in
How to pass data to the component template?
I want to pass data, menu title to the bitrix:menu
component template .
Is it possible to do this inside $APPLICATION->IncludeComponent ?
Something like:
<?$APPLICATION->IncludeComponent(
"bitrix:menu",
"",
Array(
...
"MENU_TITLE" => "О гостинице"
...
));?>
Answer the question
In order to leave comments, you need to log in
in the component template, add the file .parameters.php
to this file, paste:
$arTemplateParameters = [
"MENU_TITLE" => [
"NAME" => "Заголовок"
"TYPE" => "STRING",
],
];
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question