plugin / owc-gravityforms-zaaksysteem
Combine one or more 'zaaksystemen' with Gravity Forms and WordPress
Package info
github.com/OpenWebconcept/plugin-owc-gravityforms-zaaksysteem
Type:wordpress-plugin
pkg:composer/plugin/owc-gravityforms-zaaksysteem
Requires
- php: ^7.4|^8.0
- firebase/php-jwt: ^6.1
- monolog/monolog: ^2
- owc/idp-userdata: ^1.0
- php-di/php-di: ^6.0
Requires (Dev)
- 10up/wp_mock: ^0.5.0
- friendsofphp/php-cs-fixer: ^3.0
- mockery/mockery: ^1.0
- phpstan/phpstan: ^1.0
- phpunit/phpunit: ^9.0
- szepeviktor/phpstan-wordpress: ^1.0
- dev-master
- v2.11.2
- v2.11.1
- v2.11.0
- v2.10.0
- v2.9.1
- v2.9.0
- v2.8.0
- v2.7.2
- v2.7.1
- v2.7.0
- v2.6.1
- v2.6.0
- v2.5.0
- v2.4.2
- v2.4.1
- v2.4.0
- v2.3.3
- v2.3.2
- v2.3.1
- v2.3.0
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.1
- v2.1.0
- v2.0.1
- v2.0.0
- v1.1.0
- v1.0.3
- v1.0.2
- v1.0.1
- dev-dependabot/npm_and_yarn/yaml-1.10.3
- dev-dependabot/npm_and_yarn/multi-ae16ce6c93
- dev-dependabot/npm_and_yarn/svgo-2.8.2
- dev-dependabot/npm_and_yarn/webpack-5.105.0
- dev-feat/add-branch-number-kvk-to-role
- dev-dependabot/composer/symfony/process-5.4.51
- dev-feat/configure-ssl-certs
- dev-dependabot/npm_and_yarn/lodash-4.17.23
- dev-feat/implement-kvk-usage
- dev-temp/openwave-temp-solutions-for-testing
- dev-sc-6724
- dev-feat/mijn-taken
- dev-feat/nlds-@gemeente-denhaag/case-card-element
- dev-refactor/php8-syntax-to-php7
- dev-feat/logging-preparation
- dev-feat/remove-enable-u-add-individual-service-urls
- dev-feat/refractor-and-add-options
- dev-feat/downloadable-information-objects
- dev-feat/apply-filter-templates-to-validate
- dev-feat/remove-enable-u-add-individual-service-urls-frontend
- dev-develop
- dev-feature/open-catalogi
- dev-14-inconsistentie-en-gebrek-aan-duidelijk-gedefinieerde-variabelen-in-objecttypen-van-entities
- dev-feat/roxit-part-3
- dev-feat/roxit-part-2
- dev-feat/multi-party-mike
- dev-feat/roxit
- dev-feat/multi-party
- dev-feat/implement-decos
This package is auto-updated.
Last update: 2026-03-26 04:04:38 UTC
README
Combines one or multiple 'zaaksystemen' with Gravity Forms and WordPress.
Templating
This repository adds a custom WordPress template called OpenZaak which:
- Contains the permission logic for accessing the OpenZaak views
- Applies styling to the view and its blocks
Routing
At the time of writing, two custom routes have been added. These routes enable the following functionalities: displaying a single 'zaak' and downloading information objects attached to a 'zaak.'
Single Zaak routing
The entity OWC\Zaaksysteem\Entities\Zaak includes a method called 'permalink', which is utilized in various custom Gutenberg blocks. These blocks primarily serve to provide logged-in users with an overview of the 'zaken.' The method 'permalink' returns an URL that is picked up by the added custom routing. (<www.domain.extension/zaak/{identification}/{supplier}>)
This route requires the following conditions:
- A page with 'zaak' as the slug.
- The page should be connected with the 'template-single-zaak.'
- The page should be requested with a 'zaak' identification and a supplier in the URI.
Downloading Zaak information objects routing
The entity OWC\Zaaksysteem\Entities\Enkelvoudiginformatieobject includes a method called 'downloadUrl'. The method 'downloadUrl' returns an URL that is picked up by the added custom routing. (<www.domain.extension/zaak-download/{download-identification}/{zaak-identification}/{supplier}>)
This route requires the following conditions:
- A page with the slug 'zaak-download.' In this case, there is no need for a connected template since there is no page to be opened. The download will initiate in a new tab but will close immediately after the download is completed.
- The page should be requested with an download identification, zaak identification and supplier in the URI.
Hooks
Set de lifetime of the form settings transient
A nightly cron job retrieves the form settings per supplier and stores them inside a transient.
You can adjust the lifetime (in seconds) of that transient using the filter below:
add_filter('owc_gravityforms_zaaksysteem_zaaktypen_form_settings_type_cache_ttl', function(int $ttl){ return 3600; // 1 hour })
Filter the GravityForms addon setting fields
Modify or extend the available settings fields in the Gravity Forms add-on by filtering the multi-dimensional settings array:
add_filter('owc_gravityforms_zaaksysteem_gf_settings', function(array $fields){ return $fields; });
Configure templates that should be validated for access
Templates listed in this filter will be validated via the template_include hook to ensure the current session contains a valid BSN or KVK identifier.
add_filter('owc_gravityforms_zaaksysteem_templates_to_validate', function(array $templates){ $templates[] = 'custom-template'; return $templates; });