I know this has been discussed at length before.... but the breadcrumb trail as it currently stands is causing some problems with my users.
I know the reasons for having it as it currently stands; that it supposedly groups similar activities together to encourage exploration, but, from a learner's point of view, the fact that there is a bunch of SCORMs or a bunch of Lessons, or even a bunch of Forums is not really particularly relevant. And it can be quite confusing. I'm forever being asked by people, "OK, where do I go now?", as the breadcrumb trail bears little relation to where they think they've come from. The users I'm talking about are intelligent, IT-literate adults, who perhaps aren't well versed in the theories of social constructivism...
Here's a possible solution. I don't know how easy it would be to integrate into Moodle as it stands as I'm no PHP programmer, but I'm sure someone will tell me.
I suggest we offer site administrators two possible breadcrumb trails:
1) The "traditional":
Home Page > Course Home Page > Activity/Resource type > Activity/Resource name > Activity/Resource sub area
2) A new type:
Home Page > Category > Sub-category > Course Home Page > Topic/Week > Activity/Resource name > Activity/Resource sub area
This could be configured via a variable in the Admin > Variables page.
If the Topic link could include the word "Topic" as well as the topic number so much the better (since we don't yet have names for topics).
How feasible is this? I realise it's a change to the core rather than just a module, so potentially has wider implications...
Thanks,
Mark
Another solution is to just hide the thing all together and make your Homelink really large.
Using a menu system like xtree, you can get to any resource from the block or maximize a topic from the left menu. IMO an ideal next step is to make the left menu persistent in most modules so it doesn't suddenly dissappear on the users (they hate that).
See http://cdc.humboldt.edu/moodletest/moodlebeta2, login as guest, for an example of our new xtree based course menu.
When I get a chance I'm going to see if these parameters can be set in the config file, but it will be a few weeks before I can get to that.
Forgive my late addition to this thread. I saw Michael's Xtree navigation and would love to find out where to get this or how to do this .... Can anyone help me please?
That's easy. Edit your current theme's header.html file, locate and remove this line (example given for Moodle 1.8):
<div class="breadcrumb"><?php print_navigation("$navigation"); ?></div>
However, this will really make navigation through your Moodle courses difficult. Are you absolutely certain you want to do this?
Joseph
Most efficient thing to do in the meantime might be just to educate your users ...
Otherwise someone might want to come up with a interim hack for print_navigation that tries to derive extra data from the environment.
I hadn't realised how pervasive a change it would require.
I'm not sure how serious you were about educating my users? IMO I would say that such a central aspect of a system as navigation ought not to require any educating of the users. It should be self-explanatory. There's always the opportunity later for teachers/course admins to add extra elements like the activities block to facilitate further exploration.
I do agree with Michael's point about losing navigation cues when you enter a module. Perhaps, now that modules can include blocks, that problem might be removed.
Mark
global $CFG;
if (! $site = get_site()) {
$site->shortname = get_string("home");
}
$bits = explode('->', $navigation);
if (count($bits) > 2) {
array_splice($bits, 1, 1);
$navigation = implode('->', $bits);
}
$navigation = str_replace('->', '»', $navigation);
echo "<a target=\"{$CFG->framename}\" href=\"$CFG->wwwroot/\">$site->shortname</a> » $navigation";
}
}
I do something similar on a site I've set up. The breadcrumbs reflect the navigation tree, including categories and sub-categories, but don't include the activity index page.
So, you would see: "Home >> Category 1 >> Sub-Category1 >> Course 1 >> Activity"
I did this in the header file of the theme I created. I take advantage of the navigation string's global visibility and basically rebuild the navigation in this file before it gets written out. That way, I don't have to change the core code.
mike
I think this is it ...
...I knew that was somewhere...
Let me know if it doesn't quite do what I said it did. I know I've made a lot more changes to the header file, and I can repost the changes.
mike
Here's some code that will remove that activity and resource index pages. Put it before the other code.
mike
Belated I know, but these additions to header.html are precisely what I needed.
Thanks,
Mark
Look in forum/lib.php for the make_mail functions for both html and text.
E.g. for make_mail_html delete this line:
'<a target="_blank" href="'.$CFG->wwwroot.'/mod/forum/index.php?id='.$course->id.'">'.$strforums.'</a> » '.
For text try just deleting this:
$posttext = "$course->shortname -> $strforums -> ".format_string($forum->name,true);
I think there is a strong argument for simply removing the module category from the breadcrumb trail, simply making it
rather than
I guess the main question is which is more common, wanting to revert to the main course page after doing an activity, or wanting to visit another activity of the same type. For my particular instructional situation, the former is clearly more frequent.
With regards to your last point I find this is exactly the same in my establishment.
What I have done is placed a link in the header which basically says 'if looking at a resource or activity then show a link to the course page'. Now it's working (thanks to wild girl) I notice the students click on it all of the time - I haven't even told them it is there.
We also have the breadcrumb hack which mike provided but In our 1.5 I am considering removing the breadcrumbs all together.
Secondly, can everyone who wants to partake in this thread please read this other one first since I think pretty much every side to this is in there already.
Thirdly, look in that discussion for "navmenulist" ... 1.5 provides data to the theme so that themes can create a persistent menu structure on every page. No themes are using this yet, but it can provide a site map (like the Jump menu) that you can make more obvious.
Lastly, the long-term plan is to move everything towards using the PAGE classes, which will allow more intelligence in how the navigation bar is constructed and displayed. In turn this will allow the admin to decide what elements they want in there. (categories or not, activity indexes or not). But it's a major change.
You can go to each activity page that you want to change and simply delete the link to the activity index. E.g., for choice>view.php look for the line with the link to the index page,
"<a href=\"index.php?id=$course->id\">$strchoices</a> -> ".format_string($choice->name), "", "", true,
Then delete the name: $strchoices and then delete the >> from the navbar by deleting the -> that follows the linked name. Then the link to "Choices" will be gone from the nav bar.