Course Menu Block for Moodle 2.0

Course Menu Block for Moodle 2.0

بواسطة - Alex Contis
عدد الردود: 71

Hi,

We have created a Moodle 2.0 version of the Course Menu block.

The Course Menu block is a tree based expanding menu block with option to turn on/off a few functionalities in the tree such as:

  • Site pages
  • Gradebook
  • Calendar
  • My Profile
  • My courses
  • My profile settings
  • Course administration
  • Show All Sections

Other features

  • Expandable Tree
  • Activate Chapter Grouping, makes possible grouping of topics or weeks into chapters
  • Custom web links

The settings are done on a per course basis. The block is made for Moodle 2.x

To download visit:

http://moodle.org/mod/data/view.php?d=13&rid=926&filter=1

When Reporting bugs and issues send mail to:

info@netsapiensis.se

Please send us information about the following:

  • Operating system name and version
  • Database name and version
  • PHP version
  • Moodle version (2.x)
  • Course Menu version (check in version.php)
  • Theme used
  • Steps to reproduce the bug
  • Send a few screenshots


Have fun
Alex Contis
NetSapiensis AB

متوسط التقييمات:Useful (3)
رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Thomas Hanley

Hi Alex,

Many thanks to you and to everyone at NetSapiensis who worked on this block. I find that it is much clearer than the standard navigation block. The configuration options are a very good idea as Moodle is used in so many different contexts and on so many different scales.

My organisation's use of Moodle is on the smaller end of the scale. I therefore try to use the absolute minimal number of blocks, options, possibilities. I am using the Course menu block with the  'Show All Sections' and 'My courses' options enabled.

When using the menu 'My courses' will expand and show 'participants'. For me this only lists the current user and I feel that it is redudant. Is there any way of removing the 'Participants' part of the menu as illustrated below? I would like to remove everything within the blue rectangle.

I am using Moodle 2.03.
Course menu version 2011051801

Many thanks

~thomas

 

رداً على Thomas Hanley

Re: Course Menu Block for Moodle 2.0

بواسطة - Ray Lawrence

Hi Thomas,

Does changing the permissions for the view participants capability help?

Ray

رداً على Ray Lawrence

Re: Course Menu Block for Moodle 2.0

بواسطة - Thomas Hanley

Hi Ray and Alex,

Thanks both. Ray I tried your suggestion. I think that you meant the setting below:

I changed this to 'prohibit' and saved. Also changed the one to do with course participants. This didn't have any affect on the navigation menu.

I have tried a css hack though which worked. It is possible to turn off the levels of the menu below the top level.

.depth_3 {
    display: none;
}

Result is show below:



~thomas

رداً على Thomas Hanley

Re: Course Menu Block for Moodle 2.0

بواسطة - Ray Lawrence

There appears to be a problem here. Only the Manager role has this capability set to Allow. All others are set to Not set (2.1.1).

In a course in Permissions the default is shown as Allow (inherited). From where though?

Looks like a bug report unless I'm missing something obvious. Anyone else finding the same behaviour?

رداً على Ray Lawrence

Re: Course Menu Block for Moodle 2.0

بواسطة - Thomas Hanley

Hi Ray,

Apologies but understanding of roles, permissions, capabilities is hazy. The setting shown above was initially 'Not Set'. Am using Moodle 2.03. I do not know what the intention is for the default behaviour.

I have therefore resorted to a CSS hack!

~thomas

رداً على Thomas Hanley

Re: Course Menu Block for Moodle 2.0

بواسطة - Alex Contis

Hi Thomas,

Thank you for the compliments, the "My Courses" branch in the Course Menu tree is not a part of the Course Menu block. "My  Courses" is imported into Course Menu, it normally shows up in the Navigation block. My suggestion is to try Rays advice.

Regards
Alex Contis
NetSapiensis AB 

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Thomas Hanley

Hi Alex,

Is there any quick way of forcing courses to display just one topic only by default for all users? Not sure if this is within the scope of the Course Menu block or within other core parts of Moodle.

Many thanks

~thomas

رداً على Thomas Hanley

Re: Course Menu Block for Moodle 2.0

بواسطة - Alex Contis

Hello,

Course Menu can't do that for the time being. What is the use case scenrio for having a topic shown by default to all users?

Regards
Alex Contis
NetSapiensis AB 

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Thomas Hanley

Hi Alex,

Thanks for getting back to me. It isn't that I want to show a specific topic just the opening topic for a course.

The reason is user experience and the scroll of death. I believe that the best user experience we can provide to our users (UK teachers who are very time pressured) is more of a HTML page model.  So ideally I would not have the choice 'show only topic x' or 'show all topics'.  In an ideal world there would be one topic on screen at any time and our users would navigate topic by topic.

Would this involve a significant amout of coding to achieve?

Many thanks

~thomas

رداً على Thomas Hanley

Re: Course Menu Block for Moodle 2.0

بواسطة - Alex Contis

Hi,

We could implement a feature to turn off/on the "Show all topics/Show only topic x" in a coming version of Course Menu. But remember that you still have the same functionality available through Moodle unless you hide it in the theme.

Regards
Alex Contis
NetSapiensis AB 

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Thomas Hanley

Hi Alex,

Thanks for your reply. By default either the 'course menu' block or something in core Moodle nav code set all topics to display. Yes the user can then override this but this whole concept of having everything on one huge long scrolling page and being able to hide sections of is completely different to the vast majority of websites and therefore our users find it confusing. They are familiar with a html page model.

Which php file would I find the code in which says 'by default show all topics'. I just want to hack this (yes am aware of consequence of doing this!) so that it becomes 'by default show topic 0'. It could well be that it isn't as simple as changing code in one place. Any feedback welcome.

Many thanks

~thomas

رداً على Thomas Hanley

Re: Course Menu Block for Moodle 2.0

بواسطة - Alex Contis

Hi,

We'll try to implement this functionallity the following 6 to 8 week. We'll make some other changes to Course Menu also.

Regards
Alex Contis
NetSapiensis AB 

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Thomas Hanley

Hi Alex,

Thanks this change would be very much appreciated. I am thinking that there would still be the choice for the user to 'show all topics' or 'show topic x' (even though I don't think seeing everything on screen at once makes for a good user experience!).

However, within the block settings / configuration the Moodle administrator could choose what happens by default. The choice being either

a) Show all topics by default (as currently happens)

b) Show just topic 0 ie the overview / opening topic. Users would then navigate through each topic using the topics menu. Of course, if they preferred to see all topics they could still choose this from the existing button functionality in the course menu block

Many thanks

~thomas

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Catherine Berry

Thank you for the Course Menu block, I find it very useful, especially the Chapter grouping functionality.

I would like the tree to automatically collapse when the user moves to a new section, so that the block doesn't become too long. Is there a simple code tweak to do this?

Many thanks.

رداً على Catherine Berry

Re: Course Menu Block for Moodle 2.0

بواسطة - Alex Contis

Hi,

It's not trivial but it can be done. Wouldn't a collapsing tree cause the student to lose the orientation because it would not be obvious from which topic (chapter, subchapter) it arived to a certain page. The active topic is highlighted in the tree but one would not see that if the tree is collapsed. Might not be an issue if you have "Show topics on" but then you have to deal with the scroll of death ...

Regards
Alex Contis
NetSapiensis AB 

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Catherine Berry

Thanks for replying.

Losing orientation wouldn't be a problem for us, because our topic titles make it clear - we have titles like Algebra 1: Linear equations, Algebra 2: Quadratic equations, so it's obvious to students that they are in the Algebra chapter.

Our theme uses block sections at the top of the page and a two column layout with blocks on the right, so we want the Course menu block at the top of the page (it doesn't seem natural to have a menu on the right, and we have other stuff there). So if the tree stays open it can make the page a bit long - especially if more than one branch is open. Of course users can always shut down the branches themselves, but it would be nice if it happened automatically.

Any help would be great!

رداً على Catherine Berry

Re: Course Menu Block for Moodle 2.0

بواسطة - Andrew C

Hi, I'm looking at something similar. I've copied the topics block, opened the php and removed the option to see all topics. I'd now like the course to default to viewing only one topic upon entering.

I'm using a contents navigation block on the left to move around the site.

I'd also like to only see one topic (not an introduction and topic) but would still like this to be selectable. Do you know which part of the php code I should alter?

Thanks,

Andrew

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Brett Lucas

Hi Alex

We met at the Moodlemoot in Dublin last week where you showed me your block which I really like.

The difficulty I am having is with menu items being trimmed too much e.g. Assessment information is trimmed to 'Assesment...'

In the sitewide settings for the block it is set to  trimlength:0

In the course settings I have it at mode: trim characters from right, '0' characters and expandable tree.

Is it possible to display any more characters? (I'm on Windows IE9/FF and Chrome

Thanks in advance for your help

Brett

رداً على Brett Lucas

Re: Course Menu Block for Moodle 2.0

بواسطة - Alex Contis

Hi Brett,

Set the trimlenght to 25 or some other number that fits, do this on the
site context. You can also alter that value at the block level within a course. Keep in mind that altering the trimlegth in the site context does not automatically update the trimlength in the course context. 


Sincerely
Alex Contis
NetSapiensis AB

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Shirley Crawford

Does this work in 2.2?

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - peter nunn

Hello Alex,

I have just installed the Course Menu Block as it appears to be exactly what I am looking for as far as functionality is concerned. I am just having an issue with the configuration. I have attempted to Turn On the Expandable Tree - however it keeps jumping back to the default of 'No" . I am also unable to 'Activate Chapter Groupings' or 'Activate Custom links'. Is there some other setting that I need to access for these to work. Any help here is really appreciated.

Thanks

Peter

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Deepa Gupta

Hi,

Can anyone please tell me how may I go about configuring such that this course-menu block appears across all the courses and its pages at the top left column, with the same options and configurations, and not on the home page or front page. Currently, I have to go to each course, turn editing on and add the block manually which is unfeasible for me given the huge number of courses I have. I am unable to find this global i.e site-wide configuration/setting options for any block for that matter including the Navigation block in Moodle 2.x (I wish to remove the Navigation block site-wide also, because some of its menu-items overlap with the ones in the course-menu block thereby causing redundancy and I prefer this course block over the navigation one)

Also, is there a way to add a link to this course-menu block for Participants, clicking on which, we can see a list of all the users (student/faculty etc) who are enrolled for that particular course?

(I am using Modle 2.2)

Any help is greatly appreciated

Thanks
Deepa Gupta

رداً على Deepa Gupta

Re: Course Menu Block for Moodle 2.0

بواسطة - Natalie Denmeade

Deepa,

You could acheive this by adding Course Menu to the front page and setting it to display on all pages, but then hiding it on the front page only.

Another option is to add a line of code to config.php to add course menu block as a default block in all new courses. See this doc. eg:

$CFG->defaultblocks_override =    'course_menu,activity_modules,search_forums,course_list:news_items,calendar_upcoming,recent_activity';

To set sidewide options for a block settings, go to:

From this page you can hide the standard navigation block (eye icon), and LOCK the Course Menu to prevent it being deleted.

Re Participants.. You can add a custom link straight to participants at the top level of the tree. Set # of custom lilnks to 1 and then you will see an option. However,  If you expand the tree under My courses you will get to a deeper level where you can see participants for that course.

 

 

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Natalie Denmeade

Alex,

This block is very flexible, and many of us would like it to be part of the core moodle, thanks for supporting and sharing it. Do you have a time frame for it to be compatible with Moodle 2.3?

رداً على Natalie Denmeade

Re: Course Menu Block for Moodle 2.0

بواسطة - Alex Contis

Hello,

 

A Moodle 2.3 compatible version of the  Course Menu block should be available shortly after Moodle 2.3 is released.

 

Regards
Alex Contis
NetSapiensis AB

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Dave Balch

Hi,

Is anything hapening with Course Menu for 2.3, or anything I can do to help?

I see there has been a 2.3DEV branch added (https://github.com/netsapiensis/moodle-block_course_menu/tree/bd4de3cec3d92120a6000962234bb8dfb4e7b39c), but it's doesn't seem ready for install.


Cheers,
Dave.

رداً على Dave Balch

Re: Course Menu Block for Moodle 2.0

بواسطة - Jayne Bachelor

Hi Dave,

I tried the link (https://github.com/netsapiensis/moodle-block_course_menu/tree/bd4de3cec3d92120a6000962234bb8dfb4e7b39c) to downlaod the Course menu Block for 2.3 but I get an error 404.

Is it ready for use and if so where can I get it please.

regards

Jayne

رداً على Jayne Bachelor

Re: Course Menu Block for Moodle 2.0

بواسطة - Paul Vaughan

Try this part of the link instead: https://github.com/netsapiensis/moodle-block_course_menu/

I'd suggest that the MOODLE_23_DEV branch is for 'in development' code and shouldn't be used on a live server. I'd wait for a branch with the name MOODLE_23_STABLE (or very similar) before considering it ready for production use.

P.

رداً على Paul Vaughan

Re: Course Menu Block for Moodle 2.0

بواسطة - Jayne Bachelor

Thanks Paul, I'll keep an eye on it عين سوداء

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Brett Lucas

Hi Alex

I've been working with Course Menu block for a while now and am incorporating it into a default template. However, I have noticed that if I use a weekly format the Course Menu does not pick up the default headings specified by the format i.e. 10 May - 16 May etc.

Could you let me know what the correct behaviour of the menu should be if you use the weekly format?

I am using a bespoke weekly page format so am not sure if it is a design or config issue.

Thanks in advance

 

Brett

رداً على Brett Lucas

Re: Course Menu Block for Moodle 2.0

بواسطة - Alex Contis

Hi Brett,

What do you mean by a default template? What version of Course Menu and Moodle are you using?

Regards
Alex Contis
NetSapiensis AB

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Brett Lucas

HI Alex

I just mean a selection of blocks and page elements that provide a consistent look and feel for modules.

We are using Moodle 2.2.1 (Build: 20120109). I'm not sure which version of the Course Menu we are using , I presume the latest as it was installed recently.

The issue we are having does not manifest with topic or collapsed topics format but only with Weekly.

We have had these three formats styled to meet our needs though I'm not sure it would have any effect.

What is the behaviour we should expect from weekly format in the course menu? i.e. Should the menu display : 10-16 May etc?

 

Regards

 

Brett

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Glen Byram

Thanks for this useful plugin. It is very popular. Unfortunately it clashes with the also popular jQuery javascript library which some site designers include to support widgets like collapsing menus and slideshows.

The problem is that Course Menu defines a javascript function called "$" in the javascript global namespace, and jQuery re-defines a function of the same name. Symptoms of the name clash when any version of jQuery is included are 1. the "Elements" list in the config page remains empty 2. users are unable to save config changes (e.g. changing the number of characters to trim) and values are set back to defaults.

I'd encourage you to modify the javascript, wrapping the functions in some kind of local scope (e.g. namespace or Object). Or at minimum rename the $ function.

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Ian Wild
صورة Plugin developers

Hi all,

I thought you might like to know that I've been investigating an issue here at Queen Mary, University of London with the Course Menu block not interacting correctly with the Collapsed Topics course format. Our problem is that clicking on the section name in the Course Menu doesn't open that section in a Collapsed Topics course.

If anyone is interested I have a demo of the modification here:

http://moodle2.heavy-horse.co.uk/login/index.php

You can log in using the following usernames and passwords:

  • teacher1, teacher1
  • student1, student1

I have fixes for 2.2 and 2.3 (which is what my demo is based on).

Hope this helps,

Ian.

رداً على Ian Wild

Re: Course Menu Block for Moodle 2.0

بواسطة - Alex Contis

Hi,

I logged on and tested course menu in a collapsed topic context, looks great. We can include your fixes in the Course Menu source if you want.

Regards

Alex Contis

NetSapiensis AB

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Yvonne van Lingen

Hello Alex

I love the block! I use Moodle 2.3.2, topics format and one section per page. Also, I have defined groupings and some sections are only available for a specific grouping.

The block ignores this setting and all sections are shown to any group. In fact, all settings you could define at Restrict access  of a section, like the conditional activities, are ignored by the block.

If a user click on this (forbidden!) link, it returns an error message.

Do I miss anything or can this be fixed?

Thanks.

Yvonne van Lingen

 

رداً على Yvonne van Lingen

Re: Course Menu Block for Moodle 2.0

بواسطة - Alex Contis

Hi Yvonne,

We'll check this, we might need to do some work to make Course Menu fully cooperate with Moodle 2.3

Regards
Alex Contis
NetSapiensis AB

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Mahtab Hussain

May you live in peace Alex!


We are using Moodle 2.2. The block is quite impressive and we want to use it for our site. We need to customize collapsed menu a bit. Here is what we are looking for:

1) Only one section is expanded at any time.

2) Rather than expanding a tree by clicking on icon, we are looking to expand by clicking on section name. (I understand we are loosing functionality to jump to any topic by making this change)

Can you give me any hints, how can I implement that. I have gone through code and it appears that relevant code is in course_menu.js around line 120 but I am not quite sure how I can achieve requirement. Your hints would be of great help.

With warm regards,

Mahtab Hussain

رداً على Mahtab Hussain

Re: Course Menu Block for Moodle 2.0

بواسطة - Alex Contis

Hello Hussain,

I'm glad you find the Course Menu useful. The Course Menu block is the result of a team of people it's not only my contributions, that's why we normally don't give hints on how to modify the source. We either implement a new feature or leave it out completely.

 

Regards
Alex Contis
NetSapiensis AB

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Ian Wild
صورة Plugin developers

Hi Alex,

Thank you for your message and apologies for the delay getting back to you.

Supporting the 'Collapsed Topics' format simply requires passing on the onclick() event to the correct 'Collapsed Topics' anchor (to scroll the topic into view and expand it). The modified Moodle 2.3 version of the block is attached - although the only changes are in block_course_menu.php and renderer.php (search for 'IDW' for my comments).

If there is any more information you need then please do let me know.

Hope this helps,

Ian.

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Derek Chirnside

Alex: Many weeks on now, we are enjoying this block.

I have a question: is there a way to get the traditional participants list into the block? 

The participants link in the configuration does not show it.  Just the blogs etc.

As a work around, I have been finding the link, and creating a manual link to the participants list.

-Derek

رداً على Derek Chirnside

Re: Course Menu Block for Moodle 2.0

بواسطة - Alex Contis

Hi Derek,

Nice to know you find the Course Menu block useful. We'll fix the issue and make sure a link to the participants list is available.

 

Regards
Alex Contis
NetSapiensis AB

رداً على Derek Chirnside

Re: Course Menu Block for Moodle 2.0

بواسطة - Alex Contis

Hi Derek,

There's a new version of Course Menu fr download that solves the issues with the missing list of participants.

Regards
Alex Contis
NetSapiensis AB

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Yoni Lerner

I can't add the block in course.
I had no problem installing it, but when trying adding the block in a course, I'm getting this:

Fatal error: Call to undefined function course_set_display() in /var/www/html/moodle20/blocks/course_menu/block_course_menu.php on line 653

I'm running on moodle 2.3.2.

any ideas?

thanks مبتسم

رداً على Yoni Lerner

Re: Course Menu Block for Moodle 2.0

بواسطة - Alex Contis

Hi,

You have installed the Moodle 2.2 version of Course Menu, try again with the Moodle 2.3 version مبتسم

Regards
Alex Contis
NetSapiensis AB

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Yoni Lerner

Alex,

Thanks, works likea charm! مبتسم

Yoni

رداً على Yoni Lerner

Re: Course Menu Block for Moodle 2.0

بواسطة - Vidya Kumar

Hi,

 

I’m running Moodle 2.4.1 (Build: 20130114).

 

And I downloaded the Course Menu block ($FIXED_VERSION = 2011051801; $plugin->version = 2011061601).

 

I copied it to the Blocks folder without any issues, and also updated Moodle through the Notifications section. However, when I added the block through the “Add a Block” option, the entire site froze… nothing was displayed on the screen after several refresh and restart attempts.

 

Finally, the site came back on only when I went into the Blocks folder and removed this block from there.

 

I’m guessing it could be a version issue. Is that the case? If it is, do you expect a version to be released soon for Moodle 2.4?

 

Any help would be appreciated. The Course Menu block sounds very, very promising, and I can’t wait to see it working on my site.

 

Thanks,

Vidya 

رداً على Vidya Kumar

Re: Course Menu Block for Moodle 2.0

بواسطة - Lokesh Malpani

I am also facing same issue. if you got the solution for that please help me out ....thanks in advance .

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Gerrard Shaw

Hi Alex, we're running a fresh install of Moodle 2.4.3 - is the Course Menu block compatible with this version (i.e. can we use the current 2.3 STABLE version of the block?)

رداً على Gerrard Shaw

Re: Course Menu Block for Moodle 2.0

بواسطة - Alex Contis

Hi,

Use the MOODLE_23_DEV branch for Moodle 2.4.3, I'll make sure the MOODLE_23_STABLE andMOODLE_23_DEV branches get synchronized.

Regards
Alex Contis
NetSapiensis AB

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Gerrard Shaw

Thanks for your quick reply, much appreciated مبتسم

Will the updated version be an officialy 2.4 release? Just tried the 2.3 DEV branch and it looks to be working on my local installation, is that version safe to use on a production site?

رداً على Gerrard Shaw

Re: Course Menu Block for Moodle 2.0

بواسطة - Alex Contis

Hello,

We are using it in production already. The 23_DEV and 23_STABLE branches are synchronized since yeasterday. We'll try to update the official version ASAP.

 

Regards
Alex Contis
NetSapiensis AB

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Bonnie Mioduchoski

Hi Alex,

I'm on Moodle 2.3.4 and would love to use your block. Has it been updated as you posted here yet? Just want to make sure it won't make our site freeze. Thank you!

رداً على Bonnie Mioduchoski

Re: Course Menu Block for Moodle 2.0

بواسطة - Alex Contis

Hi,

Te Course Menu block works well on Moodle 2.3.x. You should always test  new plugins in a test environment befor installing them in a production environment.

Regards
Alex Contis
NetSapiensis AB

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Bonnie Mioduchoski

Hi Alex,

I'm on Moodle 2.3.4 and would love to use your block. Has it been updated as you posted here yet? Just want to make sure it won't make our site freeze. Thank you!

رداً على Gerrard Shaw

Re: Course Menu Block for Moodle 2.0

بواسطة - Leonard Houx

Is there any way we can get the course menu to start from topic zero?

رداً على Leonard Houx

Re: Course Menu Block for Moodle 2.0

بواسطة - Alex Contis

Please define what you mean by "start from topic zero", what is topic zero??

Regards
Alex Contis
NetSapiensis AB

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Leonard Houx

Hi Alex! I should have used the term 'section' (they are only 'topics' in topics format, really).

Currently, the block lists the links from section one, even though it starts with zero. So the first link is, for example,  http://yourmoodlesite/course/view.php?id=3#section-1. I know starting from zero isn't right for everyone, but it may make sense for us.

رداً على Leonard Houx

Re: Course Menu Block for Moodle 2.0

بواسطة - Alex Contis

Hello,

Section 0 might mean different things depending on the version of Moodle and the setting "Course layout" parameter.

In Moodle 2.5

http://yourmoodlesite/course/view.php?id=3&section=0 shows the same as

http://yourmoodlesite/course/view.php?id=3

if Course Layout is set to "Show one section per page"

then i suppose section 0 could be called "Home"

Course Menu doues not support this yet, but who knows in the future ...

In what context does it make sense for you?

 

Regards
Alex contis
NetSapiensis AB

رداً على Alex Contis

Re: Course Menu Block for Moodle 2.0

بواسطة - Leonard Houx

Well, right. Exactly. How you use section zero very much depends. For some it could be 'home', for others 'before you start', for others 'week one'. And so on. (The problem IMHO with 'home' is that it could be confused with the VLE site home, though.)

Really, in most courses, I would imagine users would normally want to access the top-level section.

Is there any hack to change it? Isn't there somewhere in the array that I can just change a '1' to '0'? I am not good enough at PHP to figure this out حزين