Metadata

Distro Index Owner:
eea
Home Page:
Products.OrderableReferenceField
License
GPL
Version:
1.3
Last updated:
2016-04-18
Keywords:

Products.OrderableReferenceField

Files

Indexes

This product provides an Archetype field that's very similiar to the Archetypes Reference field, with the addition that it stores the order of referenced objects

Introduction

This product provides an Archetype field that's very similiar to the Archetypes Reference field, with the addition that it stores the order of referenced objects.

You can use two different widget for manage reference order:

Usage

  1. Add this package to your buildout or setup.py of your custom-package
  1. Add one of those lines to your custom Archetype to import the fields:

    from Products.OrderableReferenceField import OrderableReferenceField
    

    or:

    from Products.OrderableReferenceField import OrderableReferenceBrowserWidget
    
  2. In your schema, add an OrderableReferenceField like this:

    BaseSchema + Schema(( ...
        OrderableReferenceField('afield', relationship='somrel'),
        ...
    ))
    

    in alternative, write something like this for use the other widget:

    BaseSchema + Schema(( ...
        OrderableReferenceField('afield',
                                relationship='somrel',
                                OrderableReferenceField()),
        ...
    ))
    

Credits

Changelog

1.3 - (2016-04-18)

  • Change: alternative OrderableReferenceBrowserWidget (using the original Plone pop-up to select objects) [filippo1178, marco.mariani]
  • Change: removed z3c.autoinclude includeDependencies [keul]
  • Change: no need to register the widget JavaScript sources globally in the portal_javascript tool [keul]

1.2-beta4 (2010-11-17)

1.2-beta3 (2010-04-14)

  • First egg release to PyPI. [naro]
  • Move Install.py to GS-profile [WouterVH]
  • Add z3c.autoinclude entry point for automatic ZCML loading in Plone 3.3+. [WouterVH]
  • add MANIFEST.in-file [WouterVH]
  • Eggification [aclark]
  • Bug fix: when you select an item on the left (the options) and do not move it to the right (the selected items) then when saving this would happen anyway. Fixes http://plone.org/products/orderablereferencefield/issues/1 [Giovanni Toffoli]
  • Improve addable support. [Giovanni Toffoli]
  • fixed import failure [timte]
  • added support for relations and made the field class backward-compatible (means that switching from referencefield to orderablereferencefield does not break existing data) [zworkb]

1.1 (10-03-2007)

  • Added the javascript to ResourceRegistries, and created orderablerefence.css which allows you to change the look and feel without changing the template. [jladage]
  • Added two example types for testing purposes, Now that we have a these we can start writing testbrower functional tests. [jladage]
  • Moved the style tags to orderablereference.css and added ids and class to the widget. [mirella]
  • Added missing <ul> tag in the view marco of the widget. [jladage]

1.0 (25-05-2006)

  • Modified the widget and based it on AT's inandout widget for better manipulation. [ender]
  • Fixed some bugs in the js code (generated errors when moving up/down) [ender]