<< Back
Message for this thread
Posted by Messages text
Best Bronwyn

Noavatar
Total post : 20
> Profile
Written on : 24/11/2010 06:00 ( more than one month )
Object : Changing the order of tabs in the My Courses screen
Hi,

we are using Docebo 4.0.2 and would like to change the order of the tabs in the My Courses screen to the following order:

Curricula, elearning, classroom

we've managed to change the order of the tabs and it works fine. the only problem is that the 'elearning' tab is always the "selected" tab. Are you able to lett us where is the code that sets this? is it possible to make the curricula tab not only the first tab but also the selected one?

any advice would be greatly appreciated

many thanks
 
Derks Giovanni

Avatar
Total post : 1861
> Profile
Written on : 24/11/2010 18:16 ( more than one month )
Object : Re: Changing the order of tabs in the My Courses screen
Hello,
how did you done that? You should had edited the file widget/lms_tab/views 

bye,
Giovanni. 

Docebo Staff
 - Docebo 4 released! -

 
Best Bronwyn

Noavatar
Total post : 20
> Profile
Written on : 25/11/2010 01:49 ( more than one month )
Object : Re: Changing the order of tabs in the My Courses screen
Yes, I edited the widget/lms_tab/views/lms_tab.php file. and the order has been changed but the elearning tab is always the default selected.. how do we make the curricula tab the default selected option?

Ive included a screen shot.
Also when we turn off the elearning menu, no tabs are set as the default selected?

my courses menu
many thanks in advance
 
Derks Giovanni

Avatar
Total post : 1861
> Profile
Written on : 26/11/2010 18:19 ( more than one month )
Object : Re: Changing the order of tabs in the My Courses screen
Hello,
could you post here the first 15-20 lines of your widget/lms_tab/views/lms_tab.php file? Thanks.

bye,
Giovanni. 

Docebo Staff
 - Docebo 4 released! -

 
Best Bronwyn

Noavatar
Total post : 20
> Profile
Written on : 27/11/2010 05:48 ( more than one month )
Object : Re: Changing the order of tabs in the My Courses screen
No problem, here it is

<div id="middlearea" class="yui-navset">
    <ul class="yui-nav">
<!-- BB 23112010 change order of tabs in main LMS screen -->
        <?php if($this->isActive('coursepath')) : ?>
        <li<?php echo $this->selected('coursepath'); ?>>
        <a href="index.php?r=coursepath/show"><em><?php echo Lang::t('_COURSEPATH', 'coursepath'); ?></em><?php echo ( $coursepath ? '<b>'.$coursepath.'</b>' : '' ); ?></a></li>
        <?php endif; ?>

        <?php if($this->isActive('elearning')) : ?>
        <li<?php echo $this->selected('elearning'); ?>>
            <a href="index.php?r=lms/elearning/show"><em><?php echo Lang::t('_ELEARNING', 'middlearea'); ?></em><?php echo ( $elearning ? '<b>'.$elearning.'</b>' : '' ); ?></a></li>
        <?php endif; ?>

        <?php if($this->isActive('classroom')) : ?>
        <li<?php echo $this->selected('classroom'); ?>>
            <a href="index.php?r=lms/classroom/show"><em><?php echo Lang::t('_CLASSROOM', 'middlearea'); ?></em><?php echo ( $classroom ? '<b>'.$classroom.'</b>' : '' ); ?></a></li>
        <?php endif; ?>

        <?php if($this->isActive('catalog')) : ?>
        <li<?php echo $this->selected('catalog'); ?>>
            <a href="index.php?r=lms/catalog/show"><em><?php echo Lang::t('_CATALOGUE', 'middlearea'); ?></em><?php echo ( $catalog ? '<b>'.$catalog.'</b>' : '' ); ?></a></li>
        <?php endif; ?>

        <?php if($this->isActive('assessment')) : ?>
        <li<?php echo $this->selected('assessment'); ?>>
            <a href="index.php?r=lms/assessment/show"><em><?php echo Lang::t('_ASSESSMENT', 'menu'); ?></em><?php echo ( $assessment ? '<b>'.$assessment.'</b>' : '' ); ?></a></li>
        <?php endif; ?>

<!-- BB 23112010 change order of tabs in main LMS screen - move to front -->
<!--        <?php if($this->isActive('coursepath')) : ?>
        <li<?php echo $this->selected('coursepath'); ?>>
            <a href="index.php?r=lms/coursepath/show"><em><?php echo Lang::t('_COURSEPATH', 'coursepath'); ?></em><?php echo ( $coursepath ? '<b>'.$coursepath.'</b>' : '' ); ?></a></li>
        <?php endif; ?>
-->
        <?php if($this->isActive('games')) : ?>
        <li<?php echo $this->selected('games'); ?>>
            <a href="index.php?r=lms/games/show"><em><?php echo Lang::t('_CONTEST', 'middlearea'); ?></em><?php echo ( $games ? '<b>'.$games.'</b>' : '' ); ?></a></li>
        <?php endif; ?>
 
Derks Giovanni

Avatar
Total post : 1861
> Profile
Written on : 30/11/2010 17:35 ( more than one month )
Object : Re: Changing the order of tabs in the My Courses screen
Hello,
thanks, your changes are correct but you should also edit the file /base.php changing:

define( '_after_login_', 'lms/elearning/show' );

to:

define( '_after_login_', 'lms/coursepath/show' );

bye,
Giovanni. 

Docebo Staff
 - Docebo 4 released! -

 
Best Bronwyn

Noavatar
Total post : 20
> Profile
Written on : 01/12/2010 00:37 ( more than one month )
Object : Re: Changing the order of tabs in the My Courses screen
Thank you so much! working perfectly now
 
Meher Ajay

Avatar
Total post : 7
> Profile
Written on : 27/12/2010 11:40 ( more than one month )
Object : Re: Changing the order of tabs in the My Courses screen
In my case, I have not made any changes, but when a user logs in, instead of seeing the Elearning, he sees the Course catalogue tab, and it is highlighted by default.

The URl shown is ... lms/doceboLms/index.php?r=lms/catalog/show

In base.php it is like this:

/** other nice setting */
define( '_after_login_', 'lms/elearning/show' );
Web Design India

Internet Tips and Apps review
 
Derks Giovanni

Avatar
Total post : 1861
> Profile
Written on : 27/12/2010 16:44 ( more than one month )
Object : Re: Changing the order of tabs in the My Courses screen
Hello,
make sure that the option "show the catalog if no courses are available for the users" (or something similar) is unchecked from the settings.

bye,
Giovanni. 

Docebo Staff
 - Docebo 4 released! -

 
Van den Bunder Carlo

Noavatar
Total post : 2
> Profile
Written on : 13/01/2012 14:53 ( more than one month )
Object : Re: Changing the order of tabs in the My Courses screen
Hello,

I have a similar problem.

How can I change the link of  "my courses"?
When a user clicks on this, he should see the classroom courses instead of the e-learning courses.

thx
 
<< Back