Activities ::: mod_klassenbuch
Maintained by DavoDavo Smith
Modified version of the book module, adding email subscriptions, structured entries, PDF export and autosaving.
Latest release:
44 sites
9 fans
Current versions available: 2

Klassenbuch module for Moodle (http://moodle.org/) - a modified version of the Book module for Moodle (http://moodle.org/) - Copyright (C) 2004-2011 Petr Skoda (http://skodak.org/)

The Klassenbuch module makes it easy to create multi-page resources with a book-like format. This module can be used to build complete book-like websites inside of your Moodle course.
This module was developed for Technical University of Liberec (Czech Republic). Many ideas and code were taken from other Moodle modules and Moodle itself

Differences from the book module:

  • Ability of students to subscribe to email updates about the book (sent out when the teacher clicks on the 'email' icon for a chapter).
  • Structure the content of each chapter using globally defined custom fields to define the sections within each chapter.
  • Treeview for the table of contents (to allow subchapters to be collapsed).
  • PDF export option.
  • Autosave during chapter creation, to avoid losing unfinished work.

Note about the PDF export.
If you want to include a logo on the export page, create a file called glogo.jpg and save it in mod/klassenbuch/tool/print/pix
(preferably 122x60 pixels). If you want to set the PDF's 'author' name and/or want to add a hyperlink to this logo, then copy
mod/klassenbuch/tool/print/pdfklassenbuch_details_dist.php to mod/klassenbuch/tool/print/pdfklassenbuch_details.php and edit
to set the details you want to use.

Created by:

  • Petr Skoda (skodak) - most of the coding & design
  • Mojmir Volf, Eloy Lafuente, Antonio Vicent and others
  • Klassenbuch changes by Davo Smith and Yair Spielmann of Synergy Learning, on behalf of The Goethe Institut.

Project page:


Intentionally omitted features:

  • more chapter levels - it would encourage teachers to write too much complex and long books, better use standard standalone HTML editor and import it as Resource. DocBook format is another suitable solution.
  • TOC hiding in normal view - instead use printer friendly view
  • detailed student tracking (postponed till officially supported)
  • export as zipped set of HTML pages - instead use browser command Save page as... in print view


  • No more development planned


Davo Smith (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Anthony Borrow
    Thu, Oct 10, 2013, 9:17 AM
    Davo - Many thanks for sharing this plugin. I'm not sure if we should be using German words for the names of addons. The activity module installs just fine. I wonder whether it is better to create a new activity module or to promote the features and provide patches for possible inclusion in core. Overall, things look fine. It would also be good if you could provide a URL for documentation. Let me give some thought to the name. Peace - Anthony
  • Davo
    Thu, Oct 10, 2013, 6:46 PM
    Anthony - the Goethe Institut who commissioned this plugin are already using it extensively across their site (and have been doing so for a number of years). I don't really think it is worth the risk of migrating them to a differently-named version. I'd also find it difficult to maintain if the 'public' version diverged from the internal version we have on their site. I suspect that if I did go to the trouble of renaming the public version, I wouldn't be able to keep it up to date with and fixes made to the internal version.

    Some of the changes might be suitable for merging back into the core version of the book module. Others (such as the use of global fields), really separate this out from the original, so should probably be in a separate module.
  • MD shot of me from his iphone4
    Thu, Oct 17, 2013, 1:10 PM
    Thanks for the reply Davo.

    I noticed the tool directory contains some subplugins too, in particular, the klassenbuch_teacherimport which doesn't seem to be in mod_book. Let me know if you'd like to distribute them separately (if at all).
  • Davo
    Thu, Oct 17, 2013, 6:54 PM
    I don't think the klassenbuch_teacherimport tool really makes much sense to distribute separately (especially as it would probably need a whole section to itself within the Moodle.org addons hierarchy). It also wouldn't be possible (without renaming it) to add it directly to a site as a 'book' tool.

    I'd prefer to leave it as it is.
  • Davo
    Thu, Nov 24, 2016, 4:52 AM
    All automated tests passing with Moodle 3.2 (after minor tweaks to the tests themselves)
  • Wed, Mar 15, 2017, 2:23 AM
    How can i translate this strings? Thanks a lot for this plugin.
    Import from HTML
    Print klassenbuch
    Print this chapter
    Import from another Klassenbuch
  • Davo
    Wed, Mar 15, 2017, 4:12 PM
    Those language strings are part of a couple of subplugins that come bundled as part of the Klassenbuch download. It looks like you can't translate them separately on lang.moodle.org - if you send me the translated files, I can add them to the download (mod/klassenbuch/tool/[subplugin]/lang/[language]/klassenbuchtool_[subplugin].php).

    Davo (moodle@davosmith.co.uk)
  • Wed, Mar 15, 2017, 11:24 PM
    Fatal error: Class 'textlib' not found in /moodle/mod/klassenbuch/tool/importhtml/locallib.php on line 256
    I found strings in AMOS
  • Thu, Mar 16, 2017, 5:52 AM
    Warning: require_once(/moodle/backup/lib.php): failed to open stream: No such file or directory in /moodle/mod/klassenbuch/tool/exportimscp/index.php on line 32
  • Davo
    Sat, Mar 18, 2017, 4:22 AM
    Dinis - thanks for the error reports. I'll try and take a look, but can't promise that I'll be able to fix immediately.
  • Sun, Mar 19, 2017, 4:22 AM
    OK. Thanks a lot.
  • Davo
    Thu, Mar 23, 2017, 4:37 AM
    Dinis - I've fixed the errors in the version on github ( https://github.com/synergylearning/moodle-mod_klassenbuch ) can you confirm that this version is now OK, before I update the version here?
  • Thu, Mar 23, 2017, 5:48 AM
    I tested and errors GONE.
    Another question: if the book as svg images and when you export to PDF, text don't appear, but when you print all is OK
Please login to post comments