view course categories and courses

view course categories and courses

by Anjin Sing -
Number of replies: 10
Hello

I hope I can explain my problem correctly...
Version 1.5+
When viewing 'Course categories' then clicking on one of these, some of the category courses get shown in Tables as
Beginners course: Seminar SC101 -> Modul 01
Trainer/in: Mr. Bertold
summary of modul 01 and more text
Beginners course: Seminar SC102 -> Modul 02
Trainer/in: Alice Schwarz
summary of modul 02 and more text

and so on ....

other categories with their courses get only shown in Tables like this:
Course
Extended course: Seminar EC201 -> Modul 01info
Extended course: Seminar EC202 -> Modul 02info
Extended course: Seminar EC203 -> Modul 03info

The summary is hidden in these informationen button (right side) popup pages.
Now my question. Where can I tweak these settings to show or hide (in the info buttons) the summary?
I can`t remember where to do this. The sql queries did not tell the difference between these two settings, at least where I looked in (mdl_course).

Any hints, please?
Average of ratings: -
In reply to Anjin Sing

Re: view course categories and courses

by Anjin Sing -
Please!
Is there somebody out there who knows about this issue?

See what I mean here on moodle
1 case
http://moodle.org/course/category.php?id=1
2 case
http://moodle.org/course/category.php?id=3
In reply to Anjin Sing

Re: view course categories and courses

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
The display of these courses is handled in '/course/category.php'. If the number of courses in the category is less than the configured number per page, the courses are displayed with all summary and instructor information. If there are more courses than that, then the list is provided.

The first display is provided through the 'print_courses' library function. The second is done right in category.php.

mike
In reply to Mike Churchward

Re: view course categories and courses

by Anjin Sing -
Thanks a lot, Mike! - I think that will do it.
In reply to Anjin Sing

Re: view course categories and courses

by Stephen Bloomer -

Did you have any luck with this?  I searched \course\category.php but I could not find where I could change it from 10 to another number.

(using 1.9)

Steve

In reply to Stephen Bloomer

Re: view course categories and courses

by Khepri Enoch -
Are you looking for this?

Administration>Front Page>Front Page settings

Courses per page
Enter the number of courses to be display per page in a course listing.

Hope that helps.
In reply to Khepri Enoch

Re: view course categories and courses

by Stephen Bloomer -

No that is not it.  You know when you look at a course category you see the decription and teachers details, when you get more than 10 courses you only see the name of the course.  I want to change that from 10 to 20 courses before it goes to the reduced view.

Steve

In reply to Stephen Bloomer

Re: view course categories and courses

by Chad Outten -
this involves a small hack for moodle 1.9.x

go to public_html/course/lib.php

<snippet>

define('COURSE_MAX_SUMMARIES_PER_PAGE', 10);

</snippet>

10 courses is the default max for summary display in any category, so change this value to 20.

HTH
In reply to Chad Outten

Re: view course categories and courses

by Mitja Podreka -
Picture of Translators

I've inserted this setting into config.php file

// // NOTE: if you are using custompix in your theme, see /fixpix.php. define('COURSE_MAX_SUMMARIES_PER_PAGE', 20); //=========================================================================
// ALL DONE! To continue installation, visit your main page with a browser //=========================================================================

This way the change is a configuration and not a hack.