Community mailing list archives

community@mail.odoo.com

odoo v9 docs -> theme tutorial -> snippets question

by
Arjan Duijs
- 01/12/2016 09:36:22
Hi all,
I have been following the theme turorial but using the examples of the snippets dont seem to work properly.

The previous code will create the snippet’s content, but we still need to place it into the editor bar, so the user will be able to drag&drop it into the page. Copy/paste this template in your snippets.xml file.

<template id="place_into_bar" inherit_id="website.snippets" name="Place into bar">
  <xpath expr="//div[@id='snippet_structure']" position="inside">
    <t t-snippet="theme_tutorial.snippet_testimonial"
       t-thumbnail="/theme_tutorial/static/src/img/ui/snippet_thumb.jpg"/>
  </xpath>
</template>



When i place this code in the snippets.xml it inserts the actual snippet into the sidebar, and not the dragable thumb

any idea what the code in this example should be?