Configurable internal number plone behavior
Project description
collective.behavior.internalnumber
This product adds a plone behavior for dexterity content. The behavior adds a text field containing an internal number.
Features
Optional uniqueness validation
Optional default value
Inclusion in searchable text
Global or type by type configuration
A configuration page can manage globally or type by type:
a uniqueness option
an incremented number
a default value tal expression
Usage
In the configuration panel, go to dexterity types. Click on the type you want extend with the internal number field. Go to the behavior tab. Select “Internal number field” behavior.
If you want the internal number be searched in searchable text, you can also select the “Dynamic SearchableText indexer behavior”
Translations
This product has been translated into
French (thanks the author)
Installation
Install collective.behavior.internalnumber by adding it to your buildout:
[buildout] ... eggs = collective.behavior.internalnumber
and then running bin/buildout
Contribute
Issue Tracker: https://github.com/collective/collective.behavior.internalnumber/issues
Source Code: https://github.com/collective/collective.behavior.internalnumber
Documentation: https://docs.plone.org/foo/bar
License
The project is licensed under the GPLv2.
Contributors
Stephan Geulette, support@imio.be
Changelog
0.4 (2024-06-07)
Use fti.Title() that is a i18n Message instance to manage settings portal_types vocabulary. Also sort vocabulary by term title. [gbastien]
0.3 (2023-11-27)
Removed catalog metadata internal_number, added upgrade step to 1001. [gbastien]
0.2 (2023-05-31)
Made compliant with Plone 4.3, 5.2 and 6.0 [sgeulette]
Ordered imports & improved docstring [sgeulette]
Factorized increment/decrement functionnality in settings.increment_nb_for, settings.decrement_nb_for and settings.decrement_if_last_nb functions. Added helper function settings.set_settings. [gbastien]
Fixed ConnectionStateError while setting registry[TYPE_CONFIG] in tests and profile is applied several times. [gbastien]
0.1 (2017-05-31)
Initial release. [sgeulette]
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
Hashes for collective.behavior.internalnumber-0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28861c7af45d2a87dfc9a7b6d6ebfb942a87c65e1489127e68dccf4419d17fbb |
|
MD5 | fa3bfae53612364ac29d9bdafa23a5f1 |
|
BLAKE2b-256 | bd1203ac96089516951dd014e10115bede4c867c3a94d7cd5ce3dd7c15370f97 |