Reference rules
This page covers, in full, the settings, rules, limits, permissions, and tasks for fields that link another Content or a Media to a Content. If you're new to links, start with References, which explains what a link is, why you use one, and the flow from linking a brand to a product to receiving them together on your site.
On this page, fields whose Field type is Content and fields whose type is Media are together called "link fields". The example is the "Product" Content Type of an online clothing store. A product has a "Brand" field that links one brand, a "Related Products" field that links several related products, and a "Main Photo" field that links a photo. The product "Stainless Tumbler 500ml" links to the brand "DailyWear".
Settings
You set up a link field across three windows. When you first create a Field, you choose its type in the "Select Field Type" window and decide whether to use it as a list in the "Basic Field Settings" window. Everything else is set on the Settings and Validations tabs of the "Configure Field" window. While you're creating a Field, you open this window with More Settings in the "Basic Field Settings" window. Once the Field exists, you open it with the gear icon in the Field's row on the Content Type editing screen. Even after you click Save in the "Configure Field" window, the changed settings take effect only after you also click Save at the top right of the Content Type editing screen.

Settings common to both link fields
| Setting | Description | Default | Constraints |
|---|---|---|---|
| Content / Media | The Field type you choose in the "Select Field Type" window. A Content field links other Content, and a Media field links Media you've uploaded | None. You choose one of the two when you create the Field | A field links only the one type you chose. You can't link both Content and Media in the same field |
| Use as list type | When on, the field links several items in order. Turn it on for fields that link several items, like "Related Products" | Off. The field links one item | Set in the "Basic Field Settings" window. It can't be changed afterwards in the "Configure Field" window. How many items you can link is in Limits |
| Array size | Appears only on the Validations tab of a field with Use as list type turned on. Sets the minimum and maximum number of items to link | Not set | The values you can set are in Limits |
| Enable localization for this Field | When on, the field links a different item for each Locale | Off. You link once, in the default Locale | On the Settings tab. |
| Required Field | When on, a Content can't be saved while this field is empty | Off | On the Validations tab. A list field with no items counts as empty. Which languages you have to fill in for a multilingual field follows the rules in Languages a required Field needs |
The "Configure Field" window also has an Editor tab. On the Editor tab of a Content field, a single Content Reference card is selected, marked default.

Settings only Content fields have
| Setting | Description | Default | Constraints |
|---|---|---|---|
| Accept only specified Content Type | When you turn it on and select Content Types, only Content of the selected types can be linked in this field. For a brand field, select "Brand" | Off. Content of any Content Type can be linked | On the Validations tab. You can select several types together. Checked when you publish |
| Custom error message | An input field under Accept only specified Content Type. Sets the message shown when a publish fails because Content of a type you didn't allow is linked | Empty. If you leave it empty, a default message is shown | The length limit is in Limits |

Settings only Media fields have
On the Validations tab of a Media field, you set conditions on the files that can be linked. All three conditions are checked when you publish. If a linked Media holds a different file for each Locale, the files in every language must meet the conditions. In a list field, every linked Media must meet them.
| Setting | Description | Default | Constraints |
|---|---|---|---|
| Accept only specified Media types | Sets which kinds of files can be linked. The kinds you can choose are Attachment, Plaintext, Image, Audio, Video, Rich text, Presentation, Spreadsheet, PDF, Archive, Code, and Markup | Off. Files of any kind can be linked | You can select several kinds together. Which kind a file falls under is covered in Files you can upload |
| Accept only specified file size | Sets the minimum and maximum size of files that can be linked | Off | None |
| Accept only specified image dimensions | Sets the minimum and maximum width and height of an image, in pixels | Off | Doesn't apply to files that aren't images |

Rules
Linked items come along in public delivery
When the program that reads the product from public delivery (here, the online store site) asks to receive linked items along with it, DailyWear's name and description are delivered together with the product. If it doesn't ask, only the link is delivered, not DailyWear's content. The request also decides whether to receive the items that a linked item links to in turn (for example, a logo photo linked to DailyWear). The request format is in the API reference.
What comes along is the linked item as it was last published. If you edit the description of DailyWear after publishing it and only save, DailyWear becomes Changed, and public delivery still sends the previously published description along with the product. Once you publish DailyWear again, the new description comes along, and you don't need to publish the product again.
A product whose links changed has to be published again
Changing a link itself is an edit to the product. If you change the brand to a different one, add items to or remove items from the "Related Products" field, or reorder them, and then save, a published product becomes Changed. Until you publish the product again, public delivery sends the links as they were before the change.
In short: if you edited the content of a linked item, publish that item. If you changed the product's links, publish the product.
Unpublished items don't come along
If a linked item isn't published, its content doesn't come along in public delivery. If DailyWear is a Draft that has never been published, has gone back to Draft through Unpublish, or is Archived, the product is delivered with only the link. So the brand spot looks empty on the site.
Even in this state, saving and publishing the product aren't blocked. The link check at publish time only confirms that the linked item exists, not whether it's published. Before linking, you can check whether an item is Published in the Status column of the Select Content or Select Media window.
Instead, Content Studio warns you with a confirmation window before you publish. When you choose Publish from the status badge on the product's detail screen and any Content or Media linked to the product isn't Published, the "Unpublished References" window appears. The window lists the items that aren't Published. Click Publish Anyway to publish the product, or Cancel to leave it unpublished.
- Items that are Changed also appear in this list. However, for a Changed item, its last published content still comes along (Linked items come along in public delivery).
- Deleted items don't appear in this list. The product fails the check when you publish it (If you delete a linked item).
- This window doesn't appear when you publish from a list screen.

The same goes for Media. If file processing hasn't finished for the Media linked as the main photo, that Media isn't Published yet, so it doesn't come along. Once processing finishes and it becomes Published on its own, the photo comes along from then on, and you don't need to publish the product again. A Media whose file processing failed never becomes Published, so it doesn't come along. For how a Media is processed and made public, see Media.
A linked item also doesn't come along when the role bound to the Delivery Access Token (a read-only key) your site uses can't read that item. The details are in Required permissions.
What's checked on save and on publish
Link field rules are checked at two moments: when you save and when you publish. If a rule checked on save is broken, the Content isn't saved. If a rule checked on publish is broken, it isn't published.
| What's checked | On save | On publish |
|---|---|---|
| Whether a Required Field is filled in | Checked | Checked |
| Whether the number of items in a list field is within the limit and the Array size | Checked | Checked |
| Whether the linked item still exists | Not checked. Saving goes through, and only publishing is blocked | Checked |
| Whether a linked Content is a type allowed in Accept only specified Content Type | On the editing screen in Content Studio, "Content Type is not allowed for this Field" appears below the field, and the content isn't saved. If you save it from a program, saving goes through and publishing is blocked | Checked |
| Whether a linked Media meets the file conditions of the Media field | On the editing screen in Content Studio, "The file type is not allowed for this Field." appears below the field, and the content isn't saved. If you save it from a program, saving goes through and publishing is blocked | Checked |
Whether linked items still exist is checked one by one: for each item in a list field and for each language in a multilingual field. So if even one of the products linked in the "Related Products" field is deleted, the tumbler product won't publish.
The Select Content window opens already filtered to the types allowed in Accept only specified Content Type. Even when you allow several types, only Content of the allowed types is shown. So an item you chose in Content Studio usually fails the type check only when the allowed list was changed after you linked it (When you allow several Content Types).
What happens to Content that was already saved or published when you add or change a rule later is covered in Checks on save and on publish.
When you delete a linked item
You can delete an item even if another Content links to it. Whether you can delete DailyWear depends on DailyWear's status and your permission to delete, not on whether anything links to it. The conditions for deleting are in Deletion rules. Links don't block Unpublish or Archive either.
Instead, Content Studio warns you with a confirmation window before you take down or delete an item that another Content links to. When you choose Unpublish or Archive from the status badge on DailyWear's detail screen, or click Delete, the "Items Reference This Content" window appears. The window lists the products that link to DailyWear. To go ahead, click Unpublish for an unpublish, Archive for an archive, or Delete for a deletion. To stop, click Cancel.
- The same confirmation window appears for Media.
- This window doesn't appear when you change the status or delete from a list screen.

Even after you delete DailyWear, the link that pointed to DailyWear stays in the product's brand field. If you publish the product in this state, it fails the check because the linked item doesn't exist, and it isn't published. In Content Studio, "Content deleted" and "Deleted" appear where the link was. You can still save in this state, but when you try to publish, a message saying the linked item can't be found appears below the field, and the product isn't published. Link a different brand, or, if the brand field isn't a Required Field, remove the link, and then publish again.
A product that's already published stays published even when you delete its brand. But since only Draft or Archived items can be deleted, DailyWear was already out of public delivery before it was deleted. So public delivery sends only the product, and the brand's content doesn't come along.
The same goes for Media. You can delete a Media linked as a main photo, and after it's deleted, the product that links that photo won't publish.
Before you delete an item, check which Content links to it. For both Content and Media, you can check this in the Links area of the detail screen (Check which Content links to this item).
In the other direction, deleting the product (the side that holds the link) changes nothing for DailyWear. That's because the link is stored only in the product.
When you allow several Content Types
If you select several types together in Accept only specified Content Type, you can link Content of any of the selected types. If the brand field allows both "Brand" and "Partner", you can link both the brand "DailyWear" and the partner "Hanbit Trading". How many types you can allow together is in Limits.
If you remove a type from the allowed list, products that already link something of that type fail the check the next time they're published. If you remove "Partner", a product that links Hanbit Trading publishes only after you change its link to an allowed type. Products that are already published stay in public delivery as they are.
You can set the same restriction on a field with Use as list type turned on. In a list field, each linked item is checked against the allowed types. If even one product linked in the "Related Products" field is of a type you didn't allow, the tumbler product won't publish.
Order and duplicates in a list field
Items linked in a list field are saved in the order they sit in the field, and public delivery sends them in that order too. If you linked "Insulated Mini Tumbler 350ml" and then "Foldable Travel Bottle 600ml" in the "Related Products" field, the site receives them in that order. How to change the order is in Reorder items in a list.
Don't link the same item twice in one list. Saving isn't refused even if the same item is in the list twice, and the list is delivered publicly with that item in it twice. The Select Content window shows items you've already linked just like any other item, and if you select one again, it's added once more at the end of the list. Check the field yourself to see whether the same item went in twice.
Link fields that allow several languages
A link field with Enable localization for this Field turned on links a different item for each Locale. For the main photo field, you can link a photo with Korean text for Korean (ko-KR) and a separate photo with English text for English (en-US). There are other ways to use a different photo for each language too. For how to hold a separate file for each language in a single Media, see Media holds a separate file for each language.
A link field that doesn't allow several languages links only once, in the default Locale. How such a field looks on another language's screen is covered in A Field without localization holds values only in the default Locale.
What the Links area shows
On the right side of the Content and Media detail screens, the General tab has a Links area. This area shows each Content that links to the item. If there are any, their titles are listed under a message that gives the count, such as "There is 1 other Content that links to this Content :". Click a title to go to that Content. On a Media, this message reads "There is 1 other Content that links to this Media :". If no Content links to the item, the area shows "No other Content links to this Content." On a Media, it shows "No other Content links to this Media."
The Content editing screen has Editor, References, and Tags tabs. The References tab shows the items this Content links to. To see what links to this Content, check the Links area.


Limits
| Item | Limit |
|---|---|
| Items linked in one list field | 64 per language |
| Values you set in a list field's Array size | Both the minimum and the maximum must be 64 or less |
| Content Types allowed together in Accept only specified Content Type | 256 |
| Length of a Custom error message | 500 characters |
| Levels of linked items you can receive together in public delivery | 3 levels |
| Items that come along in a single read from public delivery | 1,000 |
If you link more than 64 items in a list field, it won't save. If you set a value greater than 64 in Array size, the Content Type won't save.
If more than 1,000 items would come along, the request is refused. In that case, read fewer products at a time, or receive fewer levels of linked items. The request format is in the API reference.
Required permissions
Each task involving link fields needs different permissions in the role (SpaceRole). For what each action means and the steps for creating a role, see Create a role.
| What you want to do | Required permission |
|---|---|
| Create a link field or change its settings | Edit on the "Product" Content Type |
| Add or remove links on a product, or change their order | Edit on that product Content |
| See the items to link in the Select Content or Select Media window | Read on the items to link. Items you can't read don't appear in the selection window |
| Create a brand on the spot with Create New Content | Create on Content of the "Brand" Content Type |
| Upload a photo on the spot with Create New Media | Create on Media |
| Publish a product after linking | Publish on that product Content. Permissions on the linked items aren't checked |
| Receive linked items together in public delivery | Read in the role bound to the Delivery Access Token your site uses. Items the role can't read don't come along |
The last row is a permission that applies not to a person's role but to the Delivery Access Token (a read-only key) your site uses. If the site's Delivery Access Token is bound to a role that can read only product Content, products are delivered, but the linked brand and main photo don't come along. To receive the brand and photo too, allow Read on Content of the "Brand" Content Type and on Media in that role. How to bind a role to a Delivery Access Token is covered in Tokens.
Tasks in Content Studio
First come the basic tasks: creating a brand field, and linking a brand and a main photo to a product. After those come tasks such as changing which types can be linked, linking several items in a list field, and removing a link.
Create a brand-only field
These are the steps for creating a "Brand" field in the "Product" Content Type that can link only brands. It would be a problem if a review or a notice got linked in the brand spot by mistake, so you set this field to accept only brands.
You need something to link to, so prepare the brand first. Say you have a "Brand" Content Type (with Fields such as the brand name and description) and a brand Content "DailyWear" made from that template.
- Add a Field of the Content type to the "Product" Content Type. The steps for adding a Field are in Add a Field.
- In the "Basic Field Settings" window, click More Settings.
- Go to the Validations tab.
- Turn on Accept only specified Content Type.
- Select "Brand" as the Content Type to allow.

- Click Save.
- Click Save at the top right of the Content Type screen.
The other settings in the same window as Accept only specified Content Type are in Settings.
Link a brand to a product
These are the steps for linking the brand "DailyWear" in the brand field of the product "Stainless Tumbler 500ml".
- Open the product Content "Stainless Tumbler 500ml".
- Click Edit at the top right.
- Click Add Existing Content in the brand field. The Select Content window opens.
- Select "DailyWear" from the list.
- Click Save at the top right.
The Select Content window shows only "Brand", the type you set as linkable. The restriction you set in Create a brand-only field applies here as is.

The tumbler product is now linked to the brand "DailyWear". If you choose "DailyWear" in the same field on other products too, several products are linked to one brand.
For DailyWear to be delivered along with the product in public delivery, both the product and DailyWear must be published (Linked items come along in public delivery, Unpublished items don't come along). If the product was already published, you have to publish it again after saving before the new link reaches public delivery (A product whose links changed has to be published again).
Link a main photo to a product
These are the steps for linking the Media "Stainless Tumbler 500ml Front Shot" in the main photo field of the product "Stainless Tumbler 500ml". Say you've already uploaded the photo as a Media (Upload a single file).
When you created the "Product" Content Type, you made the main photo a Field that links a Media. So instead of typing text or numbers into the main photo field, you choose a Media you uploaded earlier and put it there.
- Open the "Stainless Tumbler 500ml" Content.
- Click Edit at the top right.
Scroll down the editing screen to find the main photo field. A main photo field with no photo linked yet shows two buttons: Add Existing Media and Create New Media.

- Click Add Existing Media in the main photo field. The Select Media window opens.
- Select "Stainless Tumbler 500ml Front Shot" from the list.

- Click Save at the top right.
Once the Media is linked, the main photo field shows an item with that Media's title.

If you haven't uploaded the photo yet, click Create New Media instead of Add Existing Media. You upload the photo right there and link it at once (Create an item and link it at the same time).
When you publish the tumbler Content with its main photo linked and saved, the online store site can receive the linked main photo along with the product. The steps for publishing are in Change the status with the status badge.
For what to keep in mind when you replace a linked photo's file or delete the photo, see What to know when linking to Content. The file conditions you can set on the main photo field (file type, file size, and image dimensions) are in Settings only Media fields have.
Change which types can be linked
These are the steps for letting the "Brand" field link partners too. Say you've already created the "Partner" Content Type.
- In the left menu, click Content Types.
- In the list, click "Product". The Content Type edit screen opens.
- Click the gear icon in the "Brand" Field row. The "Configure Field" window opens.
- Click the Validations tab.
- In the list under Accept only specified Content Type, turn on "Partner". Leave "Brand", which is already on, as it is.
- Click Save.
- Click Save at the top right of the Content Type edit screen.


Removing a type from the allowed list follows the same steps. When you remove a type, products that already link something of that type fail the check the next time they're published (When you allow several Content Types).
Link several items in a list field
These are the steps for linking two products in the "Related Products" field of "Stainless Tumbler 500ml". This field has Use as list type turned on and Accept only specified Content Type set to "Product".
- Open the "Stainless Tumbler 500ml" Content.
- Click Edit at the top right.
- Click Add Existing Content in the "Related Products" field. The Select Content window opens.
- In the list, check "Insulated Mini Tumbler 350ml".
- In the list, check "Foldable Travel Bottle 600ml" too.
- Click the Select button at the bottom right of the window.
- Click the Save button at the top right.


The steps for linking in a field that links only one item are in Link a brand to a product, and the steps for linking in a Media field are in Link a main photo to a product.
If the product was already published, you have to publish it again after saving before the new links reach public delivery (A product whose links changed has to be published again).
Create an item and link it at the same time
If the brand you want to link doesn't exist yet, you can create a new brand right from the brand field.
- Open the "Stainless Tumbler 500ml" Content.
- Click Edit at the top right.
- Click Create New Content in the "Brand" field.
- In the list that opens, click "Brand". You can choose only the types this field allows, and the rest are dimmed.
- In the "Create Content" window that opens, enter
MonoLivingin the Brand name field. - Click the Create button at the top right of the window. The new brand is created as Draft and linked to the brand field.
- Click the Save button at the top right.



A brand created this way starts as Draft, like any other Content. To have it delivered along with the product in public delivery, publish the new brand separately too. Even if you leave without saving the product, the newly created brand remains. Create New Media in a Media field uploads a file on the spot and links it. A newly uploaded Media becomes Published automatically once its file finishes processing.
Remove a link
These are the steps for removing the brand link from a product.
- Open the "Stainless Tumbler 500ml" Content.
- Click Edit at the top right.
- Click the ⋯ icon to the right of the "DailyWear" item linked in the "Brand" field.
- Click Remove in the menu that opens.
- Click Save at the top right.

Removing the link leaves the DailyWear Content as it is. If the brand field is a Required Field, it can't be saved empty, so link a different brand and then save.
Reorder items in a list
This is how to change the order of the products linked in the "Related Products" field.
- Open the "Stainless Tumbler 500ml" Content.
- Click Edit at the top right.
- In the "Related Products" field, press the handle (⋮) to the left of the item you want to move and drag it to where you want it.
- Click the Save button at the top right.

Check which Content links to this item
These are the steps for checking which product links to the main photo Media. For a Content, you check the same way, in the Links area of its detail screen.
- Open the Media list screen.
- Open "Stainless Tumbler 500ml Front Shot" from the list.
- Check the Links area on the General tab on the right.

If the product "Stainless Tumbler 500ml" links this photo as its main photo, that product's title appears in the list in the Links area. The message shown with it is covered in What the Links area shows.
Troubleshooting
| Problem | Cause | What to do |
|---|---|---|
| The Select Content window doesn't show Content of the type you want to link | This field's Accept only specified Content Type doesn't allow that type. The selection window opens already filtered to the allowed types | Add that Content Type to the allowed list by following Change which types can be linked |
| Only certain items are missing from the selection window | Your role doesn't have permission to read those items. The selection window shows only items you can read | Ask your Space admin for Read permission on those items |
| The selection window is empty | No Content of the allowed types exists yet | Create one on the spot and link it by following Create an item and link it at the same time |
| A link field can't be saved empty | The field is a Required Field. A list field with no items counts as empty | Link at least one item, then save |
| Items linked in a list field won't save | You linked more than 64 items, or the number is outside the Array size range | Bring the number of linked items within the limit and the condition |
| Publishing is blocked | One of the linked items has been deleted. In a list field, the product won't publish even if only one item is deleted | Remove the link to the deleted item or change it to a different item, then publish again |
| Saving or publishing is blocked | Content of a type you removed from the allowed list is linked | Change the link to Content of an allowed type, then publish again |
| Saving or publishing is blocked | A Media that doesn't meet the file conditions set on the Media field is linked | Change the link to a Media that meets the conditions, or edit the conditions, then publish again |
| A linked item looks empty in public delivery | The linked item isn't published | Publish that item. You don't need to publish the product again |
| A linked photo looks empty in public delivery | File processing for the photo Media hasn't finished, or it failed | Wait until processing finishes and it becomes Published. If processing failed, upload the file to that Media again. Once processing finishes and it becomes Published, the photo comes along, and you don't need to publish the product again |
| A linked item looks empty in public delivery | The role of the Delivery Access Token your site uses can't read that item | Allow Read on the linked item in that role |
| A linked item looks empty in public delivery | When the site read the product, it didn't ask to receive linked items along with it | Change the request so it receives them along with the product. The request format is in the API reference |
| A linked item looks empty in public delivery | The linked item was deleted | Link a different item and publish the product again |
| You edited the brand description, but public delivery still sends the old description with the product | You didn't publish the edited brand again (Changed) | Publish the brand. You don't need to publish the product again |
| You changed the product's brand, but public delivery still sends the old brand | You only saved the product and didn't publish it again (Changed) | Publish the product |
| A linked brand can't be deleted | Not because of the link, but because of the brand's status or your permission to delete | Put the brand in a status that can be deleted, then delete it. The conditions are in Deletion rules |
| The site can't read the product list | More than 1,000 items came along in a single read | Read fewer products at a time, or receive fewer levels of linked items |
Related docs
- References: Covers what a link is and why you use one, and the flow from linking a brand to a product to receiving them together on your site.
- Media settings and rules: Covers the steps for uploading the photo you'll link as a main photo as a Media, and the settings and rules for Media.
- Deletion rules: Covers what you can delete and when, and the conditions that block a deletion.
- Status and version rules: Covers the rules for how publishing, unpublishing, and archiving change the status.
- API reference: Covers the technical specs for working with link field definitions and validations directly from a program.
