Onetopic format icon

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".
Price option: Free

Supports Moodle 2.0-5.1 See all versions
Latest release: 3 months ago
Installations: 10409
Downloads (last 90 days): 2283

Frankenstyle name: format_onetopic
Course formats

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

Hi,
Multi-language filter doesn't work in topic titles. User can see span tags as-is.
How can I user multi-lang filter for topic titles of Onetopic Format?
Regards,
Toshimi
Hi,
I've installed the course format, I've been trying to make the changes above so that the tabs don't overlap. Most of the themes don't display the tabs correctly.
In particular I'm trying to modify the Nimble theme.
Which style sheet should I add the above .tabtree lines to;
core.ss
menu.css
pagelayout.css
They are my three options within the Nimble theme style folder.
Thanks
Steve
Hi David and Toshimi
Great! Thank you, it works!
Best regards
Yvonne
Hello Yvonne...
I added the following css in my theme css. The tabs are not over wrapped between multiple rows.
.tabtree li a{
line-height:33px;
}
.tabtree ul{
height:26px;
}
Hello Yvonne...
the tabs style is general in moodle and depend of the current theme. In order to change this is need change the styles in the course theme or site theme.
Technically, the change is in the CSS class: "tabtree".
Regards
Hello David
Thanks for the format, it's really very useful!
Just a question. How can I change the height of the tabs? Now I've got two rows and the second row is placed on top of the first row and this makes it difficult to see the tabs in the first row or to click on them.
Thanks!
Yvonne van Lingen
Hi Hartmut...
the function used to print the tabs is a moodle function and there don't have a way to assign an style in a specific tab. Is posible assign a style in the font with a little change in the code but not is possible assign the style in the tab box. If you can change the code in the format, change you the line 114 by the next code:
$marker_topic_style = $course->marker == $section ? "current" : "";
$tabs[] = new tabobject("tab_topic_" . $section, $CFG->wwwroot.'/course/view.php?id='.$course->id . '&topic='.$section,
'' . s($sectionname) . "", s($sectionname));
You can assign other css class in the text "current". Also, you can change the style with css using:
.tabtree .current {
...
}
About the light bulb and the eye, They are visibles in topics differents to "cero", in the right side. The up and down arrows aren't visible because not is possible moving topics in this format.
Regards
Hi David,
Thanks a lot for the Onetopic course format and thank you for sharing your work. Installation in Moodle 2.0.3 went without any problems. In my view this course format will greatly help to reduce the “scroll of death” in courses with many topics. At the moment I have one observation and one question.
Observation: In edit mode, I don’t see the light bulb nor the up and down arrows for moving a topic nor the eye for making it visible or invisible.
Question: Is it possible to highlight the tab of the topic (e.g., different background color) that the teacher has selected with the light bulb?
With kind regards,
Hartmut