Link authors to content
Create relationships between articles and their authors to show who wrote what. The easiest way to do this is by modeling your articles and authors as separate content types. You then create content based on the types and link it together to define the relationships.
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=uW-uvPkLRDE
Create a content type for your authors
First, you need to define what your author model will look like.
- In Content model, click Create new.
- Enter a name for your content type, such as Author.
- Add at least two elements:
- A Name text element
- A Bio rich text element
- Click Save changes.
Add a place to link authors in your articles
- In Content model, open a content type you use for articles.
- Add a Linked items element.
- Name it Author.
- Make it required.
- Limit the allowed content types to Author.
- Click Save changes.
Create and link an author
To link an author to an article, you first need to create an author. You can create an author separately (as you would create any content item) or create it directly from within an article, as in this example.
- In Content & assets, open one of your articles.
- In the Author element, click Create new author.
- If multiple workflows are available, select one for the new Author content item.
- Enter a name for your content item, such as the author's first name.
- Enter the author's name into the Name element.
- Enter a bio into the Bio element.
- Publish your author.
- Click in the top left to go back to your article.
- Publish the new version of your article.
Now you've linked one of your authors to an article.
New linked items inherit a collection from their parent item
To change it, open the Author content item you've just created and select a different collection. You can do that also for already published items without creating a new version.
You can follow the same approach for other types of standalone content like blog posts or case studies.
You created a content type for your authors, created an author, and linked your author to an article. Now that you've linked the items inside Kontent.ai, you can retrieve the items and display their relationship in your app.
- Take the concept of linking content further and build landing pages from your existing content.
- Know when to use components instead of content items in rich text.
- Add code samples to your technical articles.