I would ask this on the Moodle site but frankly I love this place too much, and there's many a guru here to help me out.
Basically we have Moodle setup. The home page is setup to show stuff for kids at the minute, but I want to start adding staff links on the Moodle home page too - but I want these to only be available to staff. Similarly, I want some of the kiddy stuff to only show for kids.
I know I can do this by making teachers "front page teachers" but this is a faff on, especially when it comes to parents logging on cos you guessed it.... I want parents to see altogether different links and blocks. Like I say, it's a faff to have to make 1000 parents the "parent" role on the front page just to get a different appearance.
Is there anyway I can hard code the blocks in question and do something like "IF USER IS NOT A TEACHER OF ANY COURSE SHOW STUDENT LINKS ELSE IF USER IS A TEACHER OF A COURSE SHOW TEACHER LINKS ELSE IF USER IS A PARENT OF A STUDENT SHOW PARENT LINKS"?
Anybody got any thoughts?
You don't need to hard code anything - just follow these instructions -
Moodle Blog Control who sees a block on your Moodle front page
Also available on moodle.org here Block permissions - MoodleDocs
There are currently 1 users browsing this thread. (0 members and 1 guests)