Feeds

GW Drupal sites can display feeds of content from multiple sources. Sometimes you may want to display a feed of your own content, such as displaying your latest Article headlines on your homepage. Other times you may want to display a feed from an external source, such as a blog or the GW Bulletin. These are examples of the most common types of feeds; if you need something custom, don't hesitate to contact us for assistance.

Feeds of Your Site's Content

Article and Event feeds can be set up in two different ways:

  • Default: Displays all content with the most recent items first, with the option to limit by subtype. This is the most commonly used option and easiest to maintain. 
     
  • Site Placement: Displays all past content tagged with a specific Site Placement taxonomy tag. This option is useful if you want to limit which articles/events appear in your feed, beyond just filtering by subtype. For example, maybe you want to display a feed of Research News on one page and Alumni News on another page. 

These feeds are typically added to a General Content page or placed in a Mini Panel or Sidebar.

 

Department Newsletter feed from the Department of History

Source: Department of History

Creating Internal Feeds

Follow these steps once you've set up your base page or Mini Panel.

 

  1. Click on "GW Display Views - Site Placement".
  2. Select "Article News Home Page".
    • Although this is labeled "Home Page" it will work on any page on your site. 
    • Although this is labeled "News" it will work with any Article subtype. 
  3. If desired, check the box to override the title.
  4. Select the desired News Type (a.k.a. subtype) to display in the feed.
  5. Select the desired Display Option and check the boxes to show the Image and Date if desired. We recommend one of the following display options:
    • Headlines Spotlight: This is the most common, with the image on the left and title and teaser on the right. 
    • Headlines List Sidebar: This is best for sidebars where you only wish to display headlines.
  6. The Image Size should be left as-is.
  7. If desired, check the box to add a "Show More" link. This is typically used to link to a news archive.
  8. Click "Finish" and drag your feed to the desired location on your page.  
  9. Click "Save" and refresh the page. 

Screenshot of event feed on Classic themeNOTE: This option only works in the Classic theme. For Editorial sites, use the "Event - Site Placement" option or a Taxonomy List

  1. Click on "GW Display Views - Site Placement".
  2. Select "GW Events Home Page".
    • Although this is labeled "Home Page" it will work on any page on your site. 
  3. If desired, check the box to override the title.
  4. Select the desired Event Type(s) to display in the feed.
  5. Select the desired Display Option and check the boxes to show the Image and Date if desired. We recommend one of the following display options:
    • Events List Sidebar: This is the most common, with a date block on the left and title and time on the right. 
    • Headlines Spotlight: This is a good alternative if you don't like the date block.
  6. The Image Size should be left as-is.
  7. If desired, check the box to add a "Show More" link. This is typically used to link to a longer list of events or an events archive.
  8. Click "Finish" and drag your feed to the desired location on your page.  
  9. Click "Save" and refresh the page. 

 

These feeds are generated based on the Site Placement taxonomy tag associated with your base page and your Article or Event pages. Before setting up this archive, double check the following:

  • You have a Site Placement taxonomy tag dedicated to this section.
  • All content you wish to appear has been tagged with the correct Site Placement tag.
  • Your base General Content page has been tagged with the correct Site Placement tag. 

Create a Site Placement Article Feed

  1. Click on "GW Display Views - Site Placement".
  2. Select "Article News Site Placement".
    • Although this is labeled "News" it will work with any Article subtype. 
  3. If desired, check the box to override the title.
  4. Select the desired News Type (a.k.a. subtype) to display in the feed.
  5. Select the desired Display Option and check the boxes to show the Image and Date if desired. We recommend one of the following display options:
    • Headlines Spotlight: This is the most common, with the image on the left and title and teaser on the right. 
    • Headlines List Sidebar: This is best for sidebars where you only wish to display headlines.
  6. The Image Size should be left as-is.
  7. If desired, check the box to add a "Show More" link. This is typically used to link to a news archive.
  8. Click "Finish" and drag your feed to the desired location on your page.  
  9. Click "Save" and refresh the page. 

These feeds are generated based on the Site Placement taxonomy tag associated with your base page and your Article or Event pages. Before setting up this archive, double check the following:

  • You have a Site Placement taxonomy tag dedicated to this section.
  • All content you wish to appear has been tagged with the correct Site Placement tag.
  • Your base General Content page has been tagged with the correct Site Placement tag.

Create a Site Placement Event Feed

  1. Click on "GW Display Views - Site Placement".
  2. Select "Events List - Site Placement".
  3. If desired, check the box to override the title.
  4. Select the desired Event Type(s) to display in the feed.
  5. Select the desired Display Option and check the boxes to show the Image and Date if desired. We recommend one of the following display options:
    • Events List Sidebar: This is the most common, with a date block on the left and title and time on the right. 
    • Headlines Spotlight: This is a good alternative if you don't like the date block.
  6. The Image Size should be left as-is.
  7. If desired, check the box to add a "Show More" link. This is typically used to link to a longer list of events or an events archive.
  8. Click "Finish" and drag your feed to the desired location on your page.  
  9. Click "Save" and refresh the page.

Feeds from External Sources

One of the best ways to provide accurate academic course, program and degree information on GW Drupal websites is to integrate University Bulletin content. This GW Drupal feature allows website content managers to display content from the University Bulletin directly on their website.

The benefits of using this feature include:

  • Eliminating content duplication across various websites
  • Eliminating conflicting information across various websites
  • Content management is handled in one place – the University Bulletin – and automatically updated on the GW Drupal website

Important notes:

  • The information in the University Bulletin is considered the contract between GW and matriculating students for the applicable years.
  • Once content is in the University Bulletin, it may not be changed on an ad hoc basis. It is subject to the editorial processes and policies set forth by the Office of Academic Planning & Assessment.
  • Content pulled from the University Bulletin is displayed “as is”. You cannot edit the content in GW Drupal for a custom experience on the website.

Questions about content management within the University Bulletin should be directed to [email protected].

Embedding a feed from the University Bulletin

On the University Bulletin

  1. Navigate to the University Bulletin page with the content you'd like to feed into your GW Drupal website
  2. Click on the specific tab you’d like to display on your GW Drupal website
    • Note: You can only pull in one tab’s content at a time.
  3. Copy the URL from the web address bar in your browser
    • Note the ending syntax of the link includes “#TABTITLE”, where “TABTITLE” corresponds to the active tab.
      • This syntax is what GW Drupal relies on to know which tab’s content to display on the website. If your link does not include this syntax, the feature will not work.
University Bulletin Pages Without Tabs

Some content in the University Bulletin, such as minor degree requirements and some certificate programs, do not display their content in tabs. In these cases, “#requirementstext” must be manually added to the end of the URL for the content to display.

For example: http://bulletin.gwu.edu/arts‐sciences/africana‐studies/minor/ must manually have “#requirementstext” appended to it to become http://bulletin.gwu.edu/arts‐sciences/africana‐studies/minor/#requirementstext

In GW Drupal

  1. Navigate to the page on which you’d like to feature the University Bulletin content
  2. Click the Customize this Page button
  3. Add a new content pane to the middle column
  4. Click Bulletin in the pane menu options
  5. Click GW Bulletin Panel in the resulting options
  6. Override Title if desired. By default there is no title.
  7. In the URL field, paste in the URL of the Bulletin tab you want to display in Drupal
  8. Click the Finish button
    • Drag and drop the University Bulletin content pane to a new position on the page if desired
  9. Click the Save button to save the new page layout. Refresh the page to see your changes.

Screenshot of Bulletin embed on Editorial site 

Screenshot of Bulletin program requirements placed on a page below regular body content. Source: Department of Biological Sciences

Screenshot of GW Today headlines on Classic theme siteRSS is an industry-standard format used to share content between digital platforms. It is often used to share content between GW Drupal sites and to display headlines from an external source such as a blog. 

GW Drupal can display headlines from an external RSS feed. Other feed content, such as images or teaser text, is not currently supported. Configuring an RSS feed requires Site Administrator permissions. 

Before setting up an RSS feed in Drupal, test your feed URL in Chrome or Firefox to make sure it is populated with XML data. 

Connect your site to the feed

  1. Navigate to Configuration > Web Services > Feed Aggregator > List. 
  2. If no Categories are defined, or you want to create a new Category for your feed, click "Add Category" and follow the prompts.
  3. Click "Add Feed". 
  4. Set the Title of the feed to something descriptive. This will only be visible to Site Administrators.
  5. Enter the URL of the feed.
  6. Set the desired Update Interval based on how frequently you expect the feed to be updated.
  7. Leave the "News Items in Block" field as-is.
  8. Select one or more Categories for the feed.  
  9. Save the feed and click the "List" tab to return to the list of feeds.
  10. By default you'll see "0 items" in your feed. Click "update items" to refresh the feed. If you still see "0 items" listed, contact us for further troubleshooting. 

Adding a feed to a page

Headline feeds are typically displayed in a Mini Panel or Sidebar. When you're configuring the Content section of your Mini Panel or your Sidebar via Customize This Page, follow these steps to add your feed:

  1. Click on "GW Display Views - Site Placement".
  2. Select the display option available on your theme:
    • Editorial theme: RSS Feed Aggregator - Editorial Style
    • Classic theme: GW RSS Feed Aggregator
  3. If desired, check the box to add a Title.
  4. Select the number of items you wish to appear in the feed.
  5. Select the category that corresponds to the feed you wish to display.
  6. You can ignore the other options; they do not apply to RSS feeds.

Deleting feed items

You may encounter a situation where a piece of content was deleted from the original feed source but is still appearing on your site. If this happens, click "remove items" to fully clear out the feed data in Drupal, and "update items" to refresh the list.