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
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:
Add one of those lines to your custom Archetype to import the fields:
from Products.OrderableReferenceField import OrderableReferenceField
or:
from Products.OrderableReferenceField import OrderableReferenceBrowserWidget
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()), ... ))
Copyright (C) 2006 "Zest Software": http://zestsoftware.nl