Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2971 มุมมอง

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. 


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง

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.