Link related content together
Your existing content, whether it's articles, case studies, or products, is usually topically related. In Kontent.ai, you specify these relations using linked items. You can use this approach to feature related products on an e-commerce site or provide a list of related articles. Let's see how it all works with related articles.
Table of contents
How content linking works
Watch this video to get familiar with the concept of linking content together.
Play video on https://www.youtube.com/watch?v=8KigEbu5xvg
Add a place for related items
First, you need to add a linked items element to a content type. This will allow your content creators to specify the related items.
- In Content model, open a content type for editing.
- Add a Linked items element.
- Name it Related articles.
- Limit the element to the Article content type.
- Click Save changes.
Now that you've added a way to specify related articles, you can open an article you want to link with the related content.
Link content together
To add related articles to an existing article in your project, you'll use the new linked items element.
- In Content & assets, open an article for editing.
- In the Related articles element, click Add existing items.
- Select one or more existing articles.
- Click Add.
In the picture, you can see how the final result could look on a website.
Manage your linked content
After adding the articles, you can reorder, remove, or expand the items to view their content. To edit a linked item, click Edit to open the content item for editing.
The linked content items are independent and can be accessed outside the content items they are used in. This means you only need to edit a specific linked item once and the changes will be automatically reflected everywhere. You can also publish all linked items along with your original article.
See how your content is linked together
Once your project starts growing, you might find it harder to navigate through all your linked content. This is where the Relations tab can come in handy. With a home item all set up, you can see the relationships of your linked items and what the structure of your website looks like within Kontent.ai.
The Relations tab is a tool that provides you with a different view of your content items list. It can be used to display the hierarchy of the selected content item and its related items. The relationships between items can be created either by using linked items elements or by inserting the existing content items directly into a rich text element.
The top content item of the hierarchy is called a Home item. It could be a content item representing your landing page, the main screen of your app, or basically anything that's on the top of your content structure.
Under the home item, you can see all the content items that are linked inside. If some of these content items themselves have linked items inside, they can be expanded using the Expand icon next to their name. Clicking the content item will redirect you to this item's editing page.
In each one of your projects, you can set up a default home item that the project members will see when opening the Relations tab for the first time. However, you can also select your own home item, which will be visible only to you.
Users with the Manage development settings permission can set their home item as a default home item for everyone in the project.
Changing your home item
To change the home item:
- In Content & assets, click the Relations tab.
- Click More actions.
- Select Change your home item.
- Select your new home item from the list.
If you decide to return back to the default home item, you can do this by clicking More actions and selecting Back to default.