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
| Prop | Type | Required | Default | Purpose |
|---|---|---|---|---|
model_key | string | yes* | current route model | Which model the object belongs to |
object | string | yes* | — | Object id, relative to the model |
field | string | no | title | Field 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_keyoutside model routes (and outside an iteration scope)
Last updated on