BOOST - Remove items from drawer on the left.

BOOST - Remove items from drawer on the left.

by Gabri Z -
Number of replies: 8

Hi, I'm asked to hide various items from the Drawer on the left:

-Calendar (I've disabled all items related to calendar from the role settings for both the Autenticated User and Student , but the item in the drawer is still visible)
-Personal FIles - DONE (disabled personal files from the Autenticated User and Student settings and the item doesn't show anymore)

From The Drawer once the Student enters a course:
-Partecipants - DONE (there's a checkbox  in role settings for Student)
-COMPETENCY / SKILLS (? not sure, translating back from italian) - I have removed all "badge related options for both Autenticated User and Student but the menu item is still visible)
-GRADES  (same as above: disabled checkboxes, but stil visible in drawer on the left)

Sadly, these items don't have an unique id, otherwise I'd be fine with removing them via CSS


Also, I hope I have not unchecked any item in User and Student roles I will need later. There's a way to reset these to default?


Thanks!

Average of ratings: -
In reply to Gabri Z

Re: BOOST - Remove items from drawer on the left.

by Anthony Rimmer -
Hi Gabri,

If we are talking about just hiding buttons with CSS, you can perhaps use the data-key attribute. 

For example:
#nav-drawer a[data-key="grades"] {
display:none;
}

Of course this means the buttons will be hidden for all users.

Average of ratings: Useful (1)
In reply to Anthony Rimmer

Ri: Re: BOOST - Remove items from drawer on the left.

by Gabri Z -
Thank you, I'll try this.
In reply to Gabri Z

Re: Ri: Re: BOOST - Remove items from drawer on the left.

by Randy Thornton -
Picture of Documentation writers
I use the Boost navigation fumbling plugin to do this. In addition to removing items, it let's you add new custom menu items and collapse certain items like the course sections list. https://moodle.org/plugins/local_boostnavigation
Average of ratings: Useful (1)
In reply to Randy Thornton

Ri: Re: Ri: Re: BOOST - Remove items from drawer on the left.

by Gabri Z -
Worked like a charm. Thank you.
In reply to Randy Thornton

Re: Ri: Re: BOOST - Remove items from drawer on the left.

by suzanne harris -
Are you using the Boost navigation fumbling plugin with Moodle 4?
There does not seem to be a Moodle 4 version of it.
In reply to suzanne harris

Ri: Re: Ri: Re: BOOST - Remove items from drawer on the left.

by Gabri Z -
Yes, it works, even if only in a text block.
Average of ratings: Useful (1)
In reply to Gabri Z

Re: Ri: Re: Ri: Re: BOOST - Remove items from drawer on the left.

by suzanne harris -

That is great to know.

Thanks for your reply.

In reply to suzanne harris

Re: Ri: Re: BOOST - Remove items from drawer on the left.

by Gerald Grow -
I have also not found a version of Boost Navigation Fumbling for Moodle 4.

In Moodle 4, Boost seems to have lost its navigation drawer that was on the left. As far as I can tell, it's just gone now, and I can't find a way to list admin links.