# 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](/getting-started/core-concepts/common/reference.md), 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**<!-- ko: 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 {#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.

![The Configure Field window for the Brand Field, Settings tab. The type Content is shown at the top right, with the Field name (Brand), the Field ID locked in gray (brand), and the Enable localization for this Field checkbox. There's no Use as list type setting](/_img/en-US/manual/common/images/reference-03-brand-settings.webp)

### Settings common to both link fields {#common-settings}

| Setting | Description | Default | Constraints |
|---|---|---|---|
| **Content**<!-- ko: Content / 영어 화면 표기 미확인 --> / **Media** | The *Field* type you choose in the "Select Field Type" window. A **Content**<!-- ko: 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](#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](#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](/manual/content/localization.md#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.

![The Editor tab of the Configure Field window for the Brand Field. A single Content Reference card is selected, marked default](/_img/en-US/manual/common/images/reference-04-brand-editor.webp)

### Settings only Content fields have {#content-reference-settings}

| Setting | Description | Default | Constraints |
|---|---|---|---|
| **Accept only specified Content Type** | When you turn it on and select *Content Type*s, 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](#limits) |

![The Validations tab of the Configure Field window for the Related Products Field. The type Content List is shown at the top right, with Required Field, Accept only specified Content Type (on, with a list of Content Types below), a Custom error message box, and Array size](/_img/en-US/manual/common/images/reference-05-related-validation.webp)

### Settings only Media fields have {#media-settings}

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](/manual/content/media.md#supported-files) |
| **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 |

![The Validations tab of the Configure Field window for the Main Photo Field. The type Media is shown at the top right, and four settings, Required Field, Accept only specified Media types, Accept only specified image dimensions, and Accept only specified file size, are listed with checkboxes and descriptions](/_img/en-US/manual/common/images/reference-06-photo-validation.webp)

## Rules {#rules}

### Linked items come along in public delivery {#what-comes-along}

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](/api/reference/common/query-parameters.md#parameters).

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 {#republish-after-changing-links}

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 {#unpublished-targets}

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](#what-comes-along)).
- Deleted items don't appear in this list. The product fails the check when you publish it ([If you delete a linked item](#deleting-a-linked-item)).
- This window doesn't appear when you publish from a list screen.

![The Unpublished References window. Below "1 referenced items are not yet published. Do you still want to publish?" the brand DailyWear (Draft) is shown, with Cancel and Publish Anyway buttons](/_img/en-US/manual/common/images/reference-07-publish-warning.webp)

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](/getting-started/core-concepts/content/media.md).

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](#permissions).

### What's checked on save and on publish {#checks-on-save-and-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](#allowing-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](/manual/common/states-and-versions.md#checks-on-save-and-publish).

### When you delete a linked item {#deleting-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](/manual/common/deletion.md). 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.

![The Items Reference This Content window. Below "If you unpublish this Content, 1 references may break." the product Stainless Tumbler 500ml (Published) is shown, with Cancel and Unpublish buttons](/_img/en-US/manual/common/images/reference-08-unpublish-warning.webp)

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](#check-what-links-here)).

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 {#allowing-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](#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 {#order-and-duplicates}

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](#reorder-linked-items).

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 {#localized-link-fields}

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](/manual/content/localization.md#media-files-per-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](/manual/content/localization.md#fields-without-multiple-languages).

### What the Links area shows {#links-panel}

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.

<!-- 캡쳐 필요(재촬영): 콘솔 1.7.30부터 페이지 머리말 오른쪽 위에 튜토리얼 버튼이 있다. 번역본 컷에는 있고 이 ko 컷에는 없다. 콘솔 변경분을 몰아 찍을 때 함께 다시 찍는다(decisions.md 27번) -->
![The References tab on the detail screen of the brand DailyWear. The message "This Content has 0 references" and a description of managing referenced items are shown, with the References area on the right](/_img/en-US/manual/common/images/reference-09-brand-ref-tab.webp)

![The Links area in the right General tab of DailyWear's detail screen. Below "There is 1 other Content that links to this Content :" Stainless Tumbler 500ml is shown as a link](/_img/en-US/manual/common/images/reference-10-brand-links.webp)

## Limits {#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 Type*s 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](/api/reference/common/query-parameters.md#parameters).

## Required permissions {#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](/manual/access-and-permissions/role-and-permissions.md#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](/manual/access-and-permissions/token.md#roles-you-can-bind).

## Tasks in Content Studio {#tasks}

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 {#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 *Field*s such as the brand name and description) and a brand *Content* "DailyWear" made from that template.

1. Add a *Field* of the **Content**<!-- ko: Content / 영어 화면 표기 미확인 --> type to the "Product" *Content Type*. The steps for adding a *Field* are in [Add a Field](/manual/content/content-type.md#add-a-field).
2. In the "Basic Field Settings" window, click **More Settings**.
3. Go to the **Validations** tab.
4. Turn on **Accept only specified Content Type**.
5. Select "Brand" as the *Content Type* to allow.

![The Validations tab of the Configure Field window for the product's Brand Field. The type Content is shown at the top right, and Accept only specified Content Type is turned on with Brand selected in the list of Content Types](/_img/en-US/manual/common/images/reference-01-refer-content-type.webp)


6. Click **Save**.
7. 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](#settings).

### Link a brand to a product {#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".

1. Open the product *Content* "Stainless Tumbler 500ml".
2. Click **Edit** at the top right.
3. Click **Add Existing Content** in the brand field. The **Select Content** window opens.
4. Select "DailyWear" from the list.
5. 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](#create-a-brand-only-field) applies here as is.

![The Select Content window that opens when you click Add Existing Content in the brand field on the product editing screen. "DailyWear" appears in the list filtered to "Brand"](/_img/en-US/manual/common/images/reference-02-content-picker.webp)

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](#what-comes-along), [Unpublished items don't come along](#unpublished-targets)). 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](#republish-after-changing-links)).

### Link a main photo to a product {#link-a-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](/manual/content/media.md#upload-a-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.

1. Open the "Stainless Tumbler 500ml" *Content*.
2. 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**.

![The main photo field has two buttons, Add Existing Media and Create New Media](/_img/en-US/manual/common/images/media-06-field-empty.webp)

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

![The Select Media window. The list shows one tumbler photo, "Stainless Tumbler 500ml Front Shot", with the status Published](/_img/en-US/manual/common/images/media-07-picker.webp)

5. Click **Save** at the top right.

Once the *Media* is linked, the main photo field shows an item with that *Media*'s title.

![The tumbler Content editing screen. The main photo field shows the selected Media as an item with its title](/_img/en-US/manual/common/images/media-08-connected.webp)

> 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](#create-and-link)).

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](/manual/common/states-and-versions.md#change-status-from-the-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](/manual/content/media.md#when-linked-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](#media-settings).

### Change which types can be linked {#set-allowed-content-types}

These are the steps for letting the "Brand" field link partners too. Say you've already created the "Partner" *Content Type*.

1. In the left menu, click **Content Types**.
2. In the list, click "Product". The *Content Type* edit screen opens.
3. Click the gear icon in the "Brand" *Field* row. The "Configure Field" window opens.
4. Click the **Validations** tab.
5. In the list under **Accept only specified Content Type**, turn on "Partner". Leave "Brand", which is already on, as it is.
6. Click **Save**.
7. Click **Save** at the top right of the *Content Type* edit screen.

![The Validations tab of the Configure Field window for the Brand Field. In the list below Accept only specified Content Type, both Brand and Partner are selected](/_img/en-US/manual/common/images/reference-19-two-types.webp)

![The Select Content window opened with Add Existing Content in the Brand field of the product editing screen. The contentType filter is empty, showing Select Content Type, and only two items are listed: the partner Hanbit Trading and the brand DailyWear](/_img/en-US/manual/common/images/reference-20-two-types-picker.webp)

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](#allowing-several-content-types)).

### Link several items in a list field {#link-existing-items}

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".

1. Open the "Stainless Tumbler 500ml" *Content*.
2. Click **Edit** at the top right.
3. Click **Add Existing Content** in the "Related Products" field. The **Select Content** window opens.
4. In the list, check "Insulated Mini Tumbler 350ml".
5. In the list, check "Foldable Travel Bottle 600ml" too.
6. Click the **Select** button at the bottom right of the window.
7. Click the **Save** button at the top right.

![The Select Content window opened from the Related Products field. The contentType filter is set to Product, each row has a checkbox, and the two rows Foldable Travel Bottle 600ml and Insulated Mini Tumbler 350ml are selected. 2 selected and the Select button are at the bottom](/_img/en-US/manual/common/images/reference-11-pick-many.webp)

![The Related Products field after linking. Insulated Mini Tumbler 350ml and Foldable Travel Bottle 600ml are shown in this order, each with a drag handle (⋮) on the left and Published and a ⋯ menu on the right. The Add Existing Content and Create New Content buttons are below](/_img/en-US/manual/common/images/reference-12-related-linked.webp)

The steps for linking in a field that links only one item are in [Link a brand to a product](#link-a-brand-to-a-product), and the steps for linking in a **Media** field are in [Link a main photo to a product](#link-a-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](#republish-after-changing-links)).

### Create an item and link it at the same time {#create-and-link}

If the brand you want to link doesn't exist yet, you can create a new brand right from the brand field.

1. Open the "Stainless Tumbler 500ml" *Content*.
2. Click **Edit** at the top right.
3. Click **Create New Content** in the "Brand" field.
4. In the list that opens, click "Brand". You can choose only the types this field allows, and the rest are dimmed.
5. In the "Create Content" window that opens, enter `MonoLiving` in the Brand name field.
6. Click the **Create** button at the top right of the window. The new brand is created as *Draft* and linked to the brand field.
7. Click the **Save** button at the top right.

![The list of Content Types that opens when you click Create New Content in the brand field. Below the search box, Brand can be selected, and the other Content Types are dimmed](/_img/en-US/manual/common/images/reference-15-new-content-menu.webp)

![The Create Content window that opens when you choose Brand. It has the Brand name and Description fields, with Cancel and Create buttons and the status Draft at the top right](/_img/en-US/manual/common/images/reference-16-new-content-form.webp)

![The brand field after creating. The new brand MonoLiving is linked in Draft status](/_img/en-US/manual/common/images/reference-17-new-content-linked.webp)

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 {#remove-a-link}

These are the steps for removing the brand link from a product.

1. Open the "Stainless Tumbler 500ml" *Content*.
2. Click **Edit** at the top right.
3. Click the ⋯ icon to the right of the "DailyWear" item linked in the "Brand" field.
4. Click **Remove** in the menu that opens.
5. Click **Save** at the top right.

![The menu opened by clicking the ⋯ icon to the right of the DailyWear item linked in the brand field. It has Open, Replace with Existing Content, Replace with New Content, and Remove (in red)](/_img/en-US/manual/common/images/reference-14-remove-menu.webp)

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 {#reorder-linked-items}

This is how to change the order of the products linked in the "Related Products" field.

1. Open the "Stainless Tumbler 500ml" *Content*.
2. Click **Edit** at the top right.
3. 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.
4. Click the **Save** button at the top right.

![The Related Products field. Each item has a handle (⋮) on the left for dragging it to change the order](/_img/en-US/manual/common/images/reference-12-related-linked.webp)

### Check which Content links to this item {#check-what-links-here}

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.

1. Open the *Media* list screen.
2. Open "Stainless Tumbler 500ml Front Shot" from the list.
3. Check the **Links** area on the **General** tab on the right.

![The right General tab of the detail screen for the Media Stainless Tumbler 500ml Front Shot. In the Links area, below "There is 1 other Content that links to this Media :" Stainless Tumbler 500ml is shown as a link](/_img/en-US/manual/common/images/reference-18-media-links.webp)

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](#links-panel).

## Troubleshooting {#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](#set-allowed-content-types) |
| 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](#create-and-link) |
| 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](/api/reference/common/query-parameters.md#parameters) |
| 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](/manual/common/deletion.md) |
| 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 {#related}

- [References](/getting-started/core-concepts/common/reference.md): 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](/manual/content/media.md): 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](/manual/common/deletion.md): Covers what you can delete and when, and the conditions that block a deletion.
- [Status and version rules](/manual/common/states-and-versions.md): Covers the rules for how publishing, unpublishing, and archiving change the status.
- [API reference](/api/reference/cma/content-type.md#validations): Covers the technical specs for working with link field definitions and validations directly from a program.
