moodle-an-hochschulen / moodle-theme_boost_union

Theme Boost Union is an enhanced child theme of Boost which is intended, on the one hand, to make Boost simply more configurable and, on the other hand, to provide helpful additional features for the daily Moodle operation of admins, teachers and students.
GNU General Public License v3.0
55 stars 49 forks source link

Feature: Shorten breadcrumbs texts #574

Open stdoma opened 4 months ago

stdoma commented 4 months ago

user story As a user, I want breadcrumb navigation that is always presented consistently and is manageable.

Problem It can happen or be necessary for the course areas to have long names. When course areas are nested, the breadcrumb navigation can become quite long. The navigation can extend over several display lines. With large screens the problem is not particularly relevant. Small screens tend to be more noticeable.

Solution It would be helpful if there was a function that allows you to define texts that are replaced by another text. This could be supported with different help functions (RegEx etc.). A simple search and replace should be enough. There are already settings for the breadcrumbs. You could put the text box there.

Example I customized the breadcrumbs file (boostnavbar.php) to achieve this behavior: breadcrumb

stdoma commented 4 months ago

Alternatively, you could also display the IDs of the course areas. The choice of text could be solved with a checkbox in the breadcrumbs settings.