## Course formats: Onetopic format

format_onetopic
Maintained by 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.
6588 sites
119 fans
Moodle 3.3, 3.4, 3.5, 3.6, 3.7, 3.8

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

### Awards

• Sun, Feb 2, 2020, 2:49 AM
Hi @Blair F.

First, enable the option "Hidden sections are shown in collapsed form with available message": https://ibb.co/4pj74qr

Then, look at the tab bar (with access restrictions): https://ibb.co/t3X94R7

Click on information icon and see the restrictions: https://ibb.co/ystCbyS

(I need the HTML editor in comments to a best explanation :D :D)

Saludos
• Thu, Mar 19, 2020, 4:34 AM
Wanted to share a helpful Moodle forum conversation regarding this format and the "Topic Summary" : https://moodle.org/mod/forum/discuss.php?d=382080
• Tue, May 5, 2020, 7:56 PM
Hi
Is there a way to have direct link to sections that don't change each time the sections are reordered or a new subsection is added somewhere?
Default links refers to the number of the section... which changes when a new supsection is added.

Thanks for any help
François
• Wed, May 6, 2020, 3:15 AM
Hi Francois Parlant...

The only way possible is with the section number and the position. Not exists an id or something similar to identify the section in the navigation.

Saludos
• Mon, May 11, 2020, 8:21 PM
Hi David,
• Mon, May 11, 2020, 8:42 PM
Hi David,
Just created the improvement proposal for a permalink system in the bug tracker
https://github.com/davidherney/moodle-format_onetopic/issues/77
Maybe someone will vote / fund this issue
Cheers
François
• Wed, May 13, 2020, 10:40 PM
hi ! it's a great theme! Actually is used by many users !. congratulations!
Have a question... when you make the visualization mode of section 0 as "before the tabs" and then the user interact with tabs in the course it's load a page but not jump to the level of page where the tabs are located. How can i fix it? moodle 3.6
• Sun, Jun 14, 2020, 3:24 PM
Hi David,

James C answered on github with a nice trick for the links to sections not getting mixed up when a new sub section is added:
https://github.com/davidherney/moodle-format_onetopic/issues/77#issuecomment-643720617
• Fri, Jul 17, 2020, 11:01 PM
Hi,

I couldn't get the latest version to work with 3.9. After clicking Upgrade Moodle Database Now, I get the Upgrading to new version page but it just hangs. I have to delete the onetopic folder to get control of Moodle back. I have since tried the previous version 2016071402 and it seems to work fine. Thanks.
• Wed, Aug 5, 2020, 2:20 AM
Version san juan (2018010608) is mainly working for us on Moodle 3.9. There was a course using the format which yielded repeated "invalid parameter" errors. These seemed to go away after switching to another format.
• Fri, Aug 14, 2020, 1:26 AM
Hi, its possible if this plugin upgrade to 3.9 version?. Regards!
• Thu, Sep 24, 2020, 2:44 PM
I'm using OneTopic on Moodle 3.5.
Is there a way to move an activity from one topic to another without changing course format?
Best regards Per
• Thu, Sep 24, 2020, 3:55 PM
Hi Per, use the Tab Edition Utilities which is below your sections. On Asynchronous edit actions choose Disable. In that mode you will get arrow icons in front of all your activities. Click the one you want to move after which you get areas to drop to (within sections of to other sections) drop your activity and Enable Async edit actions again.
• Tue, Sep 29, 2020, 9:39 PM
Hi.
Is it possible to make a link to a section - permanent.
Right now if we make a link from course A to a section in course B. Then if a new section is added in course B, we have to go back in course A and change the link, because the sectionID has changed. - So linking between courses to sections is nearly impossible ( and something the teachers do a lot).
• 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:
"require_once($CFG->dirroot. '/course/format/topics/db/upgradelib.php');" to require_once($CFG->dirroot. '/course/format/topics/db/upgrade.php');