|Sets the focus on this field when the form loads. Only the first field with this label gets
|Default value for the field, which will be used when a page/file/user is created
true, the field is no longer editable and will not be saved
|Optional help text below the field
|The field label can be set as string or associative array with translations
true, the field has to be filled in correctly to be saved.
false, the field will be disabled in non-default languages and cannot be translated. This is only relevant in multi-language setups.
|Conditions when the field will be shown (since 3.1.0)
|The width of the field in the field grid. Available widths:
New in 4.1.1
If an icon has been defined in the page's blueprint, it will be used in the page selector.
custom link type allows to enter arbitrary links, e.g. relative links or deeplinks to external apps with custom protocols.
Because of its flexibility, Kirby cannot know whether the entered link is valid and safe. It is therefore your responsibility to check if the link conforms to the format for your use case.
custom link type without additional validation or sanitization can lead to security attacks such as cross-site scripting (XSS). Only enable this link type if you have adequate protections in place or if such protections are not needed in your use case.
options property you can customize the link types offered by the field:
toUrl() method to convert any type of link to a valid URL:
The link field does one job and one job only: It stores a link. If you need additional metadata such as a target, link text, class names etc., you can wrap the link field within an object field:
Then create a snippet that you can re-use across your site for all such wrapped link fields. Here is a basic example for you to extend according to your requirements: