# Informative Buttons

## **What is** Informative Buttons

This web part facilitates the promotion of **corporate initiatives**, showcases **intranet features**, and ensures convenient access to **external websites** through captivating new graphics.

You can personalize button icons to offer clues about their content, enticing users to explore further without navigating away from the current page. By hovering the cursor over the graphics, hidden information is unveiled.

{% hint style="info" %}
Explore the **advantages** of Informative Buttons by [**clicking here**](https://intranet.ai/features/button-with-pop-up-content/) to learn more.
{% endhint %}

***

## Add the Informative Buttons web part to a SharePoint page

* If your page is not already in edit mode, click **Edit** at the top right of the page.
* Hover your mouse above or below an existing web part and you'll see a line with a circled +, like this: <img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FccHplKgXfibd4tktmhas%2Fadvanced-search-2.png?alt=media&#x26;token=7d703967-c3f7-4125-834b-f695362bf90b" alt="" data-size="line">&#x20;
* Click on it and, in the web part search box, enter **Hover Button** to quickly find and select the Informative Buttons web part, which is named "IAI - Hover button".

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FW53AP7SKQxZPoUKTXJxZ%2Fhoverbutton%201.png?alt=media&#x26;token=a44b56c7-4fa9-4c6b-b862-b18fa7c092f5" alt="" width="406"><figcaption></figcaption></figure></div>

* Click the **Edit properties** <img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FhvmYIwPRbjjkAWWtN5Mz%2Fimage.png?alt=media&#x26;token=5a60030b-f836-4999-9e6b-48118437c3ff" alt="" data-size="line"> button on the left of the web part to open the property pane and set options such as Front button settings, Back button settings, and Colors settings. See below for more information on each of these options.

{% hint style="info" %}
Please note, the button takes up **the entire size of the SharePoint section**.

Therefore, you need to select the section size choosing from the different layouts, and the button size will adapt accordingly, as shown below:&#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%2F4IJPJOVaaKd1ZY2o06Eo%2Fhoverbutton1%20(1).png?alt=media&#x26;token=8d145f3f-fd3c-4f2d-a8dc-1088aca21a34" alt="" width="375"><figcaption><p>Layout section with one column</p></figcaption></figure> <figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FH7Dp1TZOdHZayLEMIcRQ%2Fhoverbutton1%20(2).png?alt=media&#x26;token=6b5a2684-2160-4b01-bec4-f51d9968fec4" alt="" width="375"><figcaption><p>Layout section with two columns</p></figcaption></figure></div>

<div align="center"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2Fquuzt9Ay8VBPu0NZmGr3%2Fhover%20button%202.png?alt=media&#x26;token=39362d71-1e37-49b2-9801-dbc3a8d9b7f2" alt="" width="375"><figcaption><p>Layout section with three columns</p></figcaption></figure></div>

***

## Configuration

1. [View settings](#view-settings)
2. [Front button settings](#front-button-settings)
3. [Back button settings](#back-button-settings)
4. [Colors settings](#colors-settings)

### View settings

The view settings allows you to customize the appearance of your application by adjusting various layout settings.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2Fq68p5QQ1CaP46Q8Yegxk%2Fimage.png?alt=media&#x26;token=d0835099-e05b-4bcf-a8f2-24462f432abf" alt=""><figcaption></figcaption></figure></div>

By opening this first configuration, you will see the following options:

* **Do you want to hide the background?** You can choose to hide or display the webpart background The default setting is “No”. This means that, by default, the webpart is characterized by a white background. If you enable this option, the white card background will be completely removed, allowing the content appear directly on the page. As a result, the webpart will be transparent, showing either the selected background image or the chosen SharePoint page color.
* **Do you want to hide the background shadow?** You can choose whether to show or hide the background shadow. The default setting is “No”. This means that, by default, the webpart is characterized by a subtle depth effect that can make the webpart stand out more against the rest of the page. If you enable this option, the shadow behind the background will be removed, giving the web part a flatter, cleaner look without any depth.
* **Select the type of background shadow:** If you decide to set the background shadow, a further configuration will appear and you can select the style from High Contrast, Light, or Dark options.
  * If you select High contrast, this option creates a strong, bold shadow effect that provides a high level of contrast between the background and the content.
  * By choosing the Light background shadow, it will create a soft and subtle effect, giving a more delicate and gentle depth to the background.
  * Finally, the Dark background shadow style provides a darker, more intense effect, adding depth and emphasizing the background even more.

### Front button settings

In this section, you can configure the **icon** and the **title** associated to the button.

Buttons are strategically crafted to grab users' attention, enticing them to delve into hidden content. The titles and icons are there to guide them to the information they seek, saving time that would otherwise be spent searching or navigating various pages on the website.

{% hint style="info" %}

* If you're not in edit mode already, click **Edit** at the top right of the page.
* Select the Informative Buttons web part, then click **Edit properties** <img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FRs5xzn1AZdzIQJyZHGQF%2Fimage.png?alt=media&#x26;token=1cf0ddf6-198c-4932-9cd7-207a50f46269" alt="" data-size="line"> button on the left side of the Informative Buttons web part.
  {% endhint %}

This section includes the following fields:

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FzTfBuSy8iyi4bvVoyTD1%2FProgetto%20senza%20titolo%20(10).png?alt=media&#x26;token=92d11c13-dfae-4305-a385-c5381751fbe8" alt=""><figcaption></figcaption></figure></div>

In the first field, copy and paste the **link of the icon** you want to use to illustrate the title.

{% hint style="info" %}
You need to **upload the icon in advance** to a folder on SharePoint Online, specifically in the Site contents of the intranet, where **all users** have access (see below).
{% endhint %}

#### How to upload a picture to SharePoint?

* Click on the **Settings** icon at the top right of the page, and then on **Site contents**.

<figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2Fi9hbNToQa0tTtsZzFM1m%2Fimage.png?alt=media&#x26;token=c7075173-d76e-4a7e-9c69-e7b02709e7d8" alt=""><figcaption></figcaption></figure>

* Select the folder where you want to upload your icon (e.g., **Site Assets**) and upload the picture.
* Select the image and click on the **Info** icon on the right of the top bar.

<figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FFUZRJonVQxzGPD0qdsva%2Fhoverbuttton4.png?alt=media&#x26;token=0888dba8-e1c5-4c8a-ba87-e1071f0f62c1" alt=""><figcaption></figcaption></figure>

* Scroll down the window and **copy the image path** by clicking on the **Path** icon ![](https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FV2aRNLZArcmhfaqmp1m7%2Fimage.png?alt=media\&token=7aec1c93-5a43-485c-b2ec-a6d3a513aa8d).

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FR1asv5otSq2e6wdenziL%2Fhoverbutton5.png?alt=media&#x26;token=76488aba-7886-4dd3-af1f-fe33dbf063d1" alt="" width="248"><figcaption></figcaption></figure></div>

* Go back to the page with the Informative Buttons web part and insert the path of the icon in the required field.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FLHULOuZ6uT3SNmO2FkLm%2Fhover%20button6.png?alt=media&#x26;token=db5b8707-dfb9-41c7-9d6f-633b0d0b6302" alt="" width="285"><figcaption></figcaption></figure></div>

Below is an example of an icon added to a button:

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FzI1OTetrhTJSxL8iURvk%2Fimage.png?alt=media&#x26;token=ce0e8888-1df2-4f6d-8ee3-12daf7902f57" alt=""><figcaption></figcaption></figure></div>

In the **Title** field, write the title of the button. The title appears to the right of the icon, as shown in the example below:&#x20;

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2Fd0uClk3XeM6Xk18uJZjd%2Fimage.png?alt=media&#x26;token=bc0ca0ca-8c6a-4626-b788-5819ca0d9bb6" 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%2FhyyQsyEgW37pQItshwZu%2Fimage.png?alt=media&#x26;token=8dfe2b1f-b4ae-4540-900f-f2419f5997fb" alt=""><figcaption></figcaption></figure></div>

### Back button settings

This section allows you to enrich your button with additional information, enabling users to explore further.

{% hint style="info" %}

* If you're not in edit mode already, click **Edit** at the top right of the page.
* Select the Informative Buttons web part, then click **Edit properties** <img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FrMUFEwmjEMxr2dV6Pez3%2Fimage.png?alt=media&#x26;token=86e40747-3c69-42d1-be23-a240ede8bf0c" alt="" data-size="line"> button on the left side of the Informative Buttons web part.
  {% endhint %}

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FzavVwiOMxkoHSxJtfvYg%2FHover3.png?alt=media&#x26;token=e266e6cf-cf62-45bd-921a-46b25f00ba7c" alt=""><figcaption></figcaption></figure></div>

Here you can input the **title** of the back button and a **text** with additional information. Users will be able to read this text by hovering their cursor over the button. See an example below:

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FAbRyZmQ48geQBaEYrDuw%2FHover4.png?alt=media&#x26;token=01f8c380-79ee-4307-8269-a02b499c4264" alt=""><figcaption></figcaption></figure></div>

For further customization, a **hyperlink** can be added to the back button paragraph. This will encourage users to click the link and explore content. To insert a hyperlink, take the following steps:

* First of all, write your text in the **Paragraph** field.
* Choose where you want to insert the link (at the beginning, in the middle or at the end of the text) and copy and paste the following code:

\<a href="<mark style="background-color:yellow;"><https://www.google.it/></mark>" target="\_blank" style="<mark style="background-color:yellow;">color:red</mark>; text-decoration:none"><mark style="background-color:yellow;">Clicca qui</mark>\<a/>

{% hint style="info" %}
Highlighted in yellow are the sections to be modified according to your preferences.

* [<mark style="background-color:yellow;">https://www.google.it/</mark>](https://www.google.it/) = the link you wish to insert in your text.

* <mark style="background-color:yellow;">Red</mark> = the color you want to appear in your text. You can change the color by writing the appropriate color in English.

* <mark style="background-color:yellow;">Clicca qui</mark> = Call To Action inviting the user to access the link. You can modify the CTA text as you wish.
  {% endhint %}

* Below is an example of custom text with a link using the following code: \<a href="<https://www.google.it/>" target="\_blank" style="color:red; text-decoration:none">Clicca qui\<a/>

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2F7JkJIYPmyJhKXm8dAbHw%2Fimage.png?alt=media&#x26;token=e91353ba-edca-43f0-b18c-5f70faf2de3c" alt=""><figcaption></figcaption></figure></div>

Alternatively, you can copy and paste an internal or external link into the **Button url** field. Users will simply need to click the button to access the link and explore content. Thanks to the **Open on a new tab** field, you can choose whether to open the link on the same tab or a new tab.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FlmcMH9Q6psiLrLm7tFF1%2FHover5.png?alt=media&#x26;token=b0a8d6b6-55f6-4bf6-afef-07845daa231d" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
It is not possible to customize the color of the back button title.
{% endhint %}

### Colors settings

This section allows you to customize the different button colors. If you want more possibilities with respect to your graphic theme, you can modify the colors of the text and the background both in the front button and in the back button.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FKtMNenMsMptx7P9S8CkJ%2Fcolors%20settings.png?alt=media&#x26;token=9e8b2745-aa26-47a5-be7d-6d5766b39696" alt=""><figcaption></figcaption></figure></div>

* **Do you want to customize colors?** This option allows you to choose and customize the colors of the front button. You can select the background and the text color by using the color picker or by entering a specific hex code.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FpXlaUpJJPtCZXRS5hh6L%2FProgetto%20senza%20titolo%20(13).png?alt=media&#x26;token=559ef51d-0cb2-4e26-a631-53db0908c3db" alt="" width="175"><figcaption></figcaption></figure></div>

See an example below with red background and black text:

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2F53WZbvGpMtyMw5fScrzb%2Fimage.png?alt=media&#x26;token=7b64337d-1814-44e6-b81d-6766422edf12" alt=""><figcaption></figcaption></figure></div>

* **Customize hover colors?** This option allows you to customize hover colors, that is to say the colors of the back button. You can select the background and the text color by using the color picker or by entering a specific hex code.

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FCfRuq1xVjVYowCXKTAr9%2Fimage.png?alt=media&#x26;token=c59c4a6b-3dac-4237-b20c-ba3e7e4af900" alt=""><figcaption></figcaption></figure></div>

See an example below with pink background and black text:

<div align="left"><figure><img src="https://2718234637-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FriXlnuemuParrCf7Uotu%2Fuploads%2FnBmyGXi9t2lkb2NAI79S%2Fimage.png?alt=media&#x26;token=3953b787-40c0-4165-a619-15af7d2e3ed3" alt=""><figcaption></figcaption></figure></div>

When you are done,  don't forget to publish your edits by clicking on **Republish** at the top right of the page.

{% embed url="<https://intranet.ai/>" %}
