Onetopic format

Course formats ::: format_onetopic
Maintained by que bueno que sabe el café colombiano...David Herney Bernal
Format to course that allows showing each topic in a tab, keeping the current tab between calls to resources, in such a way that when it returns from a module as the blog or the glossary it returns to tab from where you started. This format is based on the Moodle standard format: “Topics”. It accepts edition by AJAX.
Latest release:
7535 sites
124 fans
Current versions available: 14

Developed by: David Herney Bernal García - davidherney at gmail dot com


Information in:

Powered by:


Screenshot #0
Screenshot #1
Screenshot #2


que bueno que sabe el café colombiano...
David Herney Bernal (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Fri, Nov 27, 2020, 5:52 PM
    for everyone having issues installing or upgrading this plugin to Moodle 3.9 (and I think also 3.10!)

    the 3.8 version of the plugins has a requirement for "/course/format/topics/db/upgradelib.php"
    that file does not exist anymore in Moodle 3.9.

    so easiest thing to do is to open file:
    and change line 27 from
    "require_once($CFG->dirroot. '/course/format/topics/db/upgradelib.php');"
    require_once($CFG->dirroot. '/course/format/topics/db/upgrade.php');

    after doing so, the upgrade/ installation works just fine...
  • que bueno que sabe el café colombiano...
    Mon, Dec 28, 2020, 2:19 PM
    Hi everyone... Moodle 3.9+ and Moodle 3.10+ compatibility: Ready!

  • Sun, Jan 10, 2021, 7:26 AM
    Thank you, David. I appreciate the upgrade.
  • Tue, Feb 9, 2021, 8:28 PM
    Hi, excellent plugin! How to mass update the existing format in each course to the onetopic format? Regards.
  • que bueno que sabe el café colombiano...
    Wed, Feb 10, 2021, 1:36 PM
    Hi César...

    You can do it directly in the database, if you have access to it. Changing the "format" field in table "mdl_course" by "onetopic"... and reset platform cache.

    Note: Not change the "site" value in the site course.

  • Thu, Feb 11, 2021, 5:38 AM
    Well, David. In case I want to change the format settings as well, should I consider only the 5 fields stored in mdl_course_format_options? Or do we have to consider other details? Gracias.
  • que bueno que sabe el café colombiano...
    Thu, Feb 11, 2021, 8:58 AM
    Hola Cesar...

    The fields stored in mdl_course_format_options are the only format setting.

  • Thu, Feb 11, 2021, 10:27 PM
    Gracias David.
    I have updated more than 1000 existing courses to the onetopic format via SQL and so far they look correct to me. My mistake was not saving the SQL query used.
  • Sat, Feb 13, 2021, 9:59 PM
    Hi David,

    Are there any plans to show progress indicators? We thought it would have been a good one if we could let the learners know which topics they have started, progressing and completed (perhaps as a traffic light system or as a percentage) in the tab heading itself so at a glance one could know which topic they need to pay more attention. Hope this makes sense.
  • Thu, Feb 25, 2021, 3:24 AM
    Hello David Herney Bernal García, could you help me to know if the plugin store the page that user is viewed? because if i fresh the page o if i logged out and then logged in, the page redirect to the last page that user was viewed.

  • que bueno que sabe el café colombiano...
    Thu, Feb 25, 2021, 8:17 AM
    Hi Ivan..

    The format save the current page in session. If you logout it won't be saved.

  • Tue, Apr 13, 2021, 1:09 AM
    Hello David
    Can we use it with topics collected inside each tab?
  • que bueno que sabe el café colombiano...
    Tue, Apr 13, 2021, 2:26 AM
    Hi @Bruno...

    I don't understand, What is "topics collected"?

  • Wed, Apr 28, 2021, 3:49 PM
    I would like to remove the anchor #tabs-tree-start in the link to the tab (https://.../course/view.php?id=2235&section=10#tabs-tree-start). Is that possible?
    BR. Per
  • que bueno que sabe el café colombiano...
    Thu, Apr 29, 2021, 6:17 AM
    Hi @Per...

    You can remove it in the code, It is not controlled by configuration or other related.

Please login to post comments