Celebrate Excellence in Education: Nominate Outstanding Educators by April 15!
Hi,
When I hide an item from the Course Navigation setting inside a course it by default only hides from students. There is a way to hide from another user? for example TAs or Teachers?
It looks like have a way to do it via API, but that will not be my case now.
Thank you
Solved! Go to Solution.
I saw this API below example on this discussion: Is it possible to hide an items in the course navi... - Instructure Community (canvaslms.com)
PUT /api/v1/courses/896851/tabs/files?hidden=1
But the API call needs to be done by each course. Fore sure JS looks much simple. I'll test in my beta environment.
You are correct just tested it. The API I mention is the same thing that goes to Settings and hide it, so only for students.
I also tried the JS method, but on the other hand, it hides from the HTML rendering, so even the admin stop to see it.
Do you know if it's possible to the below run for a specific role? Meanwhile, I'll test the Student alternative.
$(document).ready(function(){
$('a.syllabus').hide();
});
@Flib The API can only hide it from students. It takes custom JavaScript applied to the theme to hide it from teachers/TAs. Here is a sample that @robotcars gave for another user wanted to hide the "Syllabus" link:
Solved: Hide syllabus link at account level? - Instructure Community
Hope this helps!
Nick
I saw this API below example on this discussion: Is it possible to hide an items in the course navi... - Instructure Community (canvaslms.com)
PUT /api/v1/courses/896851/tabs/files?hidden=1
But the API call needs to be done by each course. Fore sure JS looks much simple. I'll test in my beta environment.
Let me know if it makes sense....
My last question was because I have a profile that I call "Tutor" that is based on the TA with fewer powers. And I don't what him to access what I hide in the Course Navigation.
Now, what if instead of creating him based on the TA and removing privileges and creating this "tutor" based on Student and GIVE privileges? By default, Students don't see a hidden item and it may solve, right? I just need to make sure if I giving him the power to View: the class grade book, whole content, answers to questions.
Tutor for us is someone that can View only grade book and course content independently if published or not also see the quizzes answers.
If it is not possible to achieve I'll try the JS option.
@Flib I thought the API only hides from students and others would still be able to view it.
I like your idea of switching the role base, that is worth a try. I feel like I saw in the community (at least a year ago) a few things that you could not give a student but again, worth a try.
-Nick
You are correct just tested it. The API I mention is the same thing that goes to Settings and hide it, so only for students.
I also tried the JS method, but on the other hand, it hides from the HTML rendering, so even the admin stop to see it.
Do you know if it's possible to the below run for a specific role? Meanwhile, I'll test the Student alternative.
$(document).ready(function(){
$('a.syllabus').hide();
});
@Flib There is some discussion in this thread, linked below, that talks about adding buttons to the Global navigation menu based on role. It should be the same sort of idea for what you are doing with the course navigation menu.
I will admit though, that I did do a bunch of Javascript work to modify our global navigation menu and never was able to get the role piece (certain buttons for certain roles) to work. Everything else is perfect but it I had something wrong with the code I am sure.
Global Navigation Link - Visible only to Instructo... - Instructure Community
-Nick
To participate in the Instructure Community, you need to sign up or log in:
Sign In
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.