Course formats: Onetopic format

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.
3456 sites
37 fans

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


Information in:


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
  • Peter Jonker
    Thu, 19 Jan 2017, 6:36 PM
    We use your format very frequently so thanks for all the work! At the moment I am experiencing the same issue as Shalimar. The topics are showing as HTML code when using Moodle 3.2 with the Boost them. Would be very helpful if a new version with a fix could be added. Thanks again! Peter
  • Picture of Luis Alberto Ossa Nieto
    Fri, 20 Jan 2017, 12:51 AM

    I have detected a small problem with this version of onetopic for version 3.1.4+.

    description of the problem

    Context: Starting from a backup of a course made in the version of Moodle 2.7.3, then restoring it directly in the instance of Moodle 3.1.4, the course settings are configured to change the format of Theme to Format shape tabs Satisfactory.

    For this moment the tabs are already visible and active each in the visual presentation of the course.

    The problem is evident after editing any section or tab of the course (Select "Hide topic"). When selecting "Hide topic", the process is performed successfully by hiding the whole section or topic with their respective activities and resources, BUT when you want to re-activate the entire section or tab, the environment and the "Edit" link is blocked without allowing the Display and activate the "Activate theme" option.

    I hope someone can similarly test my case, starting from a backup and restoration of a course from one version to another in moodle and later editing the course's asjustes to change the format of Theme to Eyelashes. So in this way they will be able to evidence my approach and finding when a section or theme is hidden and then intended to be activated again.

    Thank you.
  • MoodleFreak
    Thu, 9 Feb 2017, 3:03 AM
    Hi, we made a tweak for a customer to let it work on Moodle 3.2


    We rebuild the tabs raw html to html with some extra javascript. Note: this is a workaround.
    A better solution would be to use `html_writer::` instead of `tabobject()`.
    The `tabobject` doesn't support raw html input in moodle 3.2+ anymore.

    I hope this helps.
  • que bueno que sabe el café colombiano...
    Fri, 10 Feb 2017, 5:03 AM
    Hi Luuk...

    It was fixed in Moodle directly by Stephen Bourget. You can check it in:

  • MoodleFreak
    Fri, 10 Feb 2017, 6:08 AM
    Nice, that they fixed it in the core of moodle. Then there is no need to change the tabobject anymore ;)

    Greets Luuk
  • Picture of Jorge Barchiesi
    Tue, 14 Feb 2017, 1:08 AM
    Hello, I have installed moodle 3.2.1+ and I need help to how to install the fix on this version of moodle.
    Greets Jorge.
  • Picture of David Dunn
    Fri, 17 Feb 2017, 12:50 AM
    Hi. Thanks for developing this very useful format. There is no News Forum by default, right? Was this intentional?

    - David
  • que bueno que sabe el café colombiano...
    Fri, 17 Feb 2017, 1:26 AM
    Hi David...

    Yes, It is intentional. The Onetopic format don't add the news block and this block "build" the News forum.

  • Picture of David Dunn
    Fri, 17 Feb 2017, 4:07 AM
    Got it. I prefer this default setting, with the ability to add a News Forum via the "Latest News" block.

    Thanks, David, from David wink
  • Picture of Tim Elder
    Mon, 27 Feb 2017, 11:09 AM
    Hi David,

    We love this format and have set it as our default for all new courses. Thanks heaps for making it.

    We're getting the same issue as Iñigo Zendegi Urzelai above (Section 0 is hidden with no means of changing it), and our server was updated to 3.1.3+ in December (from 2.8). The course that is encountering the issue (we have only had one course with the problem so far) was originally in Topics format (if that helps at all).

    Any idea what might be happening?

    Thanks again,

  • Picture of Greg Bird
    Wed, 22 Mar 2017, 5:38 AM
    OneTopic Format and "Coding error detected, it must be fixed by a programmer" error?

    I wonder if anyone in this community is also randomly receiving this error, when using oneTopic Format?

    Our Moodle host is hinting that it might be related to the OneTopic format:

    "..... At this point, they're thinking the most likely candidate is the OneTopic format as they can see evidence of it using session objects and heavily using the Page object, but can't conclusively demonstrate a link. ....."

    Thanks in advance, Greg
  • Picture of Kuriko A
    Fri, 24 Mar 2017, 7:39 AM
    Hi David, thanks for this excellent plugin! I just wanted to enquire about this line in the styles.css file:
    .format-onetopic .tab_content.marker {font-style: italic;}
    I don't really understand the purpose of italicising the font on one of the tabs, and from a design perspective, we prefer no italics on our webpages unless it's indicating a citation. So every time we upgrade, we have to comment out this line of code. So I guess I'm just wondering if it is essential and if there is any chance that it could be removed from future versions?
  • Picture of Kuriko A
    Fri, 24 Mar 2017, 7:43 AM
    Also, I noticed a minor error in the line: .format-onetopic ul.nav-tabs li a .tab_content.dimmed { color: #999; opactity: 0.5;}. It should be 'opacity', not 'opactity'.
  • Picture of Tom Surname
    Wed, 29 Mar 2017, 7:22 PM
    In moodle 3.1 the plugin is not routing the URL correct if you use certain themes. I'm using Edwiser RemUI.
    It also creates another id-number than the theme 'expects'.

    When i create a page it creates it in the theme folder /mod/page/view.php?id=100
    It needs to go to /course/view.php?id=48&section=1
  • Picture of Irith Herman
    Thu, 20 Apr 2017, 1:46 AM

    I use this course in many courses and it's really good.
    In one of the courses I wanted to delete one of the section and from that moment the component does not work for me in only in this course.
    I installed and removed the component that did not help, I added more section4 and it did not help
    The course is not shown at all in this configuration I get an error.
    in other course format It shows all the course

    This section does not exist
    More information about this error


1 2 3 4 5 6 7 8 9 10 11 12 13
Please login to post comments