Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2994 Lượt xem

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. 


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ

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.