Вывод элементов из связанных инфоблоков

Например, вывести товары бренда
[spoiler]

<?$APPLICATION->IncludeComponent(
   "bitrix:catalog.element", 
   "brand_ms", 
   array(
      "IBLOCK_TYPE" => "1c_catalog",
      "IBLOCK_ID" => "4",
      "ELEMENT_ID" => $_REQUEST["ELEMENT_ID"],
      "ELEMENT_CODE" => $_REQUEST["ELEMENT_CODE"],
      "SECTION_ID" => $_REQUEST["SECTION_ID"],
      "SECTION_CODE" => "",
      "PROPERTY_CODE" => array(
         0 => "",
         1 => "",
      ),
      "OFFERS_LIMIT" => "0",
      "SECTION_URL" => "",
      "DETAIL_URL" => "#SITE_DIR#/proizvoditeli/index.php?ELEMENT_ID=#ELEMENT_ID#",
      "BASKET_URL" => "/personal/basket.php",
      "ACTION_VARIABLE" => "action",
      "PRODUCT_ID_VARIABLE" => "id",
      "PRODUCT_QUANTITY_VARIABLE" => "quantity",
      "PRODUCT_PROPS_VARIABLE" => "prop",
      "SECTION_ID_VARIABLE" => "SECTION_ID",
      "CACHE_TYPE" => "A",
      "CACHE_TIME" => "36000000",
      "CACHE_GROUPS" => "N",
      "META_KEYWORDS" => "-",
      "META_DESCRIPTION" => "-",
      "BROWSER_TITLE" => "NAME",
      "SET_TITLE" => "Y",
      "SET_STATUS_404" => "Y",
      "ADD_SECTIONS_CHAIN" => "Y",
      "USE_ELEMENT_COUNTER" => "Y",
      "PRICE_CODE" => array(
      ),
      "USE_PRICE_COUNT" => "N",
      "SHOW_PRICE_COUNT" => "1",
      "PRICE_VAT_INCLUDE" => "Y",
      "PRICE_VAT_SHOW_VALUE" => "N",
      "PRODUCT_PROPERTIES" => array(
      ),
      "USE_PRODUCT_QUANTITY" => "N",
      "CONVERT_CURRENCY" => "N",
      "LINK_IBLOCK_TYPE" => "",
      "LINK_IBLOCK_ID" => "",
      "LINK_PROPERTY_SID" => "",
      "LINK_ELEMENTS_URL" => "link.php?PARENT_ELEMENT_ID=#ELEMENT_ID#",
      "COMPONENT_TEMPLATE" => "brand_ms",
      "HIDE_NOT_AVAILABLE" => "N",
      "BACKGROUND_IMAGE" => "-",
      "CHECK_SECTION_ID_VARIABLE" => "N",
      "SEF_MODE" => "N",
      "SET_CANONICAL_URL" => "N",
      "SET_BROWSER_TITLE" => "Y",
      "SET_META_KEYWORDS" => "Y",
      "SET_META_DESCRIPTION" => "Y",
      "SET_LAST_MODIFIED" => "N",
      "USE_MAIN_ELEMENT_SECTION" => "N",
      "ADD_ELEMENT_CHAIN" => "N",
      "SHOW_DEACTIVATED" => "N",
      "DISPLAY_COMPARE" => "N",
      "ADD_PROPERTIES_TO_BASKET" => "N",
      "PARTIAL_PRODUCT_PROPERTIES" => "N",
      "SHOW_404" => "N",
      "MESSAGE_404" => "",
      "TEMPLATE_THEME" => "blue",
      "ADD_PICT_PROP" => "-",
      "LABEL_PROP" => "-",
      "DISPLAY_NAME" => "Y",
      "DETAIL_PICTURE_MODE" => "IMG",
      "ADD_DETAIL_TO_SLIDER" => "N",
      "DISPLAY_PREVIEW_TEXT_MODE" => "H",
      "PRODUCT_SUBSCRIPTION" => "N",
      "SHOW_DISCOUNT_PERCENT" => "N",
      "SHOW_OLD_PRICE" => "N",
      "SHOW_MAX_QUANTITY" => "N",
      "SHOW_CLOSE_POPUP" => "N",
      "MESS_BTN_BUY" => "Купить",
      "MESS_BTN_ADD_TO_BASKET" => "В корзину",
      "MESS_BTN_SUBSCRIBE" => "Подписаться",
      "MESS_BTN_COMPARE" => "Сравнить",
      "MESS_NOT_AVAILABLE" => "Нет в наличии",
      "USE_VOTE_RATING" => "N",
      "USE_COMMENTS" => "N",
      "BRAND_USE" => "N",
      "ADD_TO_BASKET_ACTION" => array(
         0 => "BUY",
      )
   ),
   false
);?> 
<br />

<? 
if(!$arrFilter) {
   global $arrFilter; 
   $arrFilter = Array("PROPERTY_Brands"=> $_REQUEST["ELEMENT_ID"]);
}?>
<?$APPLICATION->IncludeComponent(
   "bitrix:catalog.section", 
   "list_search_ms", 
   array(
      "IBLOCK_TYPE" => "1c_catalog",
      "IBLOCK_ID" => "1",
      "SECTION_ID" => "",
      "SECTION_CODE" => "",
      "SECTION_USER_FIELDS" => array(
         0 => "",
         1 => "",
      ),
      "ELEMENT_SORT_FIELD" => "CATALOG_AVAILABLE",
      "ELEMENT_SORT_ORDER" => "desc",
      "FILTER_NAME" => "arrFilter",
      "INCLUDE_SUBSECTIONS" => "Y",
      "SHOW_ALL_WO_SECTION" => "Y",
      "PAGE_ELEMENT_COUNT" => "20",
      "LINE_ELEMENT_COUNT" => "2",
      "PROPERTY_CODE" => array(
         0 => "",
         1 => "brand_link",
         2 => "",
      ),
      "OFFERS_LIMIT" => "5",
      "SECTION_URL" => "",
      "DETAIL_URL" => "#SITE_DIR#/katalog/#SECTION_CODE_PATH#/#ELEMENT_CODE#",
      "BASKET_URL" => "/personal/basket.php",
      "ACTION_VARIABLE" => "action",
      "PRODUCT_ID_VARIABLE" => "id",
      "PRODUCT_QUANTITY_VARIABLE" => "quantity",
      "PRODUCT_PROPS_VARIABLE" => "prop",
      "SECTION_ID_VARIABLE" => "SECTION_ID",
      "AJAX_MODE" => "Y",
      "AJAX_OPTION_JUMP" => "N",
      "AJAX_OPTION_STYLE" => "Y",
      "AJAX_OPTION_HISTORY" => "N",
      "CACHE_TYPE" => "A",
      "CACHE_TIME" => "36000000",
      "CACHE_GROUPS" => "Y",
      "META_KEYWORDS" => "-",
      "META_DESCRIPTION" => "-",
      "BROWSER_TITLE" => "-",
      "ADD_SECTIONS_CHAIN" => "N",
      "DISPLAY_COMPARE" => "N",
      "SET_TITLE" => "Y",
      "SET_STATUS_404" => "N",
      "CACHE_FILTER" => "N",
      "PRICE_CODE" => array(
         0 => "price",
      ),
      "USE_PRICE_COUNT" => "N",
      "SHOW_PRICE_COUNT" => "1",
      "PRICE_VAT_INCLUDE" => "Y",
      "PRODUCT_PROPERTIES" => array(
      ),
      "USE_PRODUCT_QUANTITY" => "Y",
      "CONVERT_CURRENCY" => "N",
      "DISPLAY_TOP_PAGER" => "N",
      "DISPLAY_BOTTOM_PAGER" => "Y",
      "PAGER_TITLE" => "Товары",
      "PAGER_SHOW_ALWAYS" => "N",
      "PAGER_TEMPLATE" => "",
      "PAGER_DESC_NUMBERING" => "N",
      "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
      "PAGER_SHOW_ALL" => "N",
      "AJAX_OPTION_ADDITIONAL" => "",
      "COMPONENT_TEMPLATE" => "list_search_ms",
      "ELEMENT_SORT_FIELD2" => "shows",
      "ELEMENT_SORT_ORDER2" => "desc",
      "HIDE_NOT_AVAILABLE" => "N",
      "BACKGROUND_IMAGE" => "-",
      "SEF_MODE" => "N",
      "SET_BROWSER_TITLE" => "Y",
      "SET_META_KEYWORDS" => "Y",
      "SET_META_DESCRIPTION" => "Y",
      "SET_LAST_MODIFIED" => "N",
      "USE_MAIN_ELEMENT_SECTION" => "N",
      "ADD_PROPERTIES_TO_BASKET" => "Y",
      "PARTIAL_PRODUCT_PROPERTIES" => "N",
      "PAGER_BASE_LINK_ENABLE" => "N",
      "SHOW_404" => "N",
      "MESSAGE_404" => "",
      "TEMPLATE_THEME" => "blue",
      "ADD_PICT_PROP" => "-",
      "LABEL_PROP" => "-",
      "PRODUCT_SUBSCRIPTION" => "N",
      "SHOW_DISCOUNT_PERCENT" => "N",
      "SHOW_OLD_PRICE" => "N",
      "SHOW_CLOSE_POPUP" => "Y",
      "MESS_BTN_BUY" => "Купить",
      "MESS_BTN_ADD_TO_BASKET" => "В корзину",
      "MESS_BTN_SUBSCRIBE" => "Подписаться",
      "MESS_BTN_COMPARE" => "Сравнить",
      "MESS_BTN_DETAIL" => "Подробнее",
      "MESS_NOT_AVAILABLE" => "Нет в наличии",
      "ADD_TO_BASKET_ACTION" => "ADD"
   ),
   false
); ?>