UNH Today: RSS Feed Integration into Websites

Summary

The Publishing Platform allows you to create and manage news articles of interest to the UNH community and display them in UNH Today, which is available online at www.unh.edu/unhtoday. In this session, we will demonstrate how to integrate UNH Today news feeds into websites using both the Panelizer and Paragraphs features.

Related Video(s)

Image link to video

Details

Preparation

In order to complete this tutorial you will need feed URLs.

  1. Open your web browser and navigate to the UNH Today website.
  2. Scroll halfway down the page and click on the SUBSCRIBE TO UNH TODAY RSS button.
  3. Scroll through the Feeds page to find the feed specific to your needs.
  4. Right-click on the RSS Feed link and copy the URL, then past the URL into a text editor.
  5. Scroll back to the top of the page and click on the All Topics menu item.
  6. Scroll through the page to find the topic specific to your needs.
  7. Right-click on the Topic link and copy the URL, then past the URL into a text editor.

Using the Panelizer feature

In this next segment, we will add a news feed to a website home page using the Panelizer utility.

   Please note: The Panelizer Utility is only available in the Drupal 7 top-level UNH.edu build.

  1. Navigate to your site home page and click on the "Customize this page" button located in the lower section of your browser screen.
  2. Scroll to the panel region where you want your news feed to display and add a new Panel Pane.
  3. From the List of choices click on "Feeds," then on "Display Feed."
  4. If you would like to title your news section, click the checkbox next to "Override title," then type in your preferred title. For example, "Community News" or similar.
  5. Copy and paste your RSS Feed link into the "Feed URL" field (use the URL you pasted into your text editor).
  6. Choose the number of feed items to display. We recommend 3 to 5 items depending on how many news items are available at any given time, and whether news items are displayed vertically or horizontally.
  7. Copy and paste your topic page link into the "More Items URL" field (use the URL you pasted into your text editor).
  8. Modify the "More Items Text." For example, "More Community News Items".
  9. Select your desired Alignment from the dropdown list, then click on FINISH.
  10. If necessary, drag and drop the new Panel Pane into your desired panel location.

   Be sure to save your changes!

The RSS Feed will pull news item headers onto your home page, and the topic page link will take your visitors to the UNH Today website where only YOUR news items will be displayed.

Using the Paragraphs feature

In this next segment, we will demonstrate a similar process using the Paragraphs feature.

   Please note: the Paragraphs feature is only available in the Drupal Current build.

  1. Navigate to your site home page and click on the Edit tab
  2. Your UNH Today RSS feed and topic page link are managed in a Paragraph. For this example we will assume a Paragraph has already been created for this purpose.
  3. Scroll down the Edit page to the list of Paragraphs near the bottom, identify the Paragraph you will be working with, and click on the Edit button.

    Please note: If you are adding a new Paragraph for this purpose, choose the paragraph type Feeds: UNH Today Article List.

    Also note: The UNH Today news section is typically stylized with a textured background. To achieve this, first create a One Column Paragraph, then format the background via the Styles tab, then add the UNH Today Article List Paragraph via the Edit Content tab.
     
  4. Beginning on the "Edit Content" tab, fill in the Title field. We recommend using "Recent Stories" as the text for this field.
  5. Next, choose the Display Format. We recommend using UNH IRP - Horizontal to produce a typical horizontal display of stories.
  6. Next, choose the number of items to display. As mentioned previously, we recommend 3 to 5 items depending on how many news items are available at any given time, and whether news items are displayed vertically or horizontally.
  7. In the "FILTER ARTICLES BY TAXONOMY TERMS" section, choose an appropriate Topic and, if applicable, choose an appropriate Tag.

    Please note: If you have questions about which topics or tags to use, you can contact Web and Mobile Development - a link to the work request form is available at the end of this video.
     
  8. Next, in the "More Items URL" section, type in your more items title in the "Title" field - we recommend using "View All News Stories" as the title - then add the URL to your topic page into the URL field, then choose "Open URL in a New Window."
  9. After editing these content settings, click on the "Styles" tab and set the Heading Styles to "Caret - Centered, Dark Orange" as shown.

Upon completion of these steps, scroll down to the bottom of the Edit page and click on the Save button. The end result should be a display where your most recent news items appear as configured, along with a "more" link that opens a new window and takes you to the topic page showing your news items in UNH Today.

 


Want to learn more?

Additional help on this and other related topics is available during a regularly scheduled Drupal/myPages/Website Tools - Walk-in/Zoom-in Session. More information, including a complete schedule, is available at https://at-training.unh.edu/apps/ssr?action=course&id=288.

Details

Article ID: 1946
Created
Tue 8/6/19 11:46 AM
Modified
Fri 2/7/20 2:32 PM