Removing 'Site pages' and 'My Profile'

Removing 'Site pages' and 'My Profile'

by Barrett Bristowe -
Number of replies: 3

Simple question, I need to remove 'Site pages' and 'My profile' in the Navigation menu below. Is this possible?

 

I'm using Moodle 2.4.1

 

Cheers,

Barrett

Average of ratings: -
In reply to Barrett Bristowe

Re: Removing 'Site pages' and 'My Profile'

by Luk De Clerck -

Fair question. I have the same request to be able to hide certain elements in the navigation structure.  Main reason is to simplify the navigation block.

Hiding an element in the menusstructure is not the same as not being able to access it completely.

For instance a user can have the rights to use Forum (on a course level) but under the My Profile you would like to hide the element Forum Post

I have been looking into Site Administration / users / Permissions / Role but this is more to define wether or not a user can access/work with the item or not.

The / lib / navigationlib.php holds the programming for the html output but I do not find my way around it.  

// Luk

In reply to Barrett Bristowe

Re: Removing 'Site pages' and 'My Profile'

by Christian Herman -

I can't take credit for this solution but it can be found elsewhere in the forums by searching. *ahem* In the Custom CSS field in your theme settings, add these lines:

/* Remove "Site pages" */
.block_navigation .type_course.depth_2 { display: none; }

/* Remove "My profile" */
.block_navigation .type_user.depth_2 { display: none; }