Navigation
Navigation Tools
Canvas allows External Tools to be surfaced in a variety of navigation menus. The primary use case for using a navigation placement is to permit SSO to display a dashboard of some type. The Top Navigation placement launches in a drawer which allows the tool to be displayed alongside Canvas content.
Course Navigation Placement
External tools can be configured to appear as links in course-level navigation. If the tool is configured on an account, any course in that account or any of its sub-accounts will have the link added to the course navigation by default. If the tool is configured in a course, then the navigation will only appear in that course.
There are some additional parameters that can be set on course navigation tools to define default behavior. These settings allow the tool to be disabled by default or visible only to some types of users.
Configuring
Configuration of the Course Navigation Placement depends on the LTI version.
Via JSON (LTI 1.3)
Via XML (LTI 1.0-1.2)
For more examples, refer to the Configuring documentation.
Advantages
The Course Navigation Placement is well suited for external apps that wish to be surfaced in Canvas without having to implement an LTI deep linking workflow. Once the tool is configured, no additional steps are required for users to see the launch point (unless the tool is disabled by default). It is well suited for tools that want to provide a simple SSO connection from Canvas to the external application. A dashboard type experience can be provided by apps offering services like:
Course-level Analytics or tool settings
Management of external course resources
Rostering or Attendance
Canvas-to-app SSO
Allowing users to select multiple resources and generate line items for them (LTI Advantage tools only)
Allowing teachers or students to complete an OAuth2 flow so a tool can run API requests on their behalf.
Limitations/Challenges
Canvas does not support Deep Linking from this placement, however, Assignment and Grading Services could be used to generate many line items in Canvas.
There is no 'resource' context, only course context.
Workflow
After configuring a course navigation tool, the instructor or student navigates to their course in Canvas.
Then, they click a link in the course navigation menu.
The tool consumes the LTI launch and renders the application.
If the tool is disabled by default, the instructor must first organize the navigation tabs to surface the LTI launch point.
Settings
All of these settings are contained under "course_navigation"
url: <url> (optional)
This is the URL that will be POSTed to when users click the left tab. It can be the same as the tool's URL, or something different. Domain and URL matching are not enforced for course navigation links. In order to prevent security warnings for users, it is recommended that this URL be over SSL (https). This is required if a url is not set on the main tool configuration.
default: 'enabled', 'disabled' (optional, 'enabled' by default)
This specifies whether the link is turned on or off by default for courses. Course administrators will see the link appear in Settings just like any other link, and can explicitly order, enable and disable the link from there.
visibility: 'public', 'members', 'admins' (optional, 'public' by default)
This specifies what types of users will see the link in the course navigation. "public" means anyone accessing the course, "members" means only users enrolled in the course, and "admins" means only Teachers, TAs, Designers and account admins will see the link.
text: <text> (optional)
This is the default text that will be shown in the left hand navigation as the text of the link. This can be overridden by language-specific settings if desired by using the labels setting. This is required if a text value is not set on the main tool configuration.
labels: <set of locale-label pairs> (optional)
This can be used to specify different label names for different locales. For example, if an institution supports both English and Spanish interfaces, the text in the link should change depending on the language being displayed. This option lets you support multiple languages for a single tool.
enabled: <boolean> (required)
Whether to enable this selection feature.
display_type <text> (optional)
The layout type to use when launching the tool. Must be one of the following:
default
Includes Canvas global navigation, breadcrumb, and course navigation.
full_width
Includes Canvas global navigation but does not include breadcrumb or course navigation.
full_width_in_context
Includes Canvas global_navigation, breadcrumb, and course navigation, and gives the tool access to the rest of the horizontal screen width.
in_nav_context
Includes Canvas global_navigation, breadcrumbs, and course navigation.
borderless
Does not include Canvas global_navigation, course navigation, or breadcrumbs
windowTarget: _blank (optional)
When set to _blank, the windowTarget property allows you to configure a launch to happen in a new tab instead of in an iframe. Omit this if you want to launch in frame.
Account navigation links
External tools can also be configured to appear as links in account-level navigation. If the tool is configured on an account, administrators in that account and any of its sub-accounts will see the link in their account navigation.
Configuring
Refer to the Course Navigation Placement's configuring section and simply replace course_navigation with account_navigation.
Advantages
Once configured, the account_navigation placement surfaces the LTI launch point in the account/sub-account navigation menu. This placement works well for:
Account-level reporting and analytics tools
Management of account-level tool resources or settings
Canvas-to-app SSO
Allowing admins to complete an OAuth2 flow so a tool can run API requests on their behalf.
Limitations/Challenges
This placement does not provide any course or resource level context in the Launch.
This is primarily a one-way launch; returning data to Canvas requires using Canvas API.
Workflow
After configuring an account navigation tool, the admin navigates to the account.
Then, they click the LTI link in the account navigation menu.
The tool consumes the LTI launch and renders the application.
Settings
All of these settings are contained under "account_navigation"
url: <url> (optional)
This is the URL that will be POSTed to when users click the left tab. It can be the same as the tool's URL, or something different. Domain and URL matching are not enforced for account navigation links. In order to prevent security warnings for users, it is recommended that this URL be over SSL (https). This is required if a url is not set on the main tool configuration.
text: <text> (optional)
This is the default text that will be shown in the left-hand navigation as the text of the link. This can be overridden by language-specific settings if desired by using the labels setting. This is required if a text value is not set on the main tool configuration.
labels: <set of locale-label pairs> (optional)
This can be used to specify different label names for different locales. For example, if an institution supports both English and Spanish interfaces, the text in the link should change depending on the language being displayed. This option lets you support multiple languages for a single tool.
enabled: <boolean> (required)
Whether to enable this selection feature.
display_type <text> (optional)
The layout type to use when launching the tool. Must be one of the following:
default
Includes Canvas global navigation, breadcrumb, and account navigation.
full_width
Includes Canvas global navigation but does not include breadcrumb or account navigation. This is the default and recommended display type for global navigation.
full_width_in_context
Includes Canvas global navigation, breadcrumb, and account navigation, and gives the tool access to the rest of the horizontal screen width.
in_nav_context
Includes Canvas global navigation, breadcrumbs, and course navigation.
borderless
Does not include Canvas global navigation, account navigation, or breadcrumbs
windowTarget: _blank (optional)
When set to _blank, the windowTarget property allows you to configure a launch to happen in a new tab instead of in an iframe. Omit this if you want to launch in frame.
root_account_only: <boolean> (optional)
If set to true, the tool will not be shown in the account navigation for subaccounts. Defaults to false (show in root account and all subaccounts).
User navigation links
External tools can also be configured to appear as links in user-level navigation. If the tool is configured on a root account, all users logged in to that account will see the link in their profile navigation by default.
Configuring
Refer to the Course Navigation Placement's configuring section and simply replace course_navigation with user_navigation.
User navigation links will only work if they are configured at the root account level.
Advantages
Once configured, the user_navigation placement surfaces the LTI launch point in the users "Account" slide-out tray. This placement works well for:
Student Planners
Portfolio Management
Management of user-level resources in an external application
Canvas-to-app SSO
User-level analytics or tool settings
Allowing users to complete an OAuth2 flow so a tool can run API requests on their behalf.
Limitations/Challenges
This placement does not provide any course or resource level context in the Launch.
This is primarily a one-way launch. Returning data to Canvas requires using Canvas API.
Workflow
After configuring, the user clicks on the "Account" icon from the global navigation side-bar.
Then, they click the LTI link in the tray that slides out.
The tool consumes the LTI launch and renders their application.
Settings
All of these settings are contained under "user_navigation"
url: <url> (optional)
This is the URL that will be POSTed to when users click the left tab. It can be the same as the tool's URL, or something different. Domain and URL matching are not enforced for user navigation links. In order to prevent security warnings for users, it is recommended that this URL be over SSL (https). This is required if a url is not set on the main tool configuration.
text: <text> (optional)
This is the default text that will be shown in the left hand navigation as the text of the link. This can be overridden by language-specific settings if desired by using the labels setting. This is required if a text value is not set on the main tool configuration.
labels: <set of locale-label pairs> (optional)
This can be used to specify different label names for different locales. For example, if an institution supports both English and Spanish interfaces, the text in the link should change depending on the language being displayed. This option lets you support multiple languages for a single tool.
enabled: <boolean> (required)
Whether to enable this selection feature.
visibility: 'public', 'members', 'admins' (optional, 'public' by default)
This specifies what types of users will see the link in the user navigation. "public" and "members" means anyone will see it, and "admins" means only account admins will see the link.
Top Navigation Placement
External tools can be configured to appear in the Top Navigation menu and will launch in a drawer alongside the Canvas content. A preview of this can be seen in Placements Overview.
Configuring
To use the top navigation placement, the following requirements must be met:
The feature flag top_navigation_placement needs to be enabled.
The tool that will use the placement must be added to the allow list for the placement either by Global Developer Key ID or by the Launch Domain.
The tool is configured with a placement entry for top_navigation.
The tool will then show up in the Top Navigation tool menu with both the icon_url and text properties. If no icon_url is provided, a default icon generated from the first letter of the tool title will be used instead. Up to two tools can also be "pinned" which promotes them from the Tool Menu to a dedicated button (icon only) alongside the menu. This pinning is done per Account and can be managed by a user with manage tools permission in the Apps tab of the account settings.
Please contact your CSM (Customers) or Developer Relations (Partners) to inquire about adding your tool to the allow list.
Settings
All of these settings are present for the top_navigation placement:
url: <url> (required if not set on main tool configuration)
This is the URL that will be POSTed to when users click the launch button. It can be the same as the tool's URL, or something different. Domain and URL matching are not enforced for top_navigation launches. In order to prevent security warnings for users, it is recommended that URLs be over SSL (https). This setting is required if a url is not set on the main tool configuration.
text: <text> (required if not set on main tool configuration)
This is the default text that will be shown on the hover-over tip and menu entry.
icon_url <url> (optional)
The URL for an icon that identifies your tool in the toolbar. The icon will be shown at 16x16 pixels. It is recommended that this icon be in PNG or SVG format. The url must be an https (SSL) URL.
If a tool does not provide an icon_url on the, a default icon based on the first letter of the tool's name will be used.
selection_width: <pixels> (optional)
This currently has no effect as the Drawer size is a fixed width of 320px.
selection_height: <pixels> (optional)
This currently has no effect as the Drawer height is fixed to the available space of the browser viewport minus the tool title header and close button.
Post Message API
We have also introduced two new postMessage functions to enhance the Top Navigation placement. The first, lti.getPageContent, allows an LTI tool to request the content of the current page, providing valuable context data directly from the front end without the need for a REST API call. The second, lti.getPageSettings, returns an object containing locale, timezone, and theme information, enabling tools to match Canvas's appearance for improved accessibility and cohesion.
Currently, only Assignments
and Wiki Pages
are supported by getPageContent, but support for additional pages is planned. Further documentation for making use of Canvas Post Message functions is located in the Using window.postMessage in LTI Tools section of the Canvas REST API and Extensions Documentation.
Security
To control access to the lti.getPageContent postMessage function, we have introduced a new LTI scope https://canvas.instructure.com/lti/page_content/show
, tools without this scope will not be able to invoke the postMessage function.
© Instructure, Inc. Generated on Wed Nov 6 14:19:59 2024 This documentation is generated directly from the Canvas LMS source code, available on Github.
Last updated