Package: collective.contact-behaviors
Contact Behaviors for PloneFeaturescollective.contact_behaviorsis a collection of additional behaviors and vocabularies for Dexterity content types.Behaviorscollective.contact_behaviors.address_info: Provides address information fields:addressaddress_2citystatepostal_codecountrycollective.contact_behaviors.contact_info: Provides contact information fields:contact_emailcontact_websitecontact_phonePermissionsidtitleUsagecollective.contact_behaviors.address_info.viewcollective.contact_behaviors: View Basic Address InformationRead access tocity,state,postal_code,countrycollective.contact_behaviors.address_info_details.viewcollective.contact_behaviors: View Detailed Address InformationRead access toaddress,address_2collective.contact_behaviors.contact_info.viewcollective.contact_behaviors: View Contact InformationRead access tocontact_email,contact_website,contact_phoneCatalog IndexesThis package adds Indexes and Metadata to Portal Catalog.Content AttributeIndex TypeMetadatacountryFieldIndex✅contact_emailFieldIndex❌See it in actionThis package is being used by the following add-ons:collective.casestudyDocumentationThis package is supposed to be used by Plone integrators on their add-ons.InstallationAddcollective.contact_behaviorsas a dependency on your package'ssetup.pyinstall_requires=["collective.contact_behaviors","Plone","plone.restapi","setuptools",],Also, addcollective.contact_behaviorsto your package'sconfigure.zcml(ordependencies.zcml):<includepackage="collective.contact_behaviors"/>Generic SetupTo automatically enable this package when your add-on is installed, add the following line inside the package'sprofiles/default/metadata.xmldependencieselement:<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 thebehaviorsproperty:<elementvalue="collective.contact_behaviors.address_info"/><elementvalue="collective.contact_behaviors.contact_info"/>Source Code and ContributionsWe welcome contributions tocollective.contact_behaviors.You can create an issue in the issue tracker, or contact a maintainer.Issue TrackerSource CodeDevelopment setupYou need a working Python environment version 3.8 or later.Then install the dependencies and a development instance using:makeinstallBy default, we use the latest Plone version in the 6.x series.Update translationsmakei18nFormat codebasemakeformatRun testsmaketestLicenseThe project is licensed under GPLv2.Changelog1.0.0a3 (2023-06-27)New features:Allow other packages to set default values for address fields [@ericof] #21.0.0a2 (2023-06-21)New features:Implementcollective.contact_behaviors.address_info behavior@ericof addressImplementcollective.contact_behaviors.contact_info behavior@ericof contactImplementplone.app.querystring.field.countryquerystring filter @ericof querystringImplementcollective.contact_behaviors.available_countriesandcollective.contact_behaviors.countries@ericof vocabulariesInternal:Update configuration files.
[plone devs] 23d5b8e1Added towncrier as a package dependency. @ericof towncrier1.0.0a2 (unreleased)Nothing changed yet.1.0.0a1 (2023-06-21)