Message-ID: <771410101.3062.1485851824422.JavaMail.confluence@ip-10-127-227-164> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3061_1055104356.1485851824422" ------=_Part_3061_1055104356.1485851824422 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html Display the eZ Website Toolbar

Display the eZ Website Toolbar

EZP Version >=3D 5.3

Configuring the display of the Website Toolbar

To have the regular Webin Toolbar, first add the proper CSS file to your= head template : extension/ezwt/design/standard/stylesheets/websiteto= olbar.css

=20
<style type=3D"text/css">
    @import url("{{ asset('extension/ezwt/design/standard/stylesheets/websi=
tetoolbar.css') }}");
</style>
=20

 

Then, in your template, you can add the Webin Toolbar by definining the = display of the websiteToolbarAction from the ezpublish_l= egacy.website_toolbar.controller Controller

=20
{% if location is defined %}
    {{ render( controller( "ezpublish_legacy.website_toolbar.controller:web=
siteToolbarAction", { 'locationId': location.id} ) ) }}
{% endif %}
=20

Redirectio= n after publishing

Versions: 5.3.4, 5.4.1.

In order to get properly redirected after publishing or discarding, over= rides of legacy's content/edit.tpl must include the = content/edit_redirection.tpl. It adds hidden fields required b= y legacy for those redirections.

=20
<form method=3D"POST" action=3D"content/edit/...">
  <!--...-->
  {include uri=3D"design:content/edit_redirection.tpl"}
</form>
=20

Abo= ut the website_toolbar controller

The websiteToolbarAction renders the whole Webin Toolbar, and if the log= ged in user doesn't have the required permission, an empty response is retu= rned

------=_Part_3061_1055104356.1485851824422--