A Plone product that change the standard Plone behaviour of the views menu
Project description
Products.ATCustomizableView
Overview
A simple Plone product based on monkeypatch to enhance a little the basic Plone control on the default view of contents. Applying some Zope properties to contents you can enhance (or limit) the power of users able to manage views.
For every content of the portal you can block the user ability to change layouts on a single document/folder, instead of having this feature only for the whole content-class. This is simply done adding a new boolean property (fixed_layout) set to True. When this is done, users can’t change the default view (or select folder contents as default view) on this object. Removing this property (or set this to False) will restore normal behaviour.
Again, you can add custom, addition view to a single content. You only need to a new (lines) property called fixed_additional_layouts to the content. Every additional views on this list will be added to basic views avaiable.
Of course you can block and not inherits default views but use only the news ones. To do this just add another (boolean) property called purge_basic_layouts and set it to True.
All those features can be very useful on many Plone sites.
You can set a (non standard?) view to a single content and make the user not able to change your choice.
You can force a stardard view on a content, but again make users not able to change this.
You can develop a new view compatible with some content type, but can choice to not make it avaiable for all content types of the portal. Instead of force this new view to the content you can leave again the choice to the power user that normally manage the “views” menu.
Without this product, too often a Plone developer is forced to develop new, silly content types just for only provide different views policy.
Requirements
Monkeypatch approach is dangerous, collective.monkeypatcher is now required in your buildout.
[instance] ... eggs = ... Products.ATCustomizableView collective.monkeypatcher collective.monkeypatcherpanel ... zcml = ... Products.ATCustomizableView collective.monkeypatcher collective.monkeypatcherpanel ...
Tutorial
This first version of the product has been written related to a tutorial on Plone.it (italian language!).
TODO
What about leave the old ZMI property approach and move to some other technology like Zope3 interfaces, annotations, ?
In any case give to the user a Plone form for managing per-object configuration.
Changes
0.2.0
Forget Plone 2.5 support.
No more ugly-old-style monkey patch, but now collective.monkeypatcher is required. [keul]
Added controls on selectable views. [keul]
0.1.0
Initial releases
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
Built Distribution
Hashes for Products.ATCustomizableView-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca50fbc3e1a657fb5cc136a970825b6820ebe9ca8dc874e6f13d6f5dd974cbf7 |
|
MD5 | b7d9ff1f4f3cc812fe226f954ec9bafd |
|
BLAKE2b-256 | e0174f34aead77409ed48882f674e25d9912c6a38981944afcf2620fefbc7818 |
Hashes for Products.ATCustomizableView-0.2.0-py2.4.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5cee108fca17021779cf1c576ec95fb7fd8b13e5caaa4b418d0d447ae6d7082 |
|
MD5 | cbd33f8a96a86c1f29bf8329000dd63c |
|
BLAKE2b-256 | c4d04925cc4f475898c2c8eb13bf299c2aae56f232dbf04aec0b55db2240a4a3 |