- Posts: 4
[Closed] My courses organized by categories?
- jacopo
- Topic Author
- Offline
- New Member
-
Less
More
14 years 3 months ago - 14 years 2 months ago #1
by jacopo
[Closed] My courses organized by categories? was created by jacopo
We are running R07 on moodle2.2.
Our original moodle courses are organized in categories.
We would like to create a menu with the correct courses category structure, but a student should be able to access a certain category only if he is enrolled to one of its courses.
Right now if we create a menu item pointing to a category instead, the student will be able to access it also if she is not enrolled to any of its courses.
Using My Courses does not do the job as it will show all my courses on the same level, without categories.
Is this something doable?
please check the attached image, hope it's clear enough
thanks
Our original moodle courses are organized in categories.
We would like to create a menu with the correct courses category structure, but a student should be able to access a certain category only if he is enrolled to one of its courses.
Right now if we create a menu item pointing to a category instead, the student will be able to access it also if she is not enrolled to any of its courses.
Using My Courses does not do the job as it will show all my courses on the same level, without categories.
Is this something doable?
please check the attached image, hope it's clear enough
thanks
Last edit: 14 years 2 months ago by Chris.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
14 years 3 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Re: My courses organized by categories?
My courses view has an option to show courses order by category.
Please Log in or Create an account to join the conversation.
- jacopo
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
14 years 3 months ago #3
by jacopo
Replied by jacopo on topic Re: My courses organized by categories?
thank you Antonio, I had missed that!
much better now, still it is missing details such as Category intro and Course Intro.
Isn't it possible to have a view similar to "Course Category", only filtered by enrollment?
I am ready to modify some script if needed, I would need to know which one thou!
thank you
much better now, still it is missing details such as Category intro and Course Intro.
Isn't it possible to have a view similar to "Course Category", only filtered by enrollment?
I am ready to modify some script if needed, I would need to know which one thou!
thank you
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
14 years 3 months ago - 14 years 3 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic Re: My courses organized by categories?
I think you can do what you want modifying the course category view.
Just add something like this at the start of the course loop:
Just add something like this at the start of the course loop:
Code:
$is_enroled = JoomdleHelperContent::is_enroled ($username, $curso['remoteid']);
if (!$is_enroled)
continue;
Last edit: 14 years 3 months ago by Antonio Durán.
Please Log in or Create an account to join the conversation.
- jacopo
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
14 years 2 months ago #5
by jacopo
Replied by jacopo on topic Re: My courses organized by categories?
thank you Antonio!
that looks very useful..
Could you please point me which file we should modify ?
that could save us lot of time of blind searching...
thank you!!
that looks very useful..
Could you please point me which file we should modify ?
that could save us lot of time of blind searching...
thank you!!
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
14 years 2 months ago #6
by Antonio Durán
Replied by Antonio Durán on topic Re: My courses organized by categories?
File is 'components/com_joomdle/views/coursecategory/tmpl/default.php'
Please Log in or Create an account to join the conversation.
- jacopo
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
14 years 2 months ago #7
by jacopo
Replied by jacopo on topic Re: My courses organized by categories?
Antonio Santo subito!! thank you
Please Log in or Create an account to join the conversation.