Forum Discussion

john_west3's avatar
john_west3
Copper Contributor
Jul 31, 2024

Creating a new SharePoint news post type

I have a existing SharePoint site which has two types of News posts that you can post (under post type - a “news post” and “announcement”). I would like to create a new/another post type called “community news” for example.
So on the home page, I have three sections of news items, one for “news”, one for “announcements” and a third for “community news”.
Does anyone know how I can create this please?

  • Thank you for the reply, but I was able to do it, via the term store in SharePoint admin centre - to created the new post type term there.

     

    Then I just duplicated the existing announcement web part and then changed the filtering to display community posts instead of announcements

  • NikolinoDE's avatar
    NikolinoDE
    Gold Contributor

    john_west3 

    Creating a new SharePoint news post type such as "Community News" involves using metadata to categorize your news posts and then creating views and sections on your home page to display them accordingly. Here’s a step-by-step guide on how to achieve this:

    Step 1: Add a New Column for News Type

    1. Navigate to the Site Pages Library:
      • Go to your SharePoint site.
      • Click on the gear icon (settings) in the top right corner and select Site contents.
      • Open the Site Pages library.
    2. Add a New Column:
      • Click on Add column and choose Choice.
      • Name the column (e.g., News Type).
      • Add the choices you want, such as News, Announcement, and Community News.
      • Click Save.

    Step 2: Assign News Types to Existing News Posts

    1. Open the Site Pages Library:
      • In the Site Pages library, select the news posts you want to categorize.
    2. Edit Properties:
      • For each news post, click on the three dots (ellipsis) next to the file name and select Details.
      • In the details pane, set the News Type to the appropriate value (News, Announcement, Community News).

    Step 3: Create Views for Each News Type

    1. Create Views:
      • In the Site Pages library, click on the All Documents view in the top right and select Create new view.
      • Choose the List view type.
      • Name the view (e.g., Community News).
      • Under Filter, choose to show items only when the column News Type is equal to Community News.
      • Save the view.
      • Repeat the process for News and Announcement.

    Step 4: Add News Web Parts to the Home Page

    1. Edit the Home Page:
      • Go to the home page of your SharePoint site.
      • Click Edit in the top right corner.
    2. Add a News Web Part:
      • Click on the + icon to add a new web part.
      • Select the News web part.
    3. Configure the News Web Part:
      • Click on the pencil icon (edit web part) to configure it.
      • Under Source, select This site.
      • Under Filter and sort, choose to filter by the News Type column and set it to Community News.
      • Repeat the process for News and Announcement, configuring each web part to display the appropriate news type.

    Step 5: Arrange the Web Parts on the Home Page

    1. Position the Web Parts:
      • Arrange the News, Announcement, and Community News web parts in the desired sections on your home page.
      • Adjust the layout and appearance settings as needed to fit your design preferences.
    2. Save and Publish:
      • Once you have configured and positioned the web parts, click Republish to save and publish your changes.

    Step-by-Step Visual Guide

    Adding a New Column

    1. Go to the Site Pages library.
    2. Click Add column > Choice.
    3. Enter News Type as the column name.
    4. Add choices: News, Announcement, Community News.
    5. Click Save.

    Assigning News Types

    1. In Site Pages, select a news post.
    2. Click the three dots (ellipsis) > Details.
    3. Set News Type to the appropriate value.

    Creating Views

    1. In Site Pages, click All Documents > Create new view.
    2. Choose List view.
    3. Name it (e.g., Community News).
    4. Set a filter: News Type equals Community News.
    5. Save the view.
    6. Repeat for News and Announcement.

    Adding News Web Parts

    1. Edit the home page.
    2. Click + > News web part.
    3. Click the pencil icon to configure.
    4. Set Source to This site.
    5. Set Filter and sort to filter by News Type: Community News.
    6. Repeat for News and Announcement.

    Arranging Web Parts

    1. Position the web parts as desired.
    2. Adjust layout and appearance.
    3. Click Republish to save.

    By following these steps, you can create a new post type called "Community News" and display different types of news items on your SharePoint Online home page in separate sections. This method uses modern SharePoint capabilities to effectively categorize and present content.

    Maybe it will help you further in your project, if not please just ignore it.

     

    My answers are voluntary and without guarantee!

     

    Hope this will help you.

    Was the answer useful? Mark as best response and Like it!

    This will help all forum participants.

    • john_west3's avatar
      john_west3
      Copper Contributor

      Thank you for the reply, but I was able to do it, via the term store in SharePoint admin centre - to created the new post type term there.

       

      Then I just duplicated the existing announcement web part and then changed the filtering to display community posts instead of announcements

Resources