Skip to content
LogoLogo

How to point one entry at another

This guide shows you how to point one content entry at another, such as a product at its category. You need two Models: the one that holds the pointer, and the one that the pointer reaches.

1. Create the target Model

  1. Click CMS in the sidebar, then Models.
  2. Click New model.
  3. Enter a Name and a Key, such as category.
  4. Leave Category as None (general content).
  5. Add your fields.
  6. Click Create model.

2. Add a Reference field

  1. Open the Model that holds the pointer.
  2. Drag a Reference property onto the schema.
  3. Enter a Name and a Key, such as category.
  4. Set Target Model to the Model from step 1.
  5. Click Save.

Turn on repeatable for a field that points at more than one entry. Leave Target Model as Any Model to accept an entry of any Model in the workspace.

3. Choose a target on an entry

  1. Open a content entry that uses the Model.
  2. Find your Reference field.
  3. Click Choose entry.
  4. Search for the entry.
  5. Choose the entry.
  6. Click Save.

Use Change entry to point the field somewhere else. Use Clear to remove the pointer. Clear deletes no content.

Delete a target

Picked does not delete an entry while another entry points at it. Clear the reference on each entry that points at the target, then delete the target.

The same rule holds for a Model. Remove the Reference field that holds it as its Target Model first.

Read it in your code

The pointer and the entry travel separately. See How to read a referenced entry.

API and MCP

You can also do this task with the Management API, the MCP server, or code that you send to picked_run.

TaskGraphQLMCP toolRun
Create the target ModelcontentModelCreatecreate_content_modeltools.create_content_model({ workspace_id, name, key, schema })
Add a Reference fieldcontentModelUpdateupdate_content_modeltools.update_content_model({ content_model_id, schema })
Find the target entrycontentEntrieslist_content_entriestools.list_content_entries({ workspace_id, content_model_id })
Choose a target on an entrycontentEntryUpdateupdate_content_entrytools.update_content_entry({ content_entry_id, data })
Delete a targetcontentEntryDeletedelete_content_entrytools.delete_content_entry({ content_entry_id })