Я просто оставлю это здесь
[CODE]<?
$component-1 = '';
ob_start();
$APPLICATION->IncludeComponent(
"bitrix:news.list",
Array()
);
$component-1 = ob_get_contents();
ob_end_clean();
$component-2 = '';
ob_start();
$APPLICATION->IncludeComponent(
"bitrix:news.list",
Array()
);
$component-2 = ob_get_contents();
ob_end_clean();
?>
<?
$arData["Tab1"] = array (
"NAME" => "ТАБ1",
"CONTENT" => $component-1
);
$arData["Tab2] = array (
"NAME" => "ТАБ2,
"CONTENT" => $component-2
);
$arTabsParams = array (
"DATA" => $arData,
);
$APPLICATION->IncludeComponent (
"bitrix:catalog.tabs",
"test",
$arTabsParams,
$component,
array("HIDE_ICONS" => "Y")
);
?>
[/CODE]Так будет корректнее, если нужно вывести более чем один компонент
[CODE]<?
$component-1 = '';
ob_start();
$APPLICATION->IncludeComponent(
"bitrix:news.list",
Array()
);
$component-1 = ob_get_contents();
ob_end_clean();
$component-2 = '';
ob_start();
$APPLICATION->IncludeComponent(
"bitrix:news.list",
Array()
);
$component-2 = ob_get_contents();
ob_end_clean();
?>
<?
$arData["Tab1"] = array (
"NAME" => "ТАБ1",
"CONTENT" => $component-1
);
$arData["Tab2] = array (
"NAME" => "ТАБ2,
"CONTENT" => $component-2
);
$arTabsParams = array (
"DATA" => $arData,
);
$APPLICATION->IncludeComponent (
"bitrix:catalog.tabs",
"test",
$arTabsParams,
$component,
array("HIDE_ICONS" => "Y")
);
?>
[/CODE]Так будет корректнее, если нужно вывести более чем один компонент