You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/README.md
+18-7Lines changed: 18 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# kirby-link-field
2
2
3
-
Kirby 3 Field for links of any kind - external, page, file, email, phone. Has settings for text, popup true/false, and hash. Original plugin is [this](https://github.com/medienbaecker/kirby-link-field), created by [Thomas Günther](https://github.com/medienbaecker).
3
+
Kirby 3 Field for links of any kind - external, page, file, email, phone. Has settings for text, popup true/false, and hash.
4
4
5
5
The plugin uses the native Kirby fields for pages, files, url, email, and tel:
6
6
@@ -10,9 +10,14 @@ If used inside a structure field, link fields get a nice preview. Links to pages
10
10
11
11

12
12
13
+
## Contributing
14
+
15
+
- Read the [CONTRIBUTING.md](https://github.com/OblikStudio/kirby-link-field/blob/master/docs/CONTRIBUTING.md) for details
16
+
- Support development by [sponsoring us](https://github.com/sponsors/OblikStudio)
17
+
13
18
## Installation
14
19
15
-
With [Composer](https://packagist.org/packages/oblik/kirby-link-field):
20
+
With Composer from [oblik/kirby-link-field on packagist](https://packagist.org/packages/oblik/kirby-link-field):
16
21
17
22
```
18
23
composer require oblik/kirby-link-field
@@ -31,18 +36,20 @@ fields:
31
36
label: Link
32
37
```
33
38
34
-
To define what link types you want, use `options`. Possible values are `url`, `page`, `file`, `email`, and `tel`:
39
+
To define what link types you want, use `linkTypes`. Possible values are `url`, `page`, `file`, `email`, and `tel`:
35
40
36
41
```yaml
37
42
fields:
38
43
myfield:
39
44
type: link
40
45
label: Link
41
-
options:
46
+
linkTypes:
42
47
- page
43
48
- url
44
49
```
45
50
51
+
**Note:** This was changed in version 4.0.0 from `options` to `linkTypes` due to an issue with Kirby's internal logic.
52
+
46
53
By default, you can also specify link text, popup true/false, and hash. You can disable those options or change their appearance by using the `settings` value:
47
54
48
55
```yaml
@@ -72,8 +79,8 @@ _config/config.php_
72
79
73
80
```php
74
81
return [
75
-
'oblik.linkField' => [
76
-
'options' => [
82
+
'oblik.link-field' => [
83
+
'linkTypes' => [
77
84
'url',
78
85
'page'
79
86
],
@@ -90,7 +97,7 @@ return [
90
97
91
98
```php
92
99
return [
93
-
'oblik.linkField.settings' => false
100
+
'oblik.link-field.settings' => false
94
101
];
95
102
```
96
103
@@ -233,3 +240,7 @@ Myfield:
233
240
type: url
234
241
value: https://example.com
235
242
```
243
+
244
+
## Support
245
+
246
+
If you find the plugin useful and would like to receive better support for it, please consider [sponsoring us](https://github.com/sponsors/OblikStudio). Thank you! 🙏
0 commit comments