Search This Blog

Wednesday, December 19, 2012

Stop the navigation block from expanding


If you want to stop the navigation from automatically expanding everything you click a course, this is the code you need to change:

1) Go to:  blocks\navigation in your root moddle directory
2)  open renderer.php file
and change this line
if ($item->has_children() && (!$item->forceopen || $item->collapse)) {
to this
if ($item->has_children() && ($depth > 1)) {


No comments:

Post a Comment