I thought I'd share a trick I've been using within our Totara 12 as I'm curious what others think - i.e. good idea or terrible idea?
Using the Page Activity it is very easy to create a page activity that includes text and to embed an image, a video or an audio file. This can all be done using the html editor when editing the Page Activity.
What isn't possible from the menu is to embed a PDF.
You can of course embed a PDF using the File Activity but it is very limited and only works if the PDF is the single file you want on the page.
I wanted to create a course that included a page with a number of file types embedded within the page, images, videos and a PDF.
To acheive this I've used a two step approach.
Step one is to use the FILE Activity to upload the PDF. I set the the Display Setting to OPEN
I then view the result. This will show the PDF within the browser and critically enables me to copy the unique URL of the PDF file (i.e. its location within the LMS)
Step two is to create a PAGE Activity. In the Page Activity I use the HTML editor to insert some DIV html code (see below) which includes the URL for the PDF I uploaded within the file activity.
You can tweak the various size settings (Width abd Height) within the code as required but the end result is that the PDF file will now be embedded within the Page Activity.
As this is a Page Activity you can include other elements within this page - such as text, images, video and audio.
I think this adds a really useful capability to the Page Activity - enabling you to embed PDF files in addition to images, video and audio files.
What do you think? Terrible idea or actually useful?
Here is the HTML code (also attached a TXT file):
<!-- The HR command creates a line across your webpage -->
<hr>
<div class="resourcecontent resourcepdf" align="center">
<object id="resourceobject" data="PUT_THE_UNIQUE_URL_FOR_THE_PDF_HERE" type="application/pdf" width="95%" height="600">
<param name="src" value="PUT_THE_UNIQUE_URL_FOR_THE_PDF_HERE" type="application/pdf">
</object>
</div>
<!-- The HR command creates a line across your webpage -->
<hr>