Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/collective/collective.fieldedit
A flexible form to edit selected fields of a content type
https://github.com/collective/collective.fieldedit
Last synced: 8 days ago
JSON representation
A flexible form to edit selected fields of a content type
- Host: GitHub
- URL: https://github.com/collective/collective.fieldedit
- Owner: collective
- License: gpl-2.0
- Created: 2017-09-30T13:04:42.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-02T21:26:49.000Z (about 1 year ago)
- Last Synced: 2024-08-18T04:12:41.282Z (3 months ago)
- Language: Python
- Size: 69.3 KB
- Stars: 3
- Watchers: 11
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE.GPL
Awesome Lists containing this project
- awesome-plone - collective.fieldedit - A flexible form to edit selected fields of a content type. (Forms)
README
.. This README is meant for consumption by humans and pypi. Pypi can render rst files so please do not use Sphinx features.
If you want to learn more about writing documentation, please check out: http://docs.plone.org/about/documentation_styleguide.html
This text does not appear on pypi or github. It is a comment... image:: https://img.shields.io/pypi/v/collective.fieldedit.svg
:target: https://pypi.python.org/pypi/collective.fieldedit/
:alt: Latest Version.. image:: https://img.shields.io/pypi/status/collective.fieldedit.svg
:target: https://pypi.python.org/pypi/collective.fieldedit
:alt: Egg Status.. image:: https://img.shields.io/pypi/pyversions/collective.fieldedit.svg?style=plastic :alt: Supported - Python Versions
.. image:: https://img.shields.io/pypi/l/collective.fieldedit.svg
:target: https://pypi.python.org/pypi/collective.fieldedit/
:alt: License====================
collective.fieldedit
====================A view to edit selected fields of a content type.
Features
--------- Useable by simply calling a view with a the fields you want to edit as query-string-parameters
- Select the field or fields you want to edit
- For each field you can choose between input, display and hidden
- Uses the same widgets and validators as the default edit-form
- Respects schema-hints like field-permissions, invariants and widgets
- Nice to use in modals/popups fo allow editing one ore more fields (but not all)Use it by adding a link to the view ``@@field_edit_form`` and pass the fiels you want to edit as a query-string with up to three parameters separated by a ":" for each field.
Examples
--------Edit the text of a document::
http://localhost:8080/Plone/front-page/@@field_edit_form?fields=IRichTextBehavior.text
Edit the fields title and subjects::
http://localhost:8080/Plone/front-page/@@field_edit_form?fields=IDublinCore.subjects&fields=IDublinCore.title
Display the text and edit the publishing date::
http://localhost:8080/Plone/front-page/@@field_edit_form?fields=IRichTextBehavior.text:display:0&fields=IRelatedItems.relatedItems
Render a link to edit the title in a modal:
.. code-block::
Edit multiple fields:
.. code-block::
Display one field, edit another"
.. code-block::
Hide the label:
.. code-block::
Add a hidden field:
.. code-block::
Behavior-fields need to be prefixed with the Behavior:
.. code-block::
Supported Versions
------------------collective.fieldedit is tested in Plone 5.1, 5.2 and 6.
Installation
------------Install collective.fieldedit by adding it to your buildout::
[buildout]
...
eggs =
collective.fieldeditand then running ``bin/buildout``
Then got to the add-on controlpanel (``/prefs_install_products_form``) to enable it.
Contribute
----------- Issue Tracker: https://github.com/collective/collective.fieldedit/issues
- Source Code: https://github.com/collective/collective.fieldeditLicense
-------The project is licensed under the GPLv2.