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

Meta 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.

Changelog

1.0.0a3 (2023-06-27)

New features:

  • Allow other packages to set default values for address fields [@ericof] #2

1.0.0a2 (2023-06-21)

New features:

  • Implement collective.contact_behaviors.address_info behavior @ericof address
  • Implement collective.contact_behaviors.contact_info behavior @ericof contact
  • Implement plone.app.querystring.field.country querystring filter @ericof querystring
  • Implement collective.contact_behaviors.available_countries and collective.contact_behaviors.countries @ericof vocabularies

Internal:

  • Update configuration files. [plone devs] 23d5b8e1
  • Added towncrier as a package dependency. @ericof towncrier

1.0.0a2 (unreleased)

  • Nothing changed yet.

1.0.0a1 (2023-06-21)

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.0a3.tar.gz (123.5 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file collective.contact_behaviors-1.0.0a3.tar.gz.

File metadata

File hashes

Hashes for collective.contact_behaviors-1.0.0a3.tar.gz
Algorithm Hash digest
SHA256 0ca563e33e873f099fc5f474b21f510babd4be945cd28324a843e671cdcf8c99
MD5 8065ab55b1a582c0098f9793e86207a0
BLAKE2b-256 873443bf8434bce6cb284da4dd546d8935fbcca14f4c43e51065454b2c5fce30

See more details on using hashes here.

File details

Details for the file collective.contact_behaviors-1.0.0a3-py3-none-any.whl.

File metadata

File hashes

Hashes for collective.contact_behaviors-1.0.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 d803d27b09bba105b247e9ed797379c649a1c0879d6e2976a00547d355bc831c
MD5 331672ad7a05434b01b507233a0152ce
BLAKE2b-256 1904fe9683b83fa81f12777511dea7c2aa64bbfab21ae1e280c16c02567319ae

See more details on using hashes here.

Supported by

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