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

Improvement: Allow the admin to hide the "Text & Media area" icon #583

Open abias opened 4 months ago

abias commented 4 months ago

As you know, with the new setting courseindexmodiconenabled, you can add the activity icons to the course index drawer.

Now, we had to see that teacher love to use the "Text & Media area" activity type which is shown by Boost core in the course index drawer nowadays as well.

Unfortunately, all of these "Text & Media area" activities get a icon in the course index drawer as well. But for this particular activity type, this does not make much sense as it is often used just for subheadings and small information chunks in the course:

grafik

As an ideal solution, the teacher should be able to configure each activity instance (regardless of its type) individually and decide if the activity icon should be shown in the course index drawer or not. But implementing this will be quite complicated. Thus, as an intermediate solution, implementing an admin setting which allows the admin to decide of "Text & Media area" icons should be shown or hidden in the course index drawer alltogether might make sense.

whuml commented 4 months ago

Thanks Alex for this Issue. We would appreciate if it would be possible to decide individually if the "Text & Media area" gets an entry in the couse index at all - "as it is often used just for subheadings and small information chunks in the course" We use the text field to position descriptions and images within a course or section. Similar to DTP tools. For this usecase the index entry disturbs more than it helps.

christianwolters commented 4 months ago

Hi,

just for the sake of discussing use case, i'd like to highlight this:

Text areas may be used with manual activity completion.

Thus, it may be feasible to implement it like this:

Cheers Christian

monnardj commented 2 months ago

In the meantime, you can add some CSS to hide the icon for text and media resources in the course index (and add a margin to the following text). Something like this should work :

.courseindex-cmicon-icon img[src*="label"] { display:none; }

.courseindex-cmicon-icon img[src*="label"] + span { margin-left:24px; }

Jacques

MURBASLMS commented 1 month ago

I think it would be good to have the option to not show text and media elements in the course index.

We've noticed an issue with boost_union in the sense that it shows these elements when not in edit mode, which is different from default boost behaviour (in mdl401, i'm using latest union 401) referenced in https://github.com/moodle-an-hochschulen/moodle-theme_boost_union/issues/637 - i notice that https://tracker.moodle.org/browse/MDL-77291 from 4.2 makes all text and media area elements appear in the course index by default.

It's a specific issue for us because we also use filter codes (and other filters) which doesn't seem to work properly with the course index output. The effect is exposing this to students in the course index.

In our case at least and i expect plenty of others, hiding the text and media elements from the course index would be the best option.

cheers