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
Project description
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.
Usage
Add this package to your buildout or setup.py of your custom-package
Add this line to your custom Archetype to import the fields:
from Products.OrderableReferenceField import OrderableReferenceField
In your schema, add an OrderableReferenceField like this:
BaseSchema + Schema(( ... OrderableReferenceField('afield', relationship='somrel'), ... ))
Credits
Written by Daniel Nouri <d.nouri@zestsoftware.nl>
Thanks to Ilia Goranov <babailiica@babailiica.com> for the JavaScript
Thanks to Ender <Danny Bloemendaal, danny.bloemendaal@informaat.nl> for improving usability of the widget.
Thanks to jladage <Jean-Paul Ladage, j.ladage@zestsoftware.nl> for adding the css and js to ResourceRegistries
Thanks to mirella <Mirella van Teulingen, m.van.teulingen@zestsoftware.nl> for cleaning up the template by moving style elements to the css.
Eggification by aclark
Move install-code to GS-profiles by WouterVH
Copyright
Copyright (C) 2006 “Zest Software”:http://zestsoftware.nl
Changelog
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]
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
File details
Details for the file Products.OrderableReferenceField-1.2-beta3.zip
.
File metadata
- Download URL: Products.OrderableReferenceField-1.2-beta3.zip
- Upload date:
- Size: 37.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c27730593f38c29976cd452dd10572889409a7a480492f862ad52e2d8cae6028 |
|
MD5 | a129333d6d5d93ce41e9fedbe5004f17 |
|
BLAKE2b-256 | 9dde0d71acb294cb03d8265b73e7f566df3270c4c23c305e193e5928f9f64e9f |