Moodle Plugins directory: Tabs | Moodle.org

Tabs
Filters ::: filter_tabs
Maintained by
José Puente Fuentes
Moodle filter which creates tabs in textfields
Latest release:
545 sites
91 downloads
67 fans
Current versions available: 11
This is a simple Moodle filter which creates tabs in textfields.
First, activate the filter_tabs plugin in Site Administration -> Plugins -> Filters -> Manage filters
To create tabs in textfields where the filter is activated, simply use the following syntax:
{%:Tab title}Tab text{%}
Example
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 |
| |
+---------------------------------+
Bootstrap 4, Bootstrap 2 and YUI theme styles are supported.
Contributors
José Puente Fuentes (Lead maintainer): Developer
Alexander Bias: Original maintainer
Stefan Lehneis: Initial Developer
Ulm University: Original maintainer
Please login to view contributors details and/or to contact them
Is there a way to add to each tab an activity or resource?
I want to add text to each tab and also some activity or resource that is relevant to this tab only.
Regards,
Ram
at the end, which I assume is causing this rendering problem, but I don't know why it has added these tags as it has.
I just retested it on version 3.11 and it works fine. Maybe it's something wrong with the text being passed to it or the theme you're using?
I am intrigued!, could you pass me the text that you are trying to render and the type of content in which you do it?
This only works if the tabbed display plugin is installed on the site
Again should add the headings at top of each tab for accessibility purposes
{%:Tab 1}
Tab 1 heading
Skeletal age (SA) is an indicator of biological maturation, the level of maturity of the bones of the hand and wrist (M Malina, Rogol, Cumming, Coelho-e-Silva, & Figueiredo, 2015). It is the most useful estimate of maturity status and can be used from childhood into late adolescence. It can also be used with current body height and mid-parent height to predict mature height, which is of interest in some sports (Bergeron et al., 2015).
Unfortunately, SA assessment and the single best maturational index is costly, requires specialized equipment and interpretation, and incurs radiation safety issues (Mirwald, Baxter-Jones, Bailey, & P Beunen, 2002) being the main reason why is not recommended by ITU.
{%}{%:Tab 2}
Tab 2 heading
Anthropometric variables include age (years), body mass (kg), stretch stature (cm), sitting height (cm), and the sum of 6 skin-folds (mm) (triceps, subscapular, supraspinale, abdominal, front thigh and medial calf), and has to be measured following the guidelines described by the International Society for the Advancement of Kinanthropometry (ISAK).
{%}{%:Tab 3}
Tab 3 heading
Monitoring peak weight velocity is an easy and active intervention that should be conducted approximately every six months. Coaches need to ensure that this phase is not missed and can be easily done by registering the athlete's mass on the Peak Weight Velocity tracking file.
Great care needs to be taken when measuring weight of athletes, as this can be a trigger to an unhealthy focus on weight and has in the past led to eating disorders and similar conditions in athletes. Therefore measuring athlete's weight should only be done with care.
{%}{%:Tab 4}
Tab 4 heading
The Age of Peak Height velocity (APHV) can be calculated using the maturity offset value through a simple and non-invasive method. The results are obtained through the Mirwald equation, helping coaches to predict what age the athlete will achieve PHV, and therefore, identify the child's stage of development. This method of calculating the maturity offset can be completed by measuring the anthropometric ratio of the body and the following info:
Gender
Date of Birth
Date of Measurement
Standing Height (cm)
Sitting Height (cm)
Weight (kg)
{%}
I have tried to reproduce the error with the same options that you indicate, but I have not been able to. I think it may be due to some content prior to the tabs not closing those a-type tags correctly, but I don't know for sure.
Regarding accessibility, in the next version I will add the aria-controls property to the tabs, but I don't know if that will fix the issue so that you don't have to add another header. I have tried with a screen reader and it seems to work. Could you add more things in terms of accessibility?
Thank you very much!
In Boost (moodle 4) it is no longer possible to format text or insert tables. Or is it just me?
Thanks for the feedback. This was a bug in the latest plugin update. I have uploaded a new version that corrects the bug and now it correctly displays html text.
I await your comment on whether it is already shown correctly.
Thank you very much!
Is this plugin maintained and will this work in moodle 4.5?
Bert
It works in Moodle 4.5+, but if you enable "debugging" several warnings appear.
Ricardo
edit the text_filter.php and add: namespace filter_tabs; ad the beginning. Then rename the class from class filter_tabs extends moodle_text_filter {... to class text_filter extends \moodle_text_filter {
last step, edit the settings.php and change at line 77 with this line $filtertabs = new \filter_tabs\text_filter($context, []); Remove the requirement at the beginning of the page to the filter.php