Skip to main content

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)

Authors :

Jean-mat Grimaldi - Alter Way Solutions

Code repository :

https://svn.plone.org/svn/collective/collective.plonefinder/trunk

Support :

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collective.plonefinder-1.0.0b.zip (125.6 kB view hashes)

Uploaded Source

Built Distribution

collective.plonefinder-1.0.0b-py2.6.egg (131.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page