https://github.com/ezsystems/ezwt-ls-extension
[READ-ONLY] Subtree split from ezsystems/ezwt, for use via composer
https://github.com/ezsystems/ezwt-ls-extension
Last synced: about 1 year ago
JSON representation
[READ-ONLY] Subtree split from ezsystems/ezwt, for use via composer
- Host: GitHub
- URL: https://github.com/ezsystems/ezwt-ls-extension
- Owner: ezsystems
- License: other
- Created: 2014-05-14T15:29:59.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2019-02-17T09:32:25.000Z (over 7 years ago)
- Last Synced: 2025-07-13T19:02:20.627Z (about 1 year ago)
- Language: Smarty
- Homepage: https://github.com/ezsystems/ezwt
- Size: 197 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
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:
@import url({"stylesheets/websitetoolbar.css"|ezdesign});
{def $user_hash = concat( $current_user.role_id_list|implode( '_' ), '_', $current_user.limited_assignment_value_list|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).