Answer the question
In order to leave comments, you need to log in
How to get the properties of a non-current page?
Good afternoon friends.
Pages have a custom property. How can I get it from the menu component for each page?
Something is quite stuck here.
Thank you!
UPD: property - analogue of meta (keywords, description), is set for a physical page. These page properties are called by the GetPageProperty() method. And there are no problems.
There is also a menu component (bitrix:menu) that displays these very physical pages.
The challenge is to get this property for each page in the menu.
Answer the question
In order to leave comments, you need to log in
I think it’s just not possible to collect everything at once, at least I can’t say on the fly. Banal ideas come to mind to create an HL \ infoblock and simply display it in the menu in result_modifier.php, and to set these properties for the page, you can use events like OnAfterEpilog \ OnEpilog, see about loading the page here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question