schantldev/it-recht-kanzlei

There is no license information available for the latest version (v1.0.0-beta1) of this package.

Maintainers

Package info

github.com/schantldev/it-recht-kanzlei

pkg:composer/schantldev/it-recht-kanzlei

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0-beta1 2026-06-16 07:45 UTC

This package is auto-updated.

Last update: 2026-06-16 08:53:24 UTC


README

Easily integrate your legal texts from IT-Recht Kanzlei.

Features

This addon uses the official SDK of IT-Recht Kanzlei to neatly connect your website with their service.

How to Install

  1. Install the addon via Composer:
    composer require schantldev/it-recht-kanzlei
  2. Visit the addon's settings page to copy the set API key.
  3. Create a new connection within your IT-Recht Kanzlei account. Paste the copied API key and set the endpoint URL to https://example.org/api/it-recht-kanzlei.

How to Use

Once you have connected your website to your account, legal texts appear within the addon's settings page. To use them, simply add the special IT-Recht Kanzlei Text to your blueprint that allows you to select a legal text.

To show a selected text, make use of the {{ itrecht:html }} or {{ itrecht:text }} tag. Pass the selected text to the tag like so: {{ itrecht:html :legal_id="legal_text" }}. This assumes that the added fieldtype has a hanlde of legal_text.

It's recommended to combine your markup with a cache tag like in the full example below. The addon will automatically invalidate the cache key when a new legal text is added or updated, as long as it has the format as in the example.

{{ cache key="itrecht:{legal_text}" }}
    <div class="span-lg">
        {{ partial:typography/prose as="article" class="contents" }}
            {{ itrecht:html :legal_id="legal_text" }}
        {{ /partial:typography/prose }}
    </div>
{{ /cache }}