Course category layout change

Course category layout change

by Norbert Czirjak -
Number of replies: 7
Hi,
I am using Moodle 3, and here when I load the moodle_url/course/ page, then a collapse menu is showing.

How can I change this? I want a tabbed layout. Has anybody any idea?

Thank you!

Regards,

Norbert


Average of ratings: -
In reply to Norbert Czirjak

Re: Course category layout change

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Sorry Norbert,

But it is not not possible to answer your question as you have not complied fully with the Forum Rules.

Mary Evans
Themes Forum Moderator

In reply to Mary Evans

Re: Course category layout change

by Norbert Czirjak -

Hello All / Mary,


So I extend my question smile

I am using Moodle 3.1+ (Build: 20160526) and I want to change the course category list on the default theme or the KLASS theme v.1.2 (https://moodle.org/plugins/theme_klass).


course category list

So i Want to change the layout of this collapse menu, I want to create a tab menu.

This site is available under the  moodle_url/course/ page.
Has anybody any idea, how can I change this? Should I create a new layout or if yes, then how can i implement it to my theme?

Thank you!

Average of ratings: Useful (1)
In reply to Norbert Czirjak

Re: Course category layout change

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Thank you...that is much clearer, and easy to answer.

That looks like a Course Format issue, rather than a theme issue, so try changing to a new Course Format.

There is one called One Topic Format that displays each topic as a tab.

https://moodle.org/plugins/format_onetopic

Hope that helps?

Cheers

Mary

Average of ratings: Useful (1)
In reply to Mary Evans

Re: Course category layout change

by Norbert Czirjak -

Dear Mary,


thanks for your fast reply and help. This solved one of my future question smile

Maybe i was wrong in my description, but i want to change the Course Category list page too. So this is the page where all of your courses available and by default it is a collapse menu.

So with the basic design it is looks like this:



and in the content part, i dont need the collapse menu, I want a tabbed menu or a simple box list like the frontend course list:



I hope i was clear smile And thanks for your help!


Regards,


Norbert


In reply to Norbert Czirjak

Re: Course category layout change

by Rajeet Singh -

Hi Norbert,

Please let me know if you got any solution for this... I am also looking for the same category layout..
Thank you in advance.

In reply to Rajeet Singh

Re: Course category layout change

by Syed HameedUllah -

Hi,

I have been using Tabtopics course format I have changed some basic things in it to get the really awesome look for the courses.

Hope it helps you if you need to change on course main page.

Regards,

Hameed.

Attachment Course  Main page.png
In reply to Norbert Czirjak

Re: Course category layout change

by Chris Kenniburg -
Picture of Particularly helpful Moodlers Picture of Plugin developers

In order to change the look on those pages you will want to override the renderer. Several themes do this and it is something that requires a lot of work and know-how.  

This is from my theme and the function you will want to change.  This is for the frontpage available courses:

https://github.com/dbnschools/moodle-theme_fordson/blob/master/classes/output/core/course_renderer.php#L57-L238

To change how courses appear in course categories look to override this:

https://github.com/dbnschools/moodle-theme_fordson/blob/master/classes/output/core/course_renderer.php#L240-L410


This is a pretty complex thing to do.

Average of ratings: Useful (1)