News Archive
The SharePoint list that hosts the news published in the intranet, sorted by publication date and filterable by category.
What is News Archive
This web part facilitates access to all the intranet's news articles, thoughtfully sorted by publication date and filterable by category. This functionality allows users to effortlessly navigate through the archive, ensuring a straightforward and tailored approach to information retrieval. Customize and configure filters according to your preferences to enhance your intranet browsing experience.
Explore the advantages of Intranet.ai News and Communications by clicking here to learn more.
Add the News Archive web part to a page
If your page is not already in edit mode, click Edit at the top right of the page.
Click on it and, in the web part search box, enter News Archive to quickly find and select the IAI-NewsArchive web part.
Configuration
News source settings
These settings allow you to specify the various data sources to be linked to the web part. You can also configure filters in this section to improve user search.
If you're not in edit mode already, click Edit at the top right of the page.
Then complete the tabs as follows:
Select sites: select the sites from which you want to take the news to show in the archive.
Use the hub site: you can choose to use the hub site or not. If you enable this option, the complete hub will be taken as source for the news.
Insert list of favorite news: insert the URL of the favorite news list (stored in the Site contents of the intranet) to allow users to flag their favorite news.
Configure filters: in this window, you can configure the various filters to be applied to your news.
In the first column, write: owstaxId + the name of the column used to assign metadata to the news.
In the second column, copy-paste the id of the term set. To do this, go to the Term store and find the id of the term set.
To access the Term store, take the following steps:
Click on the Settings icon at the top right of the page, then click on Site information.
Click on View all site settings.
Under Site Administration, click on Term store management.
You will land on the Term store, which is the area where you can create term sets and terms, i.e. tags to categorize your content. Here you need to copy the unique identifier of the taxonomy, which is a code composed of numbers, letters and hyphens.
The third column refers to the title of the filter you wish to display in the webpart. The title can be exactly the same as the term set name, or you can give it a different one.
You can then choose whether or not to display the filter, the tag attached to the news and the search bar (which is useful if there are many filters).
As regards the Stop reordering field, by default the tags in the filter drop-down menu are ordered alphabetically. If you flag this box, the tags will keep the same order they have in the term set.
Finally, you can decide whether the filter drop-down menu will be open or close by default.
If you want to discover more about filters and the Term store management, click here.
The following settings allow you to pre-filter results, which means that you can show only specific types of news instead of the whole news archive. To do so, you need to configure the fields below.
Enter the field name: enter the name of the column used to assign metadata to the news.
Enter the unique id of the term set: copy and paste the id of the desired term set (find it in the Term store).
Then, select the tag(s) you wish to appear in the news archive.
Finally, select whether to use id or label for filters: leave Value.
Here, you can choose to filter news by audience. If you enable this option, news will be visible only to the groups they are targeted to.
You can choose the number of news items to load in the webpart.
You can then choose to sort news by author name, by writing "author", or by title, by inserting "title". If you leave the field empty, news will be sorted by publication date.
You can also choose to sort results in ascending or descending order.
Finally, you have the possibility of disabling the favorites functionality.
Summary display settings
These settings are linked to the Summary view mode. We advise you to complete this section once you have decided on the view mode you want to use.
If you're not in edit mode already, click Edit at the top right of the page.
Enter the URL which will be opened by clicking below: this field corresponds to the See all news button at the bottom of the webpart. You can choose which page the user lands on by clicking on this button. This could be another news archive page with all the news of the site, or a system page.
Enter the application title: here you can choose to customize the webpart title. If this field is not completed, the "News archive" title will appear by default.
Do you want to choose the height of the application?: if you want to choose the height of the webpart, select Yes and set up the required pixel size. If you select No, the webpart will adapt to the number of news items you have chosen to display.
Enter the manage property field for the pinned news: you can decide to pin news items that will appear on top of the webpart. You need to enter the name of the column used to assign metadata to the pinned news and choose the number of news you want to highlight.
Please refer to our guide "Create a column for pinned news" to learn how to set up a column to manage your pinned news.
Last but not least, the added value of this displaying mode is that it allows us to view the most popular news items, highlighting those that have been viewed the most.
It's possible to set a time frame for popular news and choose which popular news you want to highlight in the web part.
By selecting Yes, you can define the number of days to include in the time frame.
For example, you may want to highlight the most popular news of the month.
General settings
In this section, you can choose the layout of the news archive and decide whether to show specific information on the news items.
If you're not in edit mode already, click Edit at the top right of the page.
First of all, you can choose the archive display mode: Default, Compact or Summary.
Display mode examples:
You can then choose to open a new window or not when a user clicks on the news.
Finally, you can choose to display the date of the news, the author of the news, the source site and the number of likes and comments.
When you are done, don't forget to publish your edits by clicking on Republish at the top right of the page.
Create a column for pinned news
This step will allow you you to set up a column within the backend of your intranet for configuring pinned news.
To enter your intranet backend, simply click on Site Contents.
Scroll down to Sites Pages and click on Settings.
Under the Columns section, click on Create column.
Name the column “IAIPinnedNews”.
Select the column type: Yes/No (check box).
In the Default value field, select No.
Click on Ok to save your updates.
Once you've created the column, you need to go back to the Site Pages to select the news you want to highlight (pin).
Scroll down and select the Pinned field.
Repeat this step for the other news you wish to highlight.
Go back to the page with the News Archive web part and, in the Summary display settings, insert the manage property field in the required field. The manage property needs to start by ows + the name of the column type Yes/No you created before: IAIPinnedNews.
If the pinned news doesn't show up at the top of the list, please be patient as the changes load.
It may be necessary to force the creation of the manage property, in this case you need to access to the admin center of your intranet (it is not always accessible to everyone). Please contact the contact person if you can't access this area.
When you are done, don't forget to publish your edits by clicking on Republish at the top right of the page.
Last updated