{"id":22737803,"url":"https://github.com/fourdigits/products.orderablereferencefield","last_synced_at":"2025-03-30T03:21:23.695Z","repository":{"id":147073600,"uuid":"116132873","full_name":"fourdigits/Products.OrderableReferenceField","owner":"fourdigits","description":null,"archived":false,"fork":false,"pushed_at":"2018-01-03T12:55:46.000Z","size":2144,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T05:41:24.063Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fourdigits.png","metadata":{"files":{"readme":"README.txt","changelog":"CHANGES.txt","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-03T12:09:51.000Z","updated_at":"2018-01-03T12:53:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"cf8702e6-9775-443f-89fa-abab6bbd776a","html_url":"https://github.com/fourdigits/Products.OrderableReferenceField","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourdigits%2FProducts.OrderableReferenceField","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourdigits%2FProducts.OrderableReferenceField/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourdigits%2FProducts.OrderableReferenceField/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fourdigits%2FProducts.OrderableReferenceField/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fourdigits","download_url":"https://codeload.github.com/fourdigits/Products.OrderableReferenceField/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246270802,"owners_count":20750465,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-10T22:17:57.073Z","updated_at":"2025-03-30T03:21:23.687Z","avatar_url":"https://github.com/fourdigits.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Introduction\n============\n\nThis product provides an Archetype field that's very similiar to the Archetypes\nReference field, with the addition that it stores the order of referenced objects.\n\nYou can use two different widget for manage reference order:\n\n- the ``OrderableReferenceField`` (default ones), someway similar to the\n  `InAndOutWidget`__\n- the ``OrderableReferenceBrowserWidget``, that use the default `ReferenceBrowserWidget`__\n\n__ http://plone.org/documentation/manual/developer-manual/archetypes/fields/widgets-reference#InAndOutWidget\n__ http://plone.org/documentation/manual/developer-manual/archetypes/fields/widgets-reference#ReferenceBrowserWidget\n\nUsage\n-----\n\n1. Add this package to your buildout or setup.py of your custom-package\n\n3. Add one of those lines to your custom Archetype to import the fields::\n\n    from Products.OrderableReferenceField import OrderableReferenceField\n    \n   or::\n    \n    from Products.OrderableReferenceField import OrderableReferenceBrowserWidget\n\n4. In your schema, add an OrderableReferenceField like this::\n\n    BaseSchema + Schema(( ...\n        OrderableReferenceField('afield', relationship='somrel'),\n        ...\n    ))\n\n   in alternative, write something like this for use the other widget::\n   \n    BaseSchema + Schema(( ...\n        OrderableReferenceField('afield',\n                                relationship='somrel',\n                                OrderableReferenceField()),\n        ...\n    ))\n\nCredits\n-------\n\n- Written by Daniel Nouri \u003cd.nouri@zestsoftware.nl\u003e\n\n- Thanks to Ilia Goranov \u003cbabailiica@babailiica.com\u003e for the JavaScript\n\n- Thanks to Ender \u003cDanny Bloemendaal, danny.bloemendaal@informaat.nl\u003e for\n  improving usability of the widget.\n\n- Thanks to jladage \u003cJean-Paul Ladage, j.ladage@zestsoftware.nl\u003e for adding the\n  css and js to ResourceRegistries\n\n- Thanks to mirella \u003cMirella van Teulingen, m.van.teulingen@zestsoftware.nl\u003e\n  for cleaning up the template by moving style elements to the css.\n\n- Eggification by aclark\n\n- Move install-code to GS-profiles by WouterVH\n\n- ``OrderableReferenceBrowserWidget`` widget added by RedTurtle Technology\n  \u003csviluppoplone@redturtle.net\u003e\n\nCopyright\n---------\n\nCopyright (C) 2006 \"Zest Software\": http://zestsoftware.nl\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffourdigits%2Fproducts.orderablereferencefield","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffourdigits%2Fproducts.orderablereferencefield","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffourdigits%2Fproducts.orderablereferencefield/lists"}