Skip to content
Strife Docs

Reference Fields

Link

The Link field enables users to insert links, storing an object in the database containing link text, URL, and target options.

A Link field with an input for the link text, an input for the address, and an Open in new tab switch.

Strife Studio screenshot of a Link field

Settings

The Link field does not feature any distinctive settings beyond the standard ones.

Note:

You can find a comprehensive list of all basic settings in the 'Overview' section.

Define with JSON

When defining templates using JSON, this field is represented using:

  • Component Name: str-link
  • Type: link
  • Reference ID: str-link

The settings above map into the editor.attributes object inside the JSON definition.

JSON
{
  ...
  "editor": {
    "name": "str-link",
    "type": "link",
    "propertyName": "...",
    ...    
  },
  ...
}

Live preview

The compatible Strife Web Component for a Link field is the str-anchor component.

Note:

For more information on live preview and Strife Web Components, please refer to the Live preview documentation.