diff options
| author | Patrick Hoste <pko@odoo.com> | 2019-09-09 12:18:50 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-12-24 09:53:20 +0000 |
| commit | 1894dc54148bd008ffd8ab29ce5cf6cb9c4afaea (patch) | |
| tree | 5ec65fe9ae1359b98a6cd8cacecf478f9951734b /addons/website_slides/data | |
| parent | ef8457cac755b1cc3afd55ebaee0920411797568 (diff) | |
[IMP] website_slides: allow to download slide content and additional resources
PURPOSE
Currently eLearning lacks feature of having downloadable resources on
lessons. Indeed for example teachers would like to attach zip files or
other resources linked to a given lesson.
SPECIFICATIONS
You can now allow the user to download the slide content for pdf and image
slides. A new icon will be visible next to the fullscreen button on the pdf
viewer.
Course maintainers can also add additional resources to a slide which will be
available to download for the user.
Task ID 2066741
PR #39890
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/website_slides/data')
| -rw-r--r-- | addons/website_slides/data/slide_slide_demo.xml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/addons/website_slides/data/slide_slide_demo.xml b/addons/website_slides/data/slide_slide_demo.xml index d5925fe69f9..5c8d20cf1f7 100644 --- a/addons/website_slides/data/slide_slide_demo.xml +++ b/addons/website_slides/data/slide_slide_demo.xml @@ -18,6 +18,12 @@ <field name="tag_ids" eval="[(4, ref('website_slides.slide_tag_demo_tools')), (4, ref('website_slides.slide_tag_demo_howto'))]"/> <field name="description">A summary of know-how: how and what. All the basics for this course about gardening.</field> </record> + <!--RESOURCE--> + <record id="slide_slide_demo_0_0_resource_0" model="slide.slide.resource"> + <field name="name">Document</field> + <field name="data" type="base64" file="website_slides/static/src/img/document.png"/> + <field name="slide_id" ref="slide_slide_demo_0_0"/> + </record> <record id="slide_slide_demo_0_1" model="slide.slide"> <field name="name">Home Gardening</field> <field name="sequence">2</field> @@ -191,6 +197,12 @@ <field name="link">http://www.example.com</field> <field name="slide_id" ref="slide_slide_demo_1_2"/> </record> + <!--RESOURCE--> + <record id="slide_slide_demo_1_2_resource_0" model="slide.slide.resource"> + <field name="name">Presentation</field> + <field name="data" type="base64" file="website_slides/static/src/img/presentation.pdf"/> + <field name="slide_id" ref="slide_slide_demo_1_2"/> + </record> <record id="slide_slide_demo_1_3" model="slide.slide"> <field name="name">How to plant a potted tree</field> <field name="sequence">5</field> @@ -392,6 +404,12 @@ <field name="link">http://www.example.com</field> <field name="slide_id" ref="slide_slide_demo_2_0"/> </record> + <!--RESOURCE--> + <record id="slide_slide_demo_2_0_resource_0" model="slide.slide.resource"> + <field name="name">Tree image</field> + <field name="data" type="base64" file="website_slides/static/src/img/slide_demo_tree_img_2.jpg"/> + <field name="slide_id" ref="slide_slide_demo_2_0"/> + </record> <!-- QUIZZ --> <record id="slide_slide_demo_2_0_question_0" model="slide.question"> <field name="question">Do you make beams out of lemon trees ?</field> |
