Skip to main content

A collection of contact information behaviors and vocabularies for Dexterity content types.

Project description

logo

Contact Behaviors for Plone

PyPI PyPI - Python Version PyPI - Wheel PyPI - License PyPI - Status

PyPI - Plone Versions

CI Code Style

GitHub contributors GitHub Repo stars

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collective_contact_behaviors-1.0.0b4.tar.gz (74.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

collective_contact_behaviors-1.0.0b4-py3-none-any.whl (82.6 kB view details)

Uploaded Python 3

File details

Details for the file collective_contact_behaviors-1.0.0b4.tar.gz.

File metadata

File hashes

Hashes for collective_contact_behaviors-1.0.0b4.tar.gz
Algorithm Hash digest
SHA256 0d38d4a9d0072a5f3d82f7848f9c6973c6155331f065133fa27bdf7f42f80230
MD5 a7af0a3c0749bcff6e39b91ad263819a
BLAKE2b-256 9b81cac7f302c2a0da4d4065436413f41f46289a1ce3e92f8147d2a141078390

See more details on using hashes here.

File details

Details for the file collective_contact_behaviors-1.0.0b4-py3-none-any.whl.

File metadata

File hashes

Hashes for collective_contact_behaviors-1.0.0b4-py3-none-any.whl
Algorithm Hash digest
SHA256 e3ea8dbeb950e1e1d89dc15841ebf75407758f8b84b44ea1f767cf385e235d7b
MD5 e791aa4244a0ba2538c1125c17eaa1c0
BLAKE2b-256 b644c52e8876a2768a04d6b8b6aff96dd155ed80b09f3ed614ee4509ee15e12b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page