Answer the question
In order to leave comments, you need to log in
How to display elements of one infoblock in another?
Friends, tell me please
There is an infoblock "Doctors" in it there are sections of doctors
For example Cardiologists, Dentists
Well, the elements of the sections are the names of doctors.
There is also an info block "Directions"
There are just sections without elements with a description of the section.
For example Cardiology, Dentistry.
It is required to display on the page of the "Cardiology" section all cardiologists from the "Cardiology" section from another infoblock.
It seems there is a field binding to sections, but I can’t figure out how to display it correctly. Who can tell.
Answer the question
In order to leave comments, you need to log in
In the section binding property, you will store the section ID from the infoblock with doctors.
Next, use CIBlockElement::GetList to get the doctors who are in it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question