$arSection = \Bitrix\Iblock\SectionTable::getList([
'select' => ['ID', 'NAME', 'LEFT_MARGIN', 'RIGHT_MARGIN'],
'filter' => ['IBLOCK_ID' => $arParams['IBLOCK_ID'], 'ID' => $arResult['VARIABLES']['SECTION_ID']]
])->fetch();
$select = [
"PICTURE"
];
$sort = [
"SORT" => "ASC"
];
$filter = [
/* @var int ID инфоблока */
'IBLOCK_ID' => 7,
/* @var int ID раздела */
'SECTION_ID' => 35,
];
$rsResult = CIBlockSection::GetList(
$sort,
$filter,
false,
$select
);
CIBlockResult Object
(
[arIBlockMultProps] =>
[arIBlockConvProps] =>
[arIBlockAllProps] =>
[arIBlockNumProps] =>
[arIBlockLongProps] =>
[nInitialSize] =>
[table_id] =>
[strDetailUrl] =>
[strSectionUrl] =>
[strListUrl] =>
[arSectionContext] =>
[bIBlockSection] =>
[nameTemplate] =>
[_LAST_IBLOCK_ID] =>
[_FILTER_IBLOCK_ID] => Array
(
[7] => 1
)
[result] => mysqli_result Object
(
[current_field] => 0
[field_count] => 2
[lengths] =>
[num_rows] => 12
[type] => 0
)
[arResult] =>
[arReplacedAliases] =>
[arResultAdd] =>
[bNavStart] =>
[bShowAll] =>
[NavNum] =>
[NavPageCount] =>
[NavPageNomer] =>
[NavPageSize] =>
[NavShowAll] =>
[NavRecordCount] =>
[bFirstPrintNav] => 1
[PAGEN] =>
[SIZEN] =>
[SESS_SIZEN] =>
[SESS_ALL] =>
[SESS_PAGEN] =>
[add_anchor] =>
[bPostNavigation] =>
[bFromArray] =>
[bFromLimited] =>
[sSessInitAdd] =>
[nPageWindow] => 5
[nSelectedCount] =>
[arGetNextCache] =>
[bDescPageNumbering] =>
[arUserFields] => Array
(
[UF_TEXT] => Array
(
[ID] => 8
[ENTITY_ID] => IBLOCK_7_SECTION
[FIELD_NAME] => UF_TEXT
[USER_TYPE_ID] => string_formatted
[XML_ID] =>
[SORT] => 100
[MULTIPLE] => N
[MANDATORY] => N
[SHOW_FILTER] => N
[SHOW_IN_LIST] => Y
[EDIT_IN_LIST] => Y
[IS_SEARCHABLE] => N
[SETTINGS] => Array
(
[SIZE] => 20
[ROWS] => 1
[REGEXP] =>
[MIN_LENGTH] => 0
[MAX_LENGTH] => 0
[DEFAULT_VALUE] =>
[PATTERN] => #VALUE#
)
[USER_TYPE] => Array
(
[USER_TYPE_ID] => string_formatted
[CLASS_NAME] => CUserTypeStringFormatted
[DESCRIPTION] => Шаблон
[BASE_TYPE] => string
[EDIT_CALLBACK] => Array
(
[0] => CUserTypeStringFormatted
[1] => GetPublicEdit
)
[VIEW_CALLBACK] => Array
(
[0] => CUserTypeStringFormatted
[1] => GetPublicView
)
)
[VALUE] =>
)
[UF_TEXT_SECTION] => Array
(
[ID] => 9
[ENTITY_ID] => IBLOCK_7_SECTION
[FIELD_NAME] => UF_TEXT_SECTION
[USER_TYPE_ID] => string
[XML_ID] =>
[SORT] => 100
[MULTIPLE] => N
[MANDATORY] => N
[SHOW_FILTER] => N
[SHOW_IN_LIST] => Y
[EDIT_IN_LIST] => Y
[IS_SEARCHABLE] => N
[SETTINGS] => Array
(
[SIZE] => 20
[ROWS] => 1
[REGEXP] =>
[MIN_LENGTH] => 0
[MAX_LENGTH] => 0
[DEFAULT_VALUE] =>
)
[USER_TYPE] => Array
(
[USER_TYPE_ID] => string
[CLASS_NAME] => CUserTypeString
[DESCRIPTION] => Строка
[BASE_TYPE] => string
[EDIT_CALLBACK] => Array
(
[0] => CUserTypeString
[1] => GetPublicEdit
)
[VIEW_CALLBACK] => Array
(
[0] => CUserTypeString
[1] => GetPublicView
)
)
[VALUE] =>
)
)
[usedUserFields] =>
[SqlTraceIndex] =>
[DB] => CDatabase Object
(
[db_Conn] => mysqli Object
(
[affected_rows] => 12
[client_info] => 5.5.30-MariaDB
[client_version] => 50530
[connect_errno] => 0
[connect_error] =>
[errno] => 0
[error] =>
[error_list] => Array
(
)
[field_count] => 2
[info] =>
[insert_id] => 0
[server_version] => 50505
[stat] => Uptime: 24374776 Threads: 200 Questions: 69771091550 Slow queries: 25863 Opens: 63471586 Flush tables: 1 Open tables: 31997 Queries per second avg: 2862.430
[sqlstate] => 00000
[protocol_version] => 10
[thread_id] => 227018754
[warning_count] => 0
)
[version] =>
[escL] => `
[escR] => `
[alias_length] => 256
[bConnected] => 1
[debug] =>
[DebugToFile] =>
[ShowSqlStat] =>
[db_Error] =>
[db_ErrorSQL] =>
[result] =>
[type] => MYSQL
[column_cache] => Array
(
)
[bModuleConnection] =>
[bNodeConnection] =>
[node_id] =>
[obSlave] =>
[cntQuery] => 0
[timeQuery] => 0
[arQueryDebug] => Array
(
)
[sqlTracker] =>
)
[NavRecordCountChangeDisable] =>
[is_filtered] =>
[nStartPage] => 0
Спасибо, я смотрел на Organization. И немного не понимаю. У меня на страницы данные об организации есть только в футере и хедере. Получается там нужно размечать? Но тогда ведь это всё попадёт и на другие страницы. Или это ок?