blob: d33581c383f0ac4cacf7108f581c65c9480857d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="website_blog" inherit_id="website.snippets" name="Snippet Blog">
<xpath expr="//t[@id='blog_posts_hook']" position="replace">
<t t-snippet="website_blog.s_latest_posts" t-thumbnail="/website_blog/static/src/img/s_latest_posts.svg"/>
</xpath>
</template>
<template id="snippet_options" inherit_id="website.snippet_options" name="Blog snippet options">
<xpath expr="." position="inside">
<div data-js="BlogPostTagSelection" data-selector=".o_wblog_post_page_cover" data-target="#o_wblog_post_name">
<we-row string="Tag List">
<we-button data-name="edit_tags_opt" class="fa fa-pencil" title="Edit" data-edit-tag-list="" data-no-preview="true"/>
<we-button data-name="save_tags_opt" class="fa fa-save" title="Save" data-save-tag-list="" data-no-preview="true"/>
</we-row>
<div class="o_wblog_tag_list"/>
<!-- Addition controls -->
<we-select string="Existing" data-name="blog_existing_tag_opt" data-no-preview="true"/>
<we-row string="New tag" class="o_wblog_new_tag">
<we-input data-name="new_tag_input_opt" data-set-new-tag-name="" placeholder="Name"/>
<we-button title="Confirm" data-name="new_tag_button_opt" class="fa fa-plus o_we_text_success" data-confirm-new="" data-no-preview="true"/>
</we-row>
</div>
</xpath>
<xpath expr="//*[@data-js='anchor']" position="attributes">
<attribute name="data-exclude" add=".o_wblog_post_content_field > :not(div, section)" separator=","/>
</xpath>
<!-- Hides ContainerWidth option for content in blog posts -->
<xpath expr="//div[@data-js='ContainerWidth']" position="attributes">
<attribute name="data-exclude" add="#o_wblog_post_content *" separator=","/>
</xpath>
</template>
</odoo>
|