Leading through Chaos - Insights and Actions • Browse the resources from the keynote presented by the Academic Strategy Team.
Found this content helpful? Log in or sign up to leave a like!
Hi
Is there a way to remove a LTI tool that is available globally from an subaccount? using javascript in the subaccount?
So that other users can use this LTI tool, but only courses under this specific subaccount will not be able to use the LTI tool.
thanks
li
Hi Li,
You should be able to use something link this in the JavaScript file for that sub-account:
// Remove LTI Tool from course navigation
$('#left-side a:contains("Link Text/Tool Name")').remove();
// Remove LTI Tool from navigation tab in course settings
$('#nav_form li:contains("Link Text/Tool Name")').remove();
Where "Link Text/Tool Name" would be the actual text that you see in the left navigation or the navigation list. If this is not unique to the specific tool, you might want to come up with a different approach.
Hope that helps,
Kenneth Larsen
Hi Kenneth,
Thank you for the code, it works perfectly.
I am also trying to remove one item(Embed Kaltura Media-UMD) from rich text editor(please see the attached). I use
$("span").remove(":contains('Embed Kaltura Media-UMD')"); It works in the console, but it does not work after I upload the js to Canvas(I put the line inside the $(document).ready(function ().
thanks
That one is not as easy. As I played with trying to hide one of the tools from that "More External Tools" dropdown, I discovered that it is rebuilt every time it is clicked which made it hard enough to remove that I gave up trying. I have not tried recently but that was the case when I was trying at some point last year.
Hi Kenneth,
I know this post is quite old, but I was curious where the javascript goes for a sub-account?
I have added JavaScript for the root account in the Themes, but can't seem to tell where to place it for a sub-account.
Thanks for any pointers.
-Jon
jwheat, it is the same for sub-accounts. However, this does require that "Let sub-accounts use the Theme Editor to customize their own branding" is turned on in the root account settings.
Sweet, thank you @kenneth_larsen , I wasn't aware of that option.
It worked like a charm, removed a couple of tools.
Thanks again!
-Jon
I see.
Do you think it is same for removing item(s) from the external tool selection drop down menu? The menu when an user is trying to add an external tool from modules or pages.
thanks a lot
li
To interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in