# Creation of tag systems for news and documents

## Introduction&#x20;

With **tags**, you can **categorize contents** such as **news** and **documents** uploaded to your SharePoint intranet. This helps users **find such contents more quickly** thanks to the **filter function**. In addition, you can configure webparts so that they display only **contents belonging to specific categories**.

Tags are created using the **Term store** **management tool**, which can be accessed from the SharePoint intranet site. Tags (also referred to as **metadata**) are **terms** belonging to **term sets**, which in turn belong to **term groups**. After creating term sets and terms, you need to go back to your SharePoint intranet and create **columns of the Managed Metadata type**, which allow you to **apply tags** to your contents.&#x20;

To sum up, you need to take the following steps:

1. **Create term sets and terms** in the Term store;
2. **Create Managed Metadata columns** to assign metadata to your contents (news and documents);
3. **Apply tags to your contents** (news and documents).

These steps will be explained in detail in the following sections. Section 2 and 3 are divided into two sub-sections concerning documents and news respectively.

## Create term sets and terms in the Term store

{% hint style="info" %}
As this procedure requires high levels of permissions, it is recommended to perform it with an IT member.
{% endhint %}

First of all, you need to open the Term store, which is a section of the Site Administration area. To access the Term store, take the following steps:&#x20;

* Click on the **Settings** icon, then click on **Site information**.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2Fm8K3aNpt1FHgueJ5dtuf%2FTag-1.png?alt=media&#x26;token=352f6a0f-7acf-4cb3-a442-663f2fbae726" alt=""><figcaption></figcaption></figure></div>

* Click on **View all site settings**.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FMHyrDzHjsVg5OOEokJj4%2FTag-2.png?alt=media&#x26;token=2d048f98-8dd6-4008-92b6-7f2b0603b56d" alt=""><figcaption></figcaption></figure></div>

* Under Site Administration, click on **Term store management**.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FHRtiuLklZzhfpNCdg4a8%2FTag-3.png?alt=media&#x26;token=33fc4a76-735d-4842-8c16-946e27d9823b" alt=""><figcaption></figcaption></figure></div>

* You will land on the **Term store**, where you can create term groups, term sets and terms.

<figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FyReaNvET0K6b4EaXr6Yn%2FTags-4.png?alt=media&#x26;token=c8d05143-d162-47b0-b0c0-99942dfedf44" alt=""><figcaption></figcaption></figure>

Let us assume that you want to divide a set of **documents** into categories corresponding to different Departments (e.g. Marketing, HR, IT, etc.). As a first step, you need to **create a new global term group**. A term group is a set of term sets that share common security requirements. To create a new term group, click the **three dots** to the right of the Taxonomy section. Then, click on **Add term group**.&#x20;

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FUDjB50vVddrDt68hN6Kk%2Ftags-5.png?alt=media&#x26;token=c7551f19-b932-450a-97f9-669c1df0946c" alt=""><figcaption></figcaption></figure></div>

Enter a **name** for your new term group and press **Enter**. You can simply write what **type of content** you are going to manage with the tags in this group.&#x20;

> For example, "Documents".&#x20;

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FOjf6m8Dk4JmEUDeaIG7z%2FTags-6.png?alt=media&#x26;token=4e202659-542d-47b5-b5fe-9294247e7308" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
You can create a new term group only if you are a **term store admin**.&#x20;

You can **edit the group managers or contributors** by clicking on **Edit** next to **Group Managers**. A panel appears, where you need to enter the names or email addresses of the people you want to add and assign them a role (either manager or contributor). When you are done, click on **Save**.
{% endhint %}

As a second step, you need to **create a new term set**. A term set is a group of related terms. To add a new term set, click the **three dots** next to the term group name, and select **Add term set**.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FGXn7fgoPiP35lYWSUATr%2FTags-7.png?alt=media&#x26;token=6fae3e19-b224-4708-b5e3-5ceb93d6cd05" alt=""><figcaption></figcaption></figure></div>

Enter a **name** for your new term set and press **Enter**. The name should correspond to the general topic to which the tags will be related.

> For example: "Departments"

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2Fm3PuB9AD3F1rpuXO9t0R%2FTags-8.png?alt=media&#x26;token=4e67c684-0633-428e-808b-f7eda73313e1" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
**The term set name should not contain spaces**. If the name you want to use includes more than one word, please use hyphens or capital letters without spaces. For example: DocumentTypes.
{% endhint %}

{% hint style="info" %}
To add a term set, you must be a **contributor**, a **group manager** or a **term store admin**.
{% endhint %}

Finally, as a third step, you need to **add terms (tags) to your term set**. A term is a specific word or phrase within a term set, and it has a unique ID. To add a new term, click the **three dots** next to the term set name, and select **Add term**.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2Fg7kewr9zo9HhkFX6SjkD%2FTags-9.png?alt=media&#x26;token=a8649479-894d-43f0-a5f3-6061d5a0fd13" alt=""><figcaption></figcaption></figure></div>

Enter a **name** for your term and press **Enter**.&#x20;

> For example: "Marketing".

Repeat these steps to add more terms, e.g. "HR", "IT", "Finance" and so on.  If you need to delete a term, click the three dots next to the term name and select **Delete term**.

You can create **multilingual tags**. To add a translation, select the term you want to translate and, on the **General** tab, under **Translations and synonyms**, select  **+ Add**. The **Add translation and synonyms** panel appears. Select your language, type the translation, and click **Save** at the bottom left of the panel.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2Ft78dsoodPRxIitTS8FmN%2FTags-11.png?alt=media&#x26;token=bf1b5eea-7d0f-49c5-812e-f0da33462963" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FtrK0wkb763iAVE3M8vJ0%2FTags-12.png?alt=media&#x26;token=8e1b2281-d153-487c-8d6f-6104cbcbd3cb" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
To create and manage terms, you must be a **contributor**, a **group manager**, or a **term store admin**.
{% endhint %}

If you want to use tags to categorize **news**, you need to follow the procedure described above. For example, let us assume that you want to divide the news published on your intanet into categories corresponding to different news types. To create these tags, you need to:&#x20;

* Access the Term store;&#x20;
* Create a new term group which could be named, for example, "News";
* Create a new term set which could be named, for example, "NewsType";
* Add terms to the term set, for example, "Corporate news", "Welcome", "HR", etc.&#x20;

To apply tags to your news and documents, you need columns of the Managed Metadata type. Read the following section to learn how to do so.&#x20;

## Create Managed Metadata columns

After creating your tags, you need to open the library where the contents to be categorized are collected. Here, you need to create a Managed Metadata column, which will allow you to select and apply terms from a specific term set. The first part of this section explains how to create Managed Metadata columns to categorize documents, while the second part describes how to create Managed Metadata columns to categorize news.&#x20;

### Create Managed Metadata columns: documents

First of all, open the document library where your documents are collected. Then, click on **+Add column**. A panel appears, showing you different column types: scroll down and select **Managed metadata**, then click **Next**.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2Fj1kvh86ZmxNWJJph6Zyj%2FTags-13.png?alt=media&#x26;token=83a67c25-c94f-413d-8988-79ed1a918a41" alt=""><figcaption></figcaption></figure></div>

The **Create a column** panel appears. The panel features a number of fields to fill in. The fields marked with an **asterisk (\*)**, i.e., **Name** and **Term set or term**, are **mandatory**. Fill in these fields as follows:&#x20;

* **Name**: enter the **name of the column**. If the name you want to use includes more than one word, please **avoid spaces**: use capital letters.&#x20;

{% hint style="info" %}
**The column name should coincide with the name of the term set** you are going to select.&#x20;
{% endhint %}

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2F5kpAI2vegjDolT0yJQ6i%2FTags-14.png?alt=media&#x26;token=6c05c813-d97a-4e35-9b50-ac8d97c11479" alt=""><figcaption></figcaption></figure></div>

* **Select term set or term**: here you need to associate the colum with a term set. Click on **Select** to open the **Select term set or term** panel. This panel shows you the term groups available in the Term store. Click on the **term group** you are interested in and select the correct **term set**. Then, click on **Save** at the bottom left of the panel.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2F3Kqw1lLjoLxlGe90RCAF%2FTags-19.png?alt=media&#x26;token=69297320-6e5a-486e-8c1f-3c323a349699" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2F5U9ZCfnv3eHrULPEMVkx%2FTags-a.png?alt=media&#x26;token=27adf32b-bd27-4a97-a578-c0ddca3e7dd9" alt=""><figcaption></figcaption></figure></div>

* After the selection of a term set, the **Default value** field appears: here you can select or type a default value, i.e., a tag that will be automatically applied by default.&#x20;

The **Create a column** panel also includes additional options which can be accessed by clicking on **More options**. Here you can set further options, such as:&#x20;

* **Allow multiple values**: if you enable this option, you will be able to apply more than one tag to a document.
* **Require that this column contains information**: if you enable this option, it will be mandatory to add a value to this column.&#x20;

When you have completed the panel, click on **Save**.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FRDp3K7c2dYvXuDcqIf2C%2FTags-15.png?alt=media&#x26;token=8776da35-c857-43c7-88f6-d6a3d4b2dce7" alt=""><figcaption></figcaption></figure></div>

To **edit** a column, you need to **select** **it (1)**, click on **Column settings (2)** and select **Edit (3)**. By so doing, you will open the **Edit column** panel, which is identical to the **Create column** panel. When you have completed your changes, click on **Save** at the bottom left of the panel.&#x20;

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FMJVIobGTeseOBbWcUKDT%2FTags-16.png?alt=media&#x26;token=6e45bbb9-1212-4825-ab05-4b5571dfff44" alt=""><figcaption></figcaption></figure></div>

### Create Managed Metadata columns: news

First of all, you need to access the page library where your news are collected. To do so, follow these steps:&#x20;

* Click on the **Settings** icon at the top right of the page, then click on **Site contents**.&#x20;

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2Fe9plrJc5cYByYiqQxr7X%2FSite-contents.png?alt=media&#x26;token=fa2fc357-c829-48c2-8184-f9d89017a70f" alt=""><figcaption></figcaption></figure></div>

* Scroll down to the bottom of the page and select the **Site Pages** page library.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FrIV9rqba9Z24Rc8phJe3%2FTags-21.png?alt=media&#x26;token=d00f0fc8-47d0-4cfc-809d-7488f64e7efd" alt=""><figcaption></figcaption></figure></div>

Now, add a new Managed Metadata column by taking the steps described in the [previous sub-section](#create-managed-metadata-columns-documents) concerning documents. First, you need to click on **+Add column** and select the **Managed metadata** column type. Then, click **Next**.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2Fj1kvh86ZmxNWJJph6Zyj%2FTags-13.png?alt=media&#x26;token=83a67c25-c94f-413d-8988-79ed1a918a41" alt=""><figcaption></figcaption></figure></div>

The **Create a column** panel appears. The panel features a number of fields to fill in. The fields marked with an **asterisk (\*)**, i.e., **Name** and **Term set or term**, are **mandatory**. Fill in these fields as follows:&#x20;

* **Name**: enter the **name of the column**. If the name you want to use includes more than one word, please **avoid spaces**: use capital letters.&#x20;

{% hint style="info" %}
**The column name should coincide with the name of the term set** your are going to select.&#x20;
{% endhint %}

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FgfQG233l3L9hCVbBwK9H%2FTags-22.png?alt=media&#x26;token=67abe077-ba6a-451b-9027-bba6cd2a84b6" alt=""><figcaption></figcaption></figure></div>

* **Select term set or term**: here you need to associate the colum with a term set. Click on **Select** to open the **Select term set or term panel**, which shows you the term groups available in the Term store. Click on the **term group** you are interested in and select the correct **term set**. Then, click on **Save** at the bottom left of the panel.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2F18WnSTYAsoPcgYIe2BPe%2FTags-23.png?alt=media&#x26;token=6d2197c7-826d-491a-b4cc-a7cced711fc3" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FH9yllzN4JBN3lFnyU5RF%2FTags-24.png?alt=media&#x26;token=992b2531-b482-4900-bd75-00cf5e71950f" alt=""><figcaption></figcaption></figure></div>

* After the selection of a term set, the **Default value** field appears: here you can select or type a default value, i.e., a tag that will be automatically applied by default.&#x20;

The **Create a column** panel also includes additional options which can be accessed by clicking on **More options**. Here you can set further options, such as:&#x20;

* **Allow multiple values**: if you enable this option, you will be able to apply more than one tag to a news.
* **Require that this column contains information**: if you enable this option, it will be mandatory to add a value to this column.&#x20;

When you have completed the panel, click on **Save**.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FsYSlxNv1c2UMeVXPMDjB%2FTags-25.png?alt=media&#x26;token=6c78c4bf-0d30-4bf2-a237-874d86560a29" alt=""><figcaption></figcaption></figure></div>

You can **edit** a column by taking the steps described in the previous sub-section: **select the column** and click **Column settings > Edit** to open the **Edit column** panel, which is identical to the **Create column** panel. Make the necessary changes and click on **Save** at the bottom left of the panel.

Now you can use the Managed Metadata columns you created to apply tags to your contents. Read the following section to learn how to do so. &#x20;

## Apply tags to contents&#x20;

This section will show you how to assign metadata to news and documents by using the Managed Metadata columns you created previously, In particular, the first sub-section focuses on documents, while the second one concerns news.&#x20;

### Apply tags to documents

To apply a tag to a document, take the following steps:&#x20;

* **Select** the document you want to categorize **(1)**.
* Click on the **info icon** at the top right of the page to open a panel containing information on this document **(2)**. &#x20;
* This panel features the **name of the Managed Metadata column** you created previously **(3)**. Click inside the **box** under the column name to apply a tag from the term set associated to the column. You can **type the name of the tag** and press **Enter**. Alternatively, you can click on the **tag icon** to view all the tags belonging to the term set and **select the correct tag from the list**. &#x20;

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FaLalVmxiHMo2LtQWfRZn%2FTags-17.png?alt=media&#x26;token=69923242-00f4-4506-86aa-f8dd98082a30" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FS0XLEK9BqN042icV4ElW%2FTags-18.png?alt=media&#x26;token=95eafa78-600f-4953-882d-eee999899cea" alt=""><figcaption></figcaption></figure></div>

* After selecting the correct tag, click on **Apply** at the bottom left of the panel.&#x20;
* If you have activated the **Allow multiple values** option, **repeat these steps** to add more tags.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2F18CSzhwzIYfsK26OvMXD%2FTags-20.png?alt=media&#x26;token=c753cc98-d123-4a0e-a06c-82a122685370" alt=""><figcaption></figcaption></figure></div>

### Apply tags to news&#x20;

To apply a tag to a news, take the following steps:&#x20;

* **Select** the news you want to categorize **(1)**.
* Click on the **info icon** at the top right of the page to open a panel containing information on the news **(2)**. &#x20;
* This panel features the **name of the Managed Metadata column** you created previously **(3)**. Click inside the **box** under the column name to apply a tag from the term set associated to the column. You can **type the name of the tag** and press **Enter**. Alternatively, you can click on the **tag icon** to view all the tags belonging to the term set and **select the correct tag from the list**. &#x20;

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FOSpEFfDvzcgtg0dYMPJv%2FTags-26.png?alt=media&#x26;token=107a5175-3f69-4e0e-b46a-3a641fe9bcef" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FjkeHze27vOGGvzCZ51TQ%2FTags-27.png?alt=media&#x26;token=d3230b05-7545-42fa-96a4-7a80f615c548" alt=""><figcaption></figcaption></figure></div>

* After selecting the correct ta&#x67;**,** click on **Apply** at the bottom left of the panel.&#x20;
* If you have activated the **Allow multiple values** option, **repeat these steps** to add more tags.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2Fq8Xl2zvrcnpzrw3Ip31r%2FTags-30.png?alt=media&#x26;token=e2052a5f-0c9b-4aa6-8377-52bd50325a15" alt=""><figcaption></figcaption></figure></div>

After the selection of the tag, a yellow book icon appears next to the news title. This means that the news needs republishing. To republish the news, just hover your mouse over the icon. A window appears: click on **Republish now**.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2F7WKuXo1hLqukXi0FeThs%2FTags-31.png?alt=media&#x26;token=fbd3cdfe-3ea7-4cc1-8d14-3501acf7a072" alt=""><figcaption></figcaption></figure></div>

You can assign metadata to a news also in the **Page details** panel in the news itself. The steps to follow are listed below:&#x20;

* Open the news.
* Click on **Edit** at the top right of the page, and then on **Page details** on the left bar.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2Fg7Dg0oYwg2YKNcgN6aYj%2FTags-28.png?alt=media&#x26;token=d33310e5-4337-4112-af58-aa1e9c2a784d" alt=""><figcaption></figcaption></figure></div>

* The **Page details** panel opens. This panel also features the **name of the Managed Metadata column** you created previously. The steps to take to apply metadata to the news coincide to those described above.&#x20;

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2F22eJSns2FzSYfQ97fGkB%2FTags-29.png?alt=media&#x26;token=dc6c70ab-5ed2-4352-bb20-6d0a3697f3d5" alt=""><figcaption></figcaption></figure></div>

* Click inside the **box** under the column name to assign a tag from the term set associated to the column. You can **type the name of the tag** and press **Enter**. Alternatively, you can click on the **tag icon** to view all the tags belonging to the term set and **select the correct tag from the list**.&#x20;
* After selecting the correct ta&#x67;**,** click on **Apply** at the bottom left of the panel.&#x20;
* Finally, click on **Update news** at the top right of the page to republish the news.&#x20;
