How to eliminate the TOC word in an IMS package

How to eliminate the TOC word in an IMS package

by luis miguel burgos sánchez -
Number of replies: 5

Hi !!

i have to eliminate the TOC word when i export my content to an IMS package.

I edited this files:


  • lib/tcpdf/tcpdf.php
  • mod/imscp/lang/en/imscp.php
  • mod/scorm/lang/en/scorm.php

And delete TOC entry ( i put  '  '   instead of 'TOC' in some lines, but continues appears )

i adjunted png image

Can you help me?   smile

Thank you!


Attachment toc2.png
Average of ratings: -
In reply to luis miguel burgos sánchez

Re: How to eliminate the TOC word in an IMS package

by S. kavita -
Picture of Testers

Hi,

Do you want to delete the heading as "TOC" or you want to remove the whole TOC not to display.

If you want to remove the 'TOC' word then your way is correct:

moodle directory/mod/imscp/lang/en - $string['toc'] = 'TOC'; to $string['toc'] = '';

and if you do not want to show the entire table of content then in ims settings screen - Appearance>"Display course structure on entry page to 'No' and Display course structure on Player to 'Hidden' and click on save changes button


Hope this will help you out


In reply to S. kavita

Re: How to eliminate the TOC word in an IMS package

by luis miguel burgos sánchez -

Thank you very much!  smile

im getting fool   :S  , i had changes in the line codes where appear the "TOC" word, and y fill in with 3 blank spaces , but continues being visible , and now appears toc ( like the attachment image)

In firefox i have inspected the HTML code and is generated a <h2> header with the TOC or toc word , but i dont know  where is generated this  dynanic code, maybe in a js  ...


Attachment ims toc.png
In reply to S. kavita

Re: How to eliminate the TOC word in an IMS package

by luis miguel burgos sánchez -

Hi again!

At the end i achieve to eliminate the word!!

The problem was that the languaje in my moodle plattaform is Spanish( ES) , i changed the option -->Force languaje to English, and the TOC word desappear instantly.In the structure mod/imscp/lang/en  is the file php i modified, 

but my question id ,    If there any folder for spanich configuration? like mod/imscp/lang/es   ??

maybe create the ES folder manually, and make a copy / paste of EN folder?


Attachment arbol moodle.png
In reply to luis miguel burgos sánchez

Re: How to eliminate the TOC word in an IMS package

by Colin Fraser -
Picture of Documentation writers Picture of Testers

I don't know if this will work but go to: 

Site Admin > Language > Language Customization*  select your default language pack and load it. The component files you are looking for are imscp.php and scorm.php. Search for the TOC string in "Find strings". In those files you will find something that looks like this: 

Editing the Language Pack 2

++++++++++++++other entries +++++++++

Editing the Language Pack 

Mine's in English but yours is likely to be in Spanish but I wouldn't know. I suspect that the text is being drawn from either the mod_scorm.php file or the mod_imscp.php file. Be careful here you don't want to change too many things. You can change the text in the editing box on the right. Just enter three spaces, that might do it. Or once you know where to look, replace the string with III or SSS, this should let you know which one is the one you are looking for, if it is going to work, and edit accordingly.  

*The link above opens in a new window. 

In reply to Colin Fraser

Re: How to eliminate the TOC word in an IMS package

by luis miguel burgos sánchez -

Thank you!!

I cant access to the menu image you send me.

And the files you told me are mod_scorm.php ,  mod_imscp.php  or scorm.php , imscp.php

i have changed   scorm.php , imscp.php  lines

i replaced with 3 blank spaces but the output is : toc 

This is getting worse smile)

Thank you!