collective.contact_behaviors
is a collection of additional behaviors and vocabularies for Dexterity content types.
-
collective.contact_behaviors.address_info
: Provides address information fields:- address
- address_2
- city
- state
- postal_code
- country
-
collective.contact_behaviors.contact_info
: Provides contact information fields:- contact_email
- contact_website
- contact_phone
id | title | Usage |
---|---|---|
collective.contact_behaviors.address_info.view | collective.contact_behaviors: View Basic Address Information | Read access to city , state , postal_code , country |
collective.contact_behaviors.address_info_details.view | collective.contact_behaviors: View Detailed Address Information | Read access to address , address_2 |
collective.contact_behaviors.contact_info.view | collective.contact_behaviors: View Contact Information | Read access to contact_email , contact_website , contact_phone |
This package adds Indexes and Metadata to Portal Catalog.
Content Attribute | Index Type | Metadata |
---|---|---|
country | FieldIndex | ✅ |
contact_email | FieldIndex | ❌ |
This package is being used by the following add-ons:
This package is supposed to be used by Plone integrators on their add-ons.
Add collective.contact_behaviors
as a dependency on your package's setup.py
install_requires = [
"collective.contact_behaviors",
"Plone",
"plone.restapi",
"setuptools",
],
Also, add collective.contact_behaviors
to your package's configure.zcml
(or dependencies.zcml
):
<include package="collective.contact_behaviors" />
To automatically enable this package when your add-on is installed, add the following line inside the package's profiles/default/metadata.xml
dependencies
element:
<dependency>profile-collective.contact_behaviors:default</dependency>
And to enable the behaviors provided here to a specific content type, please edit your type configuration and include the following lines (or one of them) to the behaviors
property:
<element value="collective.contact_behaviors.address_info" />
<element value="collective.contact_behaviors.contact_info" />
We welcome contributions to collective.contact_behaviors
.
You can create an issue in the issue tracker, or contact a maintainer.
You need a working Python environment version 3.8 or later.
Then install the dependencies and a development instance using:
make install
By default, we use the latest Plone version in the 6.x series.
make i18n
make format
make test
The project is licensed under GPLv2.