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.
You can use CSS selectors and set special styles in your theme. The child tabs are the seconds in the container ".single-section.onetopic". Use something like that to indent the child tabs or you can change the color or whatever you wish:
@media (max-width:480px) {
.single-section.onetopic .nav.nav-tabs:nth-child(2) {
margin-left: 20px;
}
}
Saludos
you can add a new tab, move it after to the tab 1 and set it as child. You don't need change between formats.
Note: To move a tab, you can use the features in page bottom when the edition mode is active.
Saludos
Parent tab 1
child tab 1
child tab 2
Parent tab 2
Child tab 3
After this is all setup, is it possible to add another child tab under parent tab 1 without undoing the structure?
Right now, I am changing back to topic format. Getting tabs all in right order, adding block after child tab 2, going back to onetopic format, then going in and changing all child tabs back into child tabs.
Not a big deal with two parent tabs and three/four child tabs. Inconvenient with 10 parents and 30 child tabs.
Great format!
Do you konow when is the version for moodle 3.4 coming ?
Thanks you very much !!
It is not a bug. The name to the first tab (index) is seted in parent tab, not in child tab.
Saludos
The only issue (which has been the same through many versions) is when making a tab the child of a previous tab there is an option to input the "text of the first tab in sublevel". It never works for me as it always defaults to "Index" even if I add in different text but its easy to edit the section title.
I couldn't reproduce the error. Maybe, you did paste a table with html errors, could be?
Can you send more information? Moodle and Onetopic versión, print screens or something else. You can use the official issues page: https://github.com/davidherney/moodle-format_onetopic/issues
Thanks
Saludos
It appears that if a person selects the One Topic format, the edit link for the tab gets disabled if you add a table to the section's Summary box and the tab's visibility is set to "hide". If you change the format to another format, like Collapsed Topics, the edit link is clickable again and you can edit the section. However, once you go back to One Topic, the edit link is no longer "clickable" anymore when the tab is hidden. My hope that this is a minor bug and can be easily fixed in a future update.
Thank you,
Denise
Efectly, the error was fixed in the 2018010601 release. Please, test and inform if work fine to you. I need more comments in order to change the version state to "Release candidate".
Saludos
Just wanted to let you know I tried the version you have published this evening ((2018010601) on a test enviroment and I had no issues with the installation. I will try it out tomorrow on the live enviorment. Thank you so much for you time and effort on this format. Really appricate it.
Gemma
Thank you for publishing a new version for Moodle 3.3
During the upgrade proces we got the following error
Exception - Call to undefined function format_topics_upgrade_hide_extra_sections()
Debug info:
Error code: generalexceptionmessage
Stack trace:
line 72 of /course/format/onetopic/db/upgradelib.php: Error thrown
line 41 of /course/format/onetopic/db/upgrade.php: call to format_onetopic_upgrade_remove_numsections()
line 564 of /lib/upgradelib.php: call to xmldb_format_onetopic_upgrade()
line 1754 of /lib/upgradelib.php: call to upgrade_plugins()
line 699 of /admin/index.php: call to upgrade_noncore()
I published a new version, to moodle 3.3+ by now.
Please, help me testing because the version change some core functionalities:
- Supports "stealth" activities mode
- Option "Number of sections" (numsections) was removed according to the core formats proposal
- Enhancement support to boost theme
Saludos
When will the version for 3.3 be released? Thanks.
Thanks for that! Some news about version for 3.3 or 3.4?