-
Notifications
You must be signed in to change notification settings - Fork 26
Adding an image to a question
At the time of producing this xblock, EdX doesn't have the ability to allow xblocks to use the data store that comes with the platform. This means that, unfortunately, for the time being, adding images or other assets is a little cumbersome. It's a three-step process;
From EdX Studio, click Content
and then from the subsequent menu click Files and Uploads
Clicking the Files and Uploads
menu item may bring you either to a list of files - if you've already uploaded files before - or to a screen asking you to add your first;
If you are greeted with the above click the big Upload your first asset
button. If you are presented with a list of assets, then you should still see a Upload New File
button. Press the appropriate button and you'll see something like the following;
Press the Choose File
button and select the file from your local filesystem. Then go ahead and complete the upload and you should see something like the following;
At this point you should see a list of assets (which will include (or only be) the one you just uploaded). It should looks something similar to
Now we have uploaded an image we need to copy the path to that image. From the list of assets you will see a column called URL
. This will contain 2 paths. A studio
and a web
url. We need the studio
url. So go ahead and click on the url, it should start with something like static/
so it should be something like static/your-file-name.jpg
Copy this URL onto your clipboard. Now we're ready to use this image in our UBCPI tool.
You can add an image for the question or for one (or more) of the options. To do so, click the Add Image
button below the item to which you wish to add an image.
Clicking the Add Image
button will display 2 more fields. One is the Image URL
and one is the Image Position
. Paste the path you copied in step 2 into the Image URL
box. Then decide if you wish to display the image above or below the question/option text. Now save and your image will be visible for your question or option.
UBCPI is a tool developed by the University of British Columbia for EdX