Download the PHP package se7enxweb/ezwt-ls-extension without Composer
On this page you can find all versions of the php package se7enxweb/ezwt-ls-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download se7enxweb/ezwt-ls-extension
More information about se7enxweb/ezwt-ls-extension
Files in se7enxweb/ezwt-ls-extension
Package ezwt-ls-extension
Short Description eZ Publish Legacy website toolbar extension. Great for editing small to medium sized website content by untrained end users.
License GPL-2.0-or-later
Informations about the package ezwt-ls-extension
Installation
Copy the ezwt extension to your existing eZ Publish installation, then enable it in the Administration Interface (in the Extensions menu under the Setup tab).
Next, insert the following lines into your pagelayout.tpl file:
{def $user_hash = concat( $current_user.role_idlist|implode( '' ), '_', $current_user.limited_assignment_valuelist|implode( '' ) )}
{cache-block keys=array( $uri_string, $user_hash )}
{include uri='design:parts/website_toolbar.tpl' current_node_id=$module_result.node_id}
{/cache-block}
Wrapping cache blocks around eZ Website Toolbar in pagelayout.tpl template prevent additional SQL calls to database server.
In content/edit.tpl or its override file, include: {include uri='design:parts/website_toolbar_edit.tpl'}
In content/view/versionview.tpl or its override file, include: {include uri='design:parts/website_toolbar_versionview.tpl'}
Finally, clear all the caches (under the Cache window on the right of the Administration Interface) and you should now be able to use the Website Toolbar in your existing eZ Publish project. Of course, you will need to configure it a bit more (see extension/ezwt/settings/websitetoolbar.ini.append.php).