Filters ::: filter_tabs
Maintained by José Puente Fuentes
Moodle filter which creates tabs in textfields

Tabs 2.8 (Build: 2015012300)

Moodle 2.8
Released: Saturday, January 24, 2015, 5:49 AM


Moodle filter which creates tabs in textfields


This plugin requires Moodle 2.8+


  • 2015-01-23 - Check compatibility for Moodle 2.8, no functionality change
  • 2015-01-23 - Bugfix: Bootstrap tabs interfered custom menu; the filter now loads only bootstrap-tabs.js and not the complete bootstrap.js library anymore
  • 2014-10-26 - Change the tabgroup counter from a random number to a static counter for performance reasons
  • 2014-08-29 - Update README file
  • 2014-08-22 - Add support for Bootstrap tabs (experimental)
  • 2014-06-30 - Check compatibility for Moodle 2.7, no functionality change
  • 2014-01-31 - Check compatibility for Moodle 2.6, no functionality change
  • 2013-07-30 - Transfer Github repository from to; Please update your Git paths if necessary
  • 2013-07-30 - Check compatibility for Moodle 2.5, no functionality change
  • 2013-03-18 - Small code improvement, Code cleanup according to moodle codechecker
  • 2013-02-18 - Check compatibility for Moodle 2.4
  • 2012-12-20 - Add missing pluginname zu language file
  • 2012-11-27 - Initial version


Install the plugin like any other plugin to folder /filter/tabs

See for details on installing Moodle plugins


First, activate the filter_tabs plugin in Site Administration -> Plugins -> Filters -> Manage filters

To create tabs in textfields, use the following syntax: {%:Tab title}Tab text{%}


The following placeholders in a textfield:

{%:First tab}Some text{%} {%:Second tab}Another text{%}

will produce this tab group:

+-----------+------------+ | First tab | Second tab | +------------------------+-------------------------+ | Some text | | | +--------------------------------------------------+


When you install filter_tabs with its default settings, it will replace the tab syntax with tabs provided by the YUI JavaScript library which has been used in Moodle for a long time.

From the Moodle 2.7 version of this plugin on, you can also let the filter replace the tab syntax with tabs provided by the Bootstrap framework which is present in Moodle since Moodle 2.5. Bootstrap tabs conform to modern Bootstrap based themes much better than YUI tabs.

To make use of this advanced feature, please visit Plugins -> Filters -> Tabs. There you can enable Bootstrap tabs.

WARNING: As the Bootstrap framework is based on jQuery, but was transformed to YUI for the use in Moodle by Moodle core developers, there is no native support for tabs in Moodle's Bootstrap implementation. To make use of Bootstrap tabs, this filter additionally loads jQuery and the original Bootstrap jQuery plugin. This may lead to some unexpected slowdown of the pages rendered by Moodle. Please use this feature only if you understand what happens under the hood.


filter_tabs should work with all themes from moodle core.

filter_tabs' Bootstrap tabs work only with Bootstrap based themes.

filter_tabs provides a fallback for browsers with JavaScript disabled.

Further information

filter_tabs is found in the Moodle Plugins repository:

Report a bug or suggest an improvement:

Moodle release support

Due to limited ressources, filter_tabs is only maintained for the most recent major release of Moodle. However, previous versions of this plugin which work in legacy major releases of Moodle are still available as-is without any further updates in the Moodle Plugins repository.

There may be several weeks after a new major release of Moodle has been published until we can do a compatibility check and fix problems if necessary. If you encounter problems with a new major release of Moodle - or can confirm that filter_tabs still works with a new major relase - please let us know on

Right-to-left support

This plugin has not been tested with Moodle's support for right-to-left (RTL) languages. If you want to use this plugin with a RTL language and it doesn't work as-is, you are free to send me a pull request on github with modifications.


University of Regensburg Stefan Lehneis

University of Ulm kiz - Media Department Team Web & Teaching Support Alexander Bias

Version information

Version build number
Version release name
2.8 (Build: 2015012300)
Can be updated from
2.7 (Build: 2015012300) (2014051203)
Can be updated to
2.9 (Build: 2015083101)
Stable version
MD5 Sum
Supported software
Moodle 2.8
  • Latest release for Moodle 2.8

Version control information

Version control system (VCS)
VCS repository URL

Default installation instructions for plugins of the type Filters

  1. Make sure you have all the required versions.
  2. Download and unpack the filter plugin.
  3. Place the folder (eg "myfilter") in the "filter" subdirectory.
  4. Visit to finish the installation