Update LMS - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

Update LMS

M

manruy

Extension 3 years ago

LMS doesn't show the lessons of the courses already created previously. https://youtu.be/ULDsJY0-fbo

Joomla! 3.10.8 Stable PHP 7.4.28 LMS Version: 4.0.5

0
3 Answers
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #65732

Hi there,

Thanks for contacting us. Sorry for the inconvenience. Please check now. We will fix it next update.

I have added this code line 124

templates/shaper_educon/html/com_splms/course/default.php

<?php if((!empty($this->item->topics) && count($this->item->topics)) || (!empty($this->item->lessons) && count($this->item->lessons))) { ?>
            <div class="course-lessons">
                <h3><?php echo Text::_('COM_SPLMS_LESSONS'); ?></h3>
                <?php if(!empty($this->item->topics) && count($this->item->topics)) { ?>
                    <div id="topicAccordion">
                        <?php foreach($this->item->topics as $key => $topic) { ?>
                            <div class="card">
                                <div class="card-header" id="topicId<?php echo $key; ?>" data-toggle="collapse" data-target="#topicBody<?php echo $key; ?>" aria-expanded="true">
                                    <span class="splms-topic-title"><?php echo $topic->title; ?></span>
                                </div>

                                <div id="topicBody<?php echo $key; ?>" class="collapse <?php echo $key == 0 ? 'show collapse in' : ''; ?>" data-parent="#topicAccordion">
                                    <div class="card-body">
                                        <ul class="list-unstyled">
                                            <?php foreach($topic->lessons as $lesson) { ?>
                                                <?php echo LayoutHelper::render('course.content', array('contents'=>array($lesson, $this->item->price, $this->isAuthorised, 0))); ?>    
                                            <?php } ?>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        <?php } ?>
                    </div>
                <?php } else { ?>
                    <ul class="list-unstyled">
                        <?php foreach($this->item->lessons as $key => $lesson) { ?>
                            <?php echo LayoutHelper::render('course.content', array('contents'=>array($lesson, $this->item->price, $this->isAuthorised, 0))); ?>    
                        <?php } ?>
                    </ul>
                <?php } ?>
            </div>
        <?php } ?>

-Thanks

0
M
manruy
Accepted Answer
3 years ago #65741

It's ok now, thanks

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #65924

You are most welcome. Will you please spend some to write a review about our product and support quality? 

https://extensions.joomla.org/extension/sp-page-builder/

0