Answer the question
In order to leave comments, you need to log in
How to get all lessons by course id in bitrix?
I try like this. but gives absolutely all the lessons
if (CModule::IncludeModule("learning"))
{
echo $COURSE_ID;
$res = CLesson::GetList(
Array("SORT" => "ASC"), Array("ACTIVE" => "Y", "ID" => $COURSE_ID)
);
while ($arLesson = $res->GetNext())
{
echo "Lesson name: " . $arLesson["LESSON_ID"] . "<br>";
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question