This release is a pre-release and may not be stable for production use.
Contact Behaviors for Plone
Features
collective.contact_behaviors is a collection of additional behaviors and vocabularies for Dexterity content types.
Behaviors
-
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
Permissions
| 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 |
Catalog Indexes
This package adds Indexes and Metadata to Portal Catalog.
| Content Attribute | Index Type | Metadata |
|---|---|---|
| country | FieldIndex | ✅ |
| contact_email | FieldIndex | ❌ |
See it in action
This package is being used by the following add-ons:
Documentation
This package is supposed to be used by Plone integrators on their add-ons.
Installation
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" />
Generic Setup
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" />
Source Code and Contributions
We welcome contributions to collective.contact_behaviors.
You can create an issue in the issue tracker, or contact a maintainer.
Development setup
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.
Update translations
make i18n
Format codebase
make format
Run tests
make test
License
The project is licensed under GPLv2.
Metadata
Release files for collective.contact_behaviors 1.0.0b6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| collective_contact_behaviors-1.0.0b6.tar.gz | 26.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| collective_contact_behaviors-1.0.0b6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 68.5 kB
Release files / collective_contact_behaviors-1.0.0b6.tar.gz
| Download URL | collective_contact_behaviors-1.0.0b6.tar.gz |
|---|---|
| Size | 26.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b70e669c67769874bfdecef06ecef66c3439e9d8f7acc1255fc80ab60afcf427
|
|
BLAKE2b-256 checksum How to use checksums |
f115d732fa30e84c0daea4dca6ce8a34012a1a3b09e828024e802304c7641a42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / collective_contact_behaviors-1.0.0b6-py3-none-any.whl
| Download URL | collective_contact_behaviors-1.0.0b6-py3-none-any.whl |
|---|---|
| Size | 42.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
893c8bc2a722bdae6da716062f94e6118bcad6895d02c2804d93306f201c3829
|
|
BLAKE2b-256 checksum How to use checksums |
90f425c83b5d406ef3e38c1bf2bbf4b650b40cde654688b2ad346b1bb9dc25cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|