Picture of Robert Drew Jeffrey
How to remove duration number and bar from content objects
by Robert Drew Jeffrey - Monday, 9 June 2014, 4:35 PM
 

Hi all,

I want to know if its possible to remove the duration number and completion bar from content objects, as its not really applicable for what i am doing.

Thanks,

Rob


:)

Picture of Himanshu Rajotia
Re: How to remove duration number and bar from content objects
by Himanshu Rajotia - Tuesday, 10 June 2014, 5:22 AM
 

hey Robert Drew Jeffrey,

 

yeah it's possible and for this you have to change following files:

 

1) src\menu\adapt-contrib-boxMenu\templates\boxmenu-item.hbs

here, remove the below code:

<span class="menu-item-duration">Duration: {{{duration}}}</span>


<div class="menu-item-progress">
    <div class="menu-item-progress-indicator">
        <div class="menu-item-progress-indicator-bar" style="height:{{completedChildrenAsPercentage}}%;"></div>
    </div>
</div>

 

Note: this will actually removes the menu-progress-bar and duration from course menu and below two steps are optional.

 

2) src\menu\adapt-contrib-boxMenu\less\boxmenu.less

here, you should remove all the irrelevant classes which was previously removed in hbs.

 e.g. .menu-item-duration, .menu-item-progress etc

 

3) src\course\en\contentObjects.json

here, you should remove the below json entries.

"linkText":"View",
"duration":"2 mins"

 

and that's all.

 

Thanks,

Himanshu

Picture of Robert Drew Jeffrey
Re: How to remove duration number and bar from content objects
by Robert Drew Jeffrey - Tuesday, 10 June 2014, 12:37 PM
 

Thankyou so much!

 

Very helpful :)