Not able to hide "All Courses" link

Re: Not able to hide "All Courses" link

by Andreas R. -
Number of replies: 12

Hi

When te user role is default = Default: Authenticated user on frontpage (frontpage) you configure the front page settings

Here as example = frontpage and frontpageloggedin you set "Announcement"

Then you configure the blocks in the admin section -> site administration -> plugins -> Blocks -> Courses and here you mark "block_course_list_hideallcourseslink"


That works for me!

Greets Andy

In reply to Andreas R.

Re: Not able to hide "All Courses" link

by Aditya Dubay -

Hi Andreas,

Thanks for reply.

Sorry but I did not get your solution.

Can you please elaborate.

In reply to Aditya Dubay

Re: Not able to hide "All Courses" link

by Andreas R. -

Ok step by step

1. What role for frontpage you have?

1.1. Can you set - Default: Authenticated user on frontpage (frontpage)?


If yes do it and come back for the next step.

Andy

In reply to Andreas R.

Re: Not able to hide "All Courses" link

by Aditya Dubay -

Hi Andreas,

Thanks for reply.

Yes it is Default: Authenticated user on frontpage (frontpage) on front page settings.

In reply to Aditya Dubay

Re: Not able to hide "All Courses" link

by Andreas R. -

Moin

Next step = Then you configure the blocks in the admin section -> site administration -> plugins -> Blocks -> Courses and here you mark "block_course_list_hideallcourseslink"

Can you do this?

If yes, did you have a normal user account, not admin and check if this option is hide?

Come back with your answer wink


Greets Andy

In reply to Andreas R.

Re: Not able to hide "All Courses" link

by Aditya Dubay -

Hi Andreas,

Thanks for reply.

Yes I did it before but it wont hide "All Courses" link of "Site Home", neither for student nor for teacher.

Technically it should but it did not.

That is the problem.

In reply to Aditya Dubay

Re: Not able to hide "All Courses" link

by Andreas R. -

Ok

Next step, = frontpage and frontpageloggedin you set as example "Announcement". Normally "All courses" link should go away!

Yes or not?

If yes, thats the solution, if not you should check the roles!

Greets Andy

In reply to Andreas R.

Re: Not able to hide "All Courses" link

by Aditya Dubay -

Hi Andreas,

Thanks for reply.

Nope it doesnt help me and "All Courses" is still there.

 

In reply to Aditya Dubay

Re: Not able to hide "All Courses" link

by Andreas R. -

Hi Aditya

I cannot believe, in this case i have no idea what happend? Something with the role permission, did you clear the cache files? Can you check once again the roles?

Good luck!

Greets Andy

In reply to Andreas R.

Re: Not able to hide "All Courses" link

by Rachel Martin -

I believe this is separate from the block.  It seems this is part of the frontpage renderer and it calls the list of courses.  I was trying to hunt down a setting for this as well, but so far I haven't found one and so far I haven't found any permission check to hide it from students either.

Right now, the simplest option might be the custom CSS.

In reply to Rachel Martin

Re: Not able to hide "All Courses" link

by T K -

I had this same problem with my Moodle 3.4, finally i added the below CSS and it works in hiding the 'all courses'.

It is funny that a direct setting takes no effect to make it work.

Average of ratings: Useful (1)
In reply to T K

Re: Not able to hide "All Courses" link

by Patrice Eugene -
I have the same issues. I'm still trying to find the way to make it works!
In reply to Andreas R.

Re: Not able to hide "All Courses" link

by Vicent Vu -

You are right, Andreas R.

That works for me too.

Now I can hide all courses I had created in the system. People only see and access courses which they are enrolled.

Thanks!