Author: |
Camptocamp, Odoo Community Association (OCA) |
License: |
LGPL-3 |
Branch: |
11.0 |
Repository: |
Change2improve/website-cms |
Dependencies: |
cms_delete_content,
cms_info,
cms_status_message,
and
website |
Languages: |
JavaScript (87, 24.2%),
LESS (9, 2.5%),
Python (129, 35.8%),
XML (60, 16.7%),
and
reStructuredText (75, 20.8%) |
Other repositories: |
CompassionCH/website-cms,
ERPLibre/website-cms,
ForgeFlow/website-cms,
Gabinete-Digital/website-cms,
Guobower/website-cms,
Ingeos/website-cms,
JazziMc/website-cms,
MjAbuz/website-cms,
NL66278/website-cms,
NeatNerdPrime/website-cms,
Nooka10/website-cms,
OCA/website-cms,
PCatinean/website-cms,
TelmoSenseFly/website-cms,
VisiionSolucionesTecnologicas/website-cms,
akretion/website-cms,
anhvu-sg/website-cms,
bishalgit/website-cms,
camptocamp/website-cms,
gfcapalbo/website-cms,
grindtildeath/website-cms,
hbrunn/website-cms,
hinfo506/website-cms,
isoscl/website-cms,
josueBulle/website-cms,
lideritjnma/website-cms,
lukehuang/website-cms,
one2pret/website-cms,
pscloud/website-cms,
ravishekharco/website-cms,
redcor/website-cms,
sanube/website-cms,
simahawk/website-cms,
steingabelgaard/website-cms,
wahello/website-cms,
and
x0rzkov/odoo-website-cms |
<a class="reference external image-reference" href="http://www.gnu.org/licenses/LGPL-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-lgpl--3-blue.png" /></a>
<a name="cms-toolbar"></a>
<h2>CMS Toolbar</h2>
<p>Render management actions for CMS contents.</p>
<a name="usage"></a>
<h3>Usage</h3>
<pre>
<code lang="xml"><t t-raw="main_object.cms_render_toolbar()" /></code>
</pre>
<p>You can override all the params. For instance if you don't want the popover:</p>
<pre>
<code lang="xml"><t t-raw="main_object.cms_render_toolbar(show_popover=False)" /></code>
</pre>
<a name="full-list-of-params"></a>
<h3>Full list of params</h3>
<p>Default params from <cite>cms_info</cite>:</p>
<ul class="simple">
<li><cite>is_owner</cite></li>
<li><cite>can_edit</cite></li>
<li><cite>can_create</cite></li>
<li><cite>can_publish</cite></li>
<li><cite>can_delete</cite></li>
<li><cite>create_url</cite></li>
<li><cite>edit_url</cite></li>
<li><cite>delete_url</cite></li>
</ul>
<p>Extra params from <cite>cms_toolbar</cite>:</p>
<ul class="simple">
<li><cite>show_create</cite></li>
<li><cite>show_edit</cite></li>
<li><cite>show_delete</cite></li>
<li><cite>show_publish</cite></li>
<li><cite>show_popover</cite></li>
<li><cite>popover_content_template</cite></li>
<li><cite>main_object</cite></li>
</ul>
<a name="available-actions-buttons"></a>
<h3>Available actions/buttons</h3>
<ul class="simple">
<li>create</li>
<li>edit</li>
<li>delete</li>
<li>publish/unpublish</li>
</ul>
<p>Also, there's a popover feature to remind users to publish contents.</p>
<p>Below you see the default rendering from <cite>cms_toolbar_example</cite>:</p>
<img alt="./images/toolbar_preview.png" src="./images/toolbar_preview.png" />
<a name="bug-tracker"></a>
<h4>Bug Tracker</h4>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/website-cms/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.</p>
<a name="credits"></a>
<h4>Credits</h4>
<a name="contributors"></a>
<h3>Contributors</h3>
<ul class="simple">
<li>Simone Orsi <<a class="reference external" href="mailto:simone.orsi@camptocamp.com">simone.orsi@camptocamp.com</a>></li>
</ul>
<a name="maintainer"></a>
<h3>Maintainer</h3>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>This module is maintained by the OCA.</p>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.</p>
<p>To contribute to this module, please visit <a class="reference external" href="https://odoo-community.org">https://odoo-community.org</a>.</p>