A finder to search/select portal objects for Plone
Project description
collective.plonefinder
Ajax popup to reference plone contents.
This code is an extraction of plonearticle explorer for referencables contents
The intent is to make it usable in different situations :
for referencable fields inside AT edit forms
to store selected contents in zope3 forms (portlet forms as example)
for collective.ckeditor or any possible wysiwyg editor for referencing images or contents inside a rich text field, it’s also possible to upload files / images and create folders with this product (big part of code taken from collective.uploadify)
for links fields (as remoteUrl in ATLink) to reference internal links
This work has been started at Ingeniweb in 2007 by Christophe Bosse & Jean-mat Grimaldi for PloneArticle product.
How to use it as reference widget :
A reference widget for zope3 forms is available inside this product.
The widget can be used to store objects references in a sequence field.
Example of use in a portlet form for a field named target_contents:
from collective.plonefinder.widgets.referencewidget import FinderSelectWidget target_contents = schema.Tuple (title=u"Browse for contents", description =u"Choose contents to display " "with a plone finder window. ", required = False, default= () ) form_fields['target_contents'].custom_widget = FinderSelectWidget
Example of use for images referencing:
from collective.plonefinder.widgets.referencewidget import FinderSelectImageWidget target_images = schema.Tuple (title=u"Browse for images", description =u"Choose images to display " "with a plone finder window. " "You can select different image sizes. " "You can upload new images. ", required = False, default= () ) form_fields['target_images'].custom_widget = FinderSelectImageWidget
How to use it in wysiwyg editor :
See the collective.ckeditor product as example.
You can easily use it with another editor.
Todo :
i18N support
Ajax opening/moving and all window effects inside the same browser window (in progress)
Improve some reference widget options (add option to hide or show selected items in browser)
New zope3 widget to store urls (for a string field)
Code repository :
https://svn.plone.org/svn/collective/collective.plonefinder/trunk
Support :
Questions and comments to support@ingeniweb.com
Changelog
1.0.0-b
images sizes displayed in finder are taken from portal properties imaging properties when exists
choose image sizes : contextual menus added
many IE fixes and cosmetic changes
plone4 icons style used also under plone3
reference objects widget added for zope3 forms (can be used in portlets)
1.0.0-a
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.plonefinder-1.0.0b.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | 697f48f8c2da047ded28cf7e11093f665e5c4e012bbaca5cac0e5e5fc92bc0f4 |
|
MD5 | acb3bf64da3e3b660384070aa1d6ee09 |
|
BLAKE2b-256 | fb6e8aba3afb868f4deb33e8f5952e36ff975452a9339e1b104496840bb7c7ee |
Hashes for collective.plonefinder-1.0.0b-py2.6.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6710f76852a8d13bfb8cd5609e2f71672e6625fdbcc534d5f73df5c0f521a757 |
|
MD5 | 25bdfb20296f7c1ca3bd58124fb7a0eb |
|
BLAKE2b-256 | dcf7a980883d42cb76db0e325dc616ffbbec10016865b1ce8ced046cb24ca0a0 |