A portlet that provides the links of an action category
Project description
collective.portlet.actions
By Ingeniweb.
Show in a portlet of a Plone site the links and (maybe translated) titles of the actions of a selected category.
Compared with the static text portlet, action URLs are computed and links may be protected by a TALES condition and permissions, such the same portlet may provide different links to various users or in various contexts.
Requirements
collective.portlet.actions requires Plone 3.x. It has been tested with Plone 3.0, Plone 3.1 and Plone 3.2 and may or may not work with future Plone versions.
Install
Usual install
collective.portlet.actions is a Python egg with a ZCML slug, such you just need to add these lines in your zc.buildout config file:
[instance] recipe = plone.recipe.zope2instance ... eggs = ... collective.portlet.actions ... zcml = ... collective.portlet.actions
Then re-run your buildout config.
See docs/INSTALL.txt for other installation methods.
Development
Please read the comments on top of buildout.cfg that comes with the subversion checkout.
Add a portlet
Of course, if an existing actions category doesn’t fit what you need, you may add your own actions category in the portal_actions tool and add actions in it. Action titles may be translated if you provide an i18n domain.
You may add an icon directly in the action definition, as a TAL expression that provides the icon object. e.g. portal/book_icon.gif.
You may associate an icon to each action using the portal_actionicons tool too if you prefer the old way.
When done, add an ‘Actions portlet’ anywhere you want. Give a title and select the appropriate actions category.
If you choose to show action icons, you may change the default icon for actions that have no icon from their own or through the portal_actionicons tool. The value for the default icon is evaluated from the context when publishing the portlet.
You’re done.
License
This component is protected by the terms of the GPL v2 license. Please read the docs/LICENSE.\* files.
Further documentation
Please read the docs directory, as well as other specific README.txt in other places of this component.
Home page
You may find further informations, a tracker and support resources from the home page at plone.org.
Subversion repository
https://svn.plone.org/svn/collective/collective.portlet.actions
Credits
Development
Main developper: Gilles Lenfant
Sponsor: EDF
Translations
See collective/portlet/actions/locales/README.txt if you need to translate this component into another language.
French (fr): Gilles Lenfant
Changelog
Please use following format for further changes (latest first):
1.0.1
2009/05/20: fixed caching of actionLinks renderer’s method, caching is still applied but this is possible now to have more than one actions portlet with a different settings on the same page, appropriate test added [piv]
2008/11/10: Change summary [svn login]
1.0.0
Initial release
Project details
Release history Release notifications | RSS feed
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 collective.portlet.actions-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a00645a92834ee8f66aa46bdda27ecd3602cc0ad81eebff30f9f7d951edc67ce |
|
MD5 | f44578bc73c4eed4a28b4c77dc220c32 |
|
BLAKE2b-256 | c9e1732d6772b70c4dc84a4ac965f4564d98d7d9facfde38225af02c149c9b65 |
Hashes for collective.portlet.actions-1.0.1-py2.4.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e64e7b7bc355921acf37018f49828ff4ec0d98511d4d390e600fcf122958040 |
|
MD5 | e60d83a78f08c97262b4196eb9e66d45 |
|
BLAKE2b-256 | b78d7c8b84bec6504f2737516aae511453f35c04fff8cf20a0d141664740fb38 |