A full-screen image modal XBlock
Project description
A full-screen image modal XBlock, for use within the Open edX platform.
The full-screen image tool is another way of enabling participants to see more detail in your provided images. This tool is useful for large images with lots of details. A re-sized version of the image displays in the page, but clicking on the image pops open a full-screen modal with the full-size version of the image.
Installation
System Administrator
To install the XBlock on your platform, add the following to your requirements.txt file:
xblock-image-modal
You’ll also need to add this to your INSTALLED_APPS:
imagemodal
Course Staff
To install the XBlock in your course, access your Advanced Module List:
Settings -> Advanced Settings -> Advanced Module List
and add the following:
imagemodal
Use
Course Staff
To add a full-screen image to your course:
upload the image file onto your course’s Files & Uploads page
note: you can skip this step if you’ve already uploaded the image elsewhere, e.g.: S3.
copy the URL on that page
go to a unit in Studio
select “Image Modal XBlock” from the Advanced Components menu
You can now edit and preview the new component.
Using the Studio editor, you can edit the following fields:
display name
image URL
thumbnail URL (defaults to image URL, if not specified)
description (useful for screen readers, longer descriptions)
alt text (useful for screen readers, captions, tags; displays when image does not)
Participants
Click on the image to zoom in full-screen.
Click on the image again to zoom out.
Click and drag to pan around.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file openedx_xblock_image_modal-4.0.0.tar.gz
.
File metadata
- Download URL: openedx_xblock_image_modal-4.0.0.tar.gz
- Upload date:
- Size: 30.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42aaecfa06b0d34b7cee20d2272455205f32792158c2b0368828a4f31f57d0d9 |
|
MD5 | 622d035e0be2b912775a2229d5ad6847 |
|
BLAKE2b-256 | 890debb9272dbc7bdaeebda8e4aa4627a031e6caf1ded2d7ab4f826abb6ba0ff |
File details
Details for the file openedx_xblock_image_modal-4.0.0-py3-none-any.whl
.
File metadata
- Download URL: openedx_xblock_image_modal-4.0.0-py3-none-any.whl
- Upload date:
- Size: 31.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5241c0c6cecbd07262732796a3219ca6ce476b08402122143ecc65f6b5d8c17d |
|
MD5 | 9684fdedccf993504ab4f94c68f42ca3 |
|
BLAKE2b-256 | 03c8ae6121538781140ed08b4855ce5bb49cc9220b820ecb7ffb445bd2392332 |