ObjectLink
ObjectLink

Inline link to a model object; link text defaults to the object title.

ObjectLink renders an inline link to a model object. The link text defaults to the object title and the link points to the object page.

Supported props

PropTypeRequiredDefaultPurpose
model_keystringyes*current route modelWhich model the object belongs to
objectstringyes*Object id, relative to the model
fieldstringnotitleField used for the link text

* Inside Each, ObjectList, or ObjectTable the current iteration item is used, so object and model_key are not required.

Example

See the <ObjectLink model_key="deployment" object="iomodel.studio" /> service for details.

Rendered: See the service for details.

Inside a loop

When used inside Each, omit object — the current item is linked automatically:

<Each model_key="deployment" objects="iomodel.*">

<ObjectLink />

</Each>

Common pitfalls

  • Prefixing the id with the model key (object="deployment.iomodel.studio") — write it relative (object="iomodel.studio")
  • Forgetting model_key outside model routes (and outside an iteration scope)

Last updated on