Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2962 Visualizzazioni

Hi,

I'am editing a course on e-Learning and trying to add a presentation for a course content.

I tried uploading .ppt, .odp, .pdf as presentation type content. I couldn't show the doc. I decided to show the presentation as a webpage. I uploaded to Google Slides. I published the doc. I get my embed code.



It shows the slide on editing screen but when i clicked DONE. It dissappears. 


Avatar
Abbandona
Risposta migliore

Embed code usually uses an iframe tag, but the 'frame', 'iframe', and similar tags are sanitised for slides in e-Learning module.

Try converting the presentation to a PDF file, images, or to a video.

Or

Use the embed_code field that is already in the slide.slide model eLearning module.

Avatar
Abbandona

How can I do this'Use the embed_code field that is already in the slide.slide model eLearning module.'?

You need to override the "def _compute_embed_code(self)..." method or make the embed_code field normally not computable.