collective.formsupport.counter
Counter integration for collective.volto.formsupport
Features
Form counter for collective.volto.formsupport >= 3.2
Installation
Install collective.formsupport.counter by adding it to your buildout:
[buildout]
...
eggs =
collective.formsupport.counter
and then running bin/buildout
REST API
🔄 Reset Form Counter
Reset the counter for a specific form block.
Endpoint:
/<document>/@counter
Method:
PATCH
Parameters:
block_id (optional) — The identifier of the form block, if not passed, the first available formblock selected.
counter_value (optional) — The value to set the counter to (default: 0).
Description:
This endpoint resets the form counter to a specified value.
Request Example:
PATCH /my-document/@counter
Content-Type: application/json
{
"block_id": "form_block_123",
"counter_value": 5
}
Response:
Status Code: 204 No Content
The response indicates that the counter has been successfully reset. No response body is returned.
📊 Get Counter Value
Retrieve the current counter value for a specific form block.
Endpoint:
/<document>/@counter
Method:
GET
Parameters:
block_id (optional) — The identifier of the form block. The first available is being selected if not passed.
Description:
This endpoint retrieves the current value of the form counter.
Request Example:
GET /my-document/@counter?block_id=form_block_123
Accept: application/json
Response:
Status Code: 200 OK
Response Body:
{
"counter_value": 5
}
Contributors
folix-01
Contribute
Issue Tracker: https://github.com/collective/collective.formsupport.counter/issues
Source Code: https://github.com/collective/collective.formsupport.counter
Documentation: https://docs.plone.org/foo/bar
Support
If you are having issues, please let us know. We have a mailing list located at: info@redturtle.it
License
The project is licensed under the GPLv2.
Contributors
RedTurtle, info@redturtle.it
Changelog
1.0.4 (2025-12-11)
Remove not needed form_data customization and set right label for form fields. [cekk]
1.0.3 (2025-03-07)
collective.volto.formsupport new versions compatibility (>= 3.2.3). [folix-01]
1.0.2 (2025-02-25)
collective.volto.formsupport new versions compatibility. [folix-01]
1.0.1 (2025-01-10)
Fix counter value persistence problem. [folix-01]
1.0.0 (2025-01-09)
Alignments with collective.volto.formsupport. [folix-01]
1.0.0rc4 (2024-11-22)
Label translated [mamico]
1.0.0rc3 (2024-11-19)
Fix counter [mamico]
1.0.0rc2 (2024-11-15)
Fix manifest [mamico]
1.0.0rc1 (2024-11-13)
Initial release. [RedTurtle]
Metadata
Release files for collective.formsupport.counter 1.0.4
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_formsupport_counter-1.0.4.tar.gz | 23.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| collective_formsupport_counter-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 56.1 kB
Release files / collective_formsupport_counter-1.0.4.tar.gz
| Download URL | collective_formsupport_counter-1.0.4.tar.gz |
|---|---|
| Size | 23.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad8be5b19558da20e5c3d82475b33497e745e5be869628290cf59c79e84a12ef
|
|
BLAKE2b-256 checksum How to use checksums |
ab47f5afd2330fe531a4949f13c563d92e11e3a9e4fa2fbf2a4f66ef2f57b7c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Release files / collective_formsupport_counter-1.0.4-py3-none-any.whl
| Download URL | collective_formsupport_counter-1.0.4-py3-none-any.whl |
|---|---|
| Size | 32.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
83c3860bc45473d3514015c77142a8cd61bf47fb81df822ba8ed3a7e6e05da93
|
|
BLAKE2b-256 checksum How to use checksums |
8ea980f7d201d8de9b151a53f472b07003ce94b977f30d8c3ad48739f2007ffb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|