Dear community,
for those of you working with (german) legal norms, I just published a simple plugin, which hooks into kirbytext
and automatically links them to dejure.org - not very polished and without docs etc - think of it as “early access” 
May the law be with you, always …
S1SYPHOS
1 Like
v1.2.1 is out now!
A lot has been improved under the hood, and I’m glad the docs now show the full potential of this library:
composer require s1syphos/kirby3-dejure
Configuration
You may change certain options from your config.php
globally ('kirby3-dejure.optionName'
):
Option |
Type |
Default |
Description |
'enabled' |
bool |
false |
Enables / disables plugin |
'ignore' |
string |
'' |
Global file number ignore |
'email' |
string |
'' |
Contact mail |
'buzer' |
bool |
false |
Fallback linking to ‘buzer.de’ |
'class' |
string |
'' |
Controls class attribute |
'lineBreak' |
string |
'auto' |
Controls links across line breaks. Possible values: 'ohne' , 'mit' , 'auto'
|
'linkStyle' |
string |
'weit' |
Controls link range. Possible values: 'weit' , 'schmal'
|
'target' |
string |
'_blank' |
Controls target attribute |
'tooltip' |
string |
'neutral' |
Controls title attribute. Possible values: 'ohne' , 'neutral' , 'Gesetze' , 'halb'
|
‘driver ’ |
string |
'file' |
For all cache drivers, see here
|
‘caching ’ |
array |
[] |
For all config options, see here
|
'cacheDuration' |
int |
2 |
Cache duration (days) |
'streamTimeout' |
int |
10 |
Response stream timeout (seconds) |
'timeout' |
int |
3 |
Request timeout (seconds) |
'userAgent' |
string |
null |
Controls User-Agent header |
For using it with kirbytext()
, just enable it & you’re ready to go. For anything else, use config options or the other methods described in the README on GitHub.
Cheers,
S1SYPHOS
I released v1.2.2, adding support for descriptive
title attributes. Also, this plugin is now listed on the dejure.org
page:
https://dejure.org/vernetzung.html/#plugin-kirby
v1.3.0
With this release, kirby3-dejure.enabled
only controls behaviour for kirbytext()
calls, not all methods.
Additionally, when dealing with an intendedTemplate()
being allowList
ed, this overrides kirby3-dejure.enabled
being false
, whereas blockList
disables the hook for pages even when kirby3-dejure.enabled
is true
.