options.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <openerp>
  3. <data>
  4. <template id="s_latest_posts_place_in_tab" inherit_id="website_less.snippets">
  5. <xpath expr="//div[@id='snippet_feature']" position="inside">
  6. <t t-snippet="snippet_latest_posts.s_latest_posts" t-thumbnail="/snippet_latest_posts/static/src/img/s_latest_posts.jpg"/>
  7. <t t-snippet="snippet_latest_posts.s_latest_posts_big_picture" t-thumbnail="/snippet_latest_posts/static/src/img/s_latest_posts_big_picture.jpg"/>
  8. </xpath>
  9. </template>
  10. <!-- Snippet's Options -->
  11. <template id="s_latest_posts_option" inherit_id="website_less.snippet_options">
  12. <xpath expr="//div[@data-js='blog-style']" position="before">
  13. <div data-js='js_get_posts' data-selector=".js_get_posts" />
  14. <div data-js='js_get_posts_selectBlog' data-selector=".js_get_posts">
  15. <li class="dropdown-submenu">
  16. <a tabindex="-1" href="#">Limitado por Blogs</a>
  17. <ul class="dropdown-menu">
  18. <li data-filter_by_blog_id="0"><a>Todos los Blogs</a></li>
  19. <!-- the blogs' list will be generated in js -->
  20. </ul>
  21. </li>
  22. </div>
  23. <div data-js='js_get_posts_limit' data-selector=".js_get_posts">
  24. <li class="dropdown-submenu">
  25. <a tabindex="-1" href="#">Limitar por Cantidad...</a>
  26. <ul class="dropdown-menu">
  27. <li data-posts_limit="1"><a>1 post</a></li>
  28. <li data-posts_limit="2"><a>2 posts</a></li>
  29. <li data-posts_limit="3"><a>3 posts</a></li>
  30. <li data-posts_limit="4"><a>4 posts</a></li>
  31. <li data-posts_limit="5"><a>5 posts</a></li>
  32. <li data-posts_limit="6"><a>6 posts</a></li>
  33. <li data-posts_limit="7"><a>7 posts</a></li>
  34. <li data-posts_limit="8"><a>8 posts</a></li>
  35. <li data-posts_limit="9"><a>9 posts</a></li>
  36. <li data-posts_limit="10"><a>10 posts</a></li>
  37. </ul>
  38. </li>
  39. </div>
  40. </xpath>
  41. </template>
  42. </data>
  43. </openerp>