Allows to toggle edit mode in Plone
Project description
collective.editmodeswitcher
collective.editmodeswitcher allows to toggle between edit and view only mode. This enables users with modify permissions to view a page without editable borders. The current setting is stored in a cookie and thus effective for multiple page views. This is especially useful in single sign on environments.
Install
Add collective.editmodeswitcher to your buildout configuration:
[instance]
eggs +=
collective.editmodeswitcher
or add it as a dependency to one of your packages.
Compatibility
Runs with Plone 4.1, 4.2 and 4.3.
Usage
For toggling the edit-mode call the view @@switch-editmode. This will toggle the edit mode and store the current edit mode status in a cookie for further requests. You can get the current state by calling @@switch-editmode/get_state, this will return enabled, or ‘disabled’.
You may want to place an action somewhere for toggling the edit mode - this integration is not done by collective.editmodeswitcher.
Links
Copyright
This package is copyright by 4teamwork.
collective.editmodeswitcher is licensed under GNU General Public License, version 2.
Changelog
1.0.2 (2016-02-12)
Implement traversable get_state method, which returns the curren edit-mode state. [mathias.leimgruber]
Use ftw.testbrowser for testing. [mathias.leimgruber]
1.0.1 (2013-05-24)
General package clean up: Update Readme, update metadata, testing, declare dependencies
1.0 (2011-02-25)
Initial release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for collective.editmodeswitcher-1.0.2.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d37a5ce46bf5ae0bd435444ef65608d1d7ac9ec42dde8fcb6c80b54b50ce860 |
|
MD5 | 95e26bea83298c45fc76e24e301f0655 |
|
BLAKE2b-256 | df9ef2ae910dce82f92745b124f55bccb197e1fc76bc0f4f35cb0285f1a1d65f |