How to add an "Explore this concept" button to a video

When a video is associated with an exercise, the video page will automatically have a "Practice this concept" button that takes you to the exercise for that video.

Videos can also be linked to explorations that are built outside of the normal exercise framework by adding an "Explore this concept" button to the video page. The button is added by setting the "explore_url" for the video.

The explore_url can be set through the API via: /api/v1/videos/youtube_id/explore_url

Note that you must use the YouTube ID, not the readable ID.

For example, to see the explore_url for the perfect-secrecy video, just get this URL:


To set the explore_url for the perfect-secrecy video, log into the site as a developer and do something like this from the console:

$.ajax({
    url: "/api/v1/videos/cAt6MYoGqJ4/explore_url",
    type: "PUT",
    data: "url=/labs/explorations/perfect-secrecy"
})

After setting the explore_url, you will need to publish the topic tree for the change to take effect or wait for
some cache to expire.

Comments