This Health Sciences Resource Hub website is scheduled to be decommissioned in November 2022. Please update any links and/or bookmarks you may have accordingly.

If you have questions, please contact ahcweb@umn.edu.

Modal Windows

Modal windows allow content to be shown in a separate window without the user leaving the page. The linked content will show in a window with a shadowed background. Only the page content will be shown. The site header and sidebar are hidden.

To add a modal window…

  1. Add a link by clicking the Linkit icon in the wysiwyg toolbar.
  2. Enter or search for the page to link to.
  3. Click the options drop down.
  4. Enter "colorbox-node" into the classes field.
  5. Click "OK."

Screenshot of linkit for modal window

Form or Profile in a Modal Window

If the linked item is a form or profile it will show up in the modal window without the website header, footer or sidebar content. If there are any situations where specific formatting is needed for a form or profile please contact your AHC web support team.

Screenshot of form in modal window

Screenshot of profile in modal window

Video in a Modal Window

Screenshot of video linked to modal window

To play a YouTube video in a modal window add the following in the HTML view of the wysiwyg.

<a class="colorbox-load video-thumb" href="//www.youtube.com/embed/youtube_id?width=640&height=380&iframe=true&autoplay=1&rel=0"><img src="http://img.youtube.com/vi/youtube_id/mqdefault.jpg" style="display: block;"></a>

YouTube ID: This is the ID number that YouTube assigns to each specific video. Replace both instances of youtube_id with the ID number of video you are linking to. The ID number instance in the img tag will use the videos thumbnail image that YouTube provides.

The following variables in the code can be changed to customize the video experience.

  • Width and Height: This is the size of the video in the modal window. Change it to modify the video size.
  • Autoplay: This determines if the video plays automatically or not. autoplay=1 means it will play automatically. autoplay=0 means the user has to click the play button.
  • Related Videos: This determines if related videos are shown at the end of the video. rel=1 means related videos will be shown. rel=0 means they will not.