V
V
VicTHOR2020-02-25 10:07:54
1C-Bitrix
VicTHOR, 2020-02-25 10:07:54

How to get section name?

in the directory section var_dump($arResult)gives the following output
5e54c69279ac5104221780.png
Can I somehow ['VARIABLES']display more ['SECTION_NAME']? What parameter is it passed?

Now the name of the section is printed by the method $APPLICATION->ShowTitle(false), but this method prints, and does not return, the buffer somehow does not want to fence.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail, 2020-02-25
@VicTHOR

in variables, an array generated from the CNC is initially displayed
; if you need to get the NAME of the section, you can use the CIBlockSection::GetList function

A
Aliy Kunashev, 2020-02-25
@askunash

If you want what ShowTitle() prints, then use GetTitle().
5e54d0c06ab55592321122.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question