Onetopic format
Maintained by
David Herney
Course format 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".
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
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.
oops!
The fields stored in mdl_course_format_options are the only format setting.
Saludos
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.
Saludos
Saludos
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:
"course/format/onetopic/db/upgradelib.php"
and change line 27 from
"require_once($CFG->dirroot. '/course/format/topics/db/upgradelib.php');"
to
require_once($CFG->dirroot. '/course/format/topics/db/upgrade.php');
after doing so, the upgrade/ installation works just fine...
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).
Is there a way to move an activity from one topic to another without changing course format?
Best regards Per
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.
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