Metadata-Version: 1.1
Name: collective.fieldedit
Version: 1.0a2
Summary: A flexible form to edit selected fields of a content type.
Home-page: https://pypi.python.org/pypi/collective.fieldedit
Author: Philip Bauer
Author-email: bauer@starzel.de
License: GPL version 2
Description: .. 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://travis-ci.org/collective/collective.fieldedit.svg?branch=master
            :target: https://travis-ci.org/collective/collective.fieldedit
        
        .. image:: https://coveralls.io/repos/github/collective/collective.fieldedit/badge.svg?branch=master
            :target: https://coveralls.io/github/collective/collective.fieldedit?branch=master
        
        
        ====================
        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=IRichText.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=IRichText.text:display:0&fields=IRelatedItems.relatedItems
        
        Render a link to edit the title in a modal:
        
        .. code-block::
        
            <a href="${python:context.absolute_url()}/field_edit_form?fields=IBasic.title"
               class="pat-plone-modal"
               data-pat-plone-modal='{"actionOptions": {"reloadWindowOnClose": false, "redirectOnResponse": true},
                                      "buttons": ".formControls > button",
                                      "content": "#content-core"}'>
                Edit the Title in a modal
            </a>
        
        Edit multiple fields:
        
        .. code-block::
        
            <a href="${python:context.absolute_url()}/@@field_edit_form?fields=field1&amp;fields=field2&amp;fields=field3"
                Edit some fields.
            </a>
        
        Display one field, edit another"
        
        .. code-block::
        
            <a href="${python:context.absolute_url()}/@@field_edit_form?fields=field1:display&amp;fields=field2"
                Edit one field, display another.
            </a>
        
        Hide the label:
        
        .. code-block::
        
            <a href="${python:context.absolute_url()}/@@field_edit_form?fields=field1::0"
                Edit one field, display another.
            </a>
        
        Add a hidden field:
        
        .. code-block::
        
            <a href="${python:context.absolute_url()}/@@field_edit_form?fields=field1:hidden&amp;fields=field2"
                Edit one field, display another.
            </a>
        
        Behavior-fields need to be prefixed with the Behavior:
        
        .. code-block::
        
            <a href="${python:context.absolute_url()}/@@field_edit_form?fields=IBasic.title"
                Edit one field, display another.
            </a>
        
        
        Installation
        ------------
        
        Install collective.fieldedit by adding it to your buildout::
        
            [buildout]
        
            ...
        
            eggs =
                collective.fieldedit
        
        
        and then running ``bin/buildout``
        
        
        Contribute
        ----------
        
        - Issue Tracker: https://github.com/collective/collective.fieldedit/issues
        - Source Code: https://github.com/collective/collective.fieldedit
        
        
        License
        -------
        
        The project is licensed under the GPLv2.
        
        
        Contributors
        ============
        
        - Philip Bauer, bauer@starzel.de
        
        
        Changelog
        =========
        
        
        1.0a2 (2018-08-04)
        ------------------
        
        - Fix redirect and remaining webdav locks on cancel (#1)
          [pbauer]
        
        
        1.0a1 (2017-10-10)
        ------------------
        
        - Initial release.
          [pbauer]
        
Keywords: Python Plone
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Plone
Classifier: Framework :: Plone :: 5.0
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
