Skip to main content Skip to secondary navigation

News Sharing

Main content start

SDSS Sites have the ability to share news teasers with other sites.

Configure News Importer Examples

Terminology

Throughout this guide, the following terms are used:

  • Source site. The source is the site you wish to consume news from. The source has the full article.
  • Destination site. The destination is the site that runs the import and receives the content. 

Basic Functionality

  • Only Administrators can add the news sharing function at this time.
  • The importer will not publish unpublished content if it re-imports.
  • The news sharing importer runs once a day. If needed we can manually import news to capture new stories.  

Turn on and configure News Importing

News Importing is the ability the get news teasers from other sites in the SDSS digital ecosystem.

  1. On the Destination Site, turn on News Sharing, by going to Configuration > Importers > SDSS News Sharing Settings and check the box that says Enable News Importing.
  2. Next, enter the Source URLs. You may enter one URL per line. The URLs must follow one of these patterns:
    • [source site url]/news-sharing/organization/[organization]
    • [source site url]/news-sharing/research-area/[research-area]
    • [source site url]/news-sharing/news-type/[news-type]

In each case, 

  • The first part of the URL must be the full subdomain for the Source site, starting with https://.
  • The last part of the URL (organization, research area, news type) must be taxonomy term in the Organization, Research Area, or News Type vocabularies on the Source site.
    • Spaces in terms should be separated by dashes. For example, the organization name "Woods Institute" would become "woods-institute"

Examples

  1. https://sustainability.stanford.edu/news-sharing/organization/geophysics
  2. https://sustainability.stanford.edu/news-sharing/research-area/climate-…
  3. https://sustainability.stanford.edu/news-sharing/news-type/biodiversity…;

Notes

  • Feeds only show the most recent 50 articles, sorted by publishing date field in descending order
  • You may consume news from multiple sources.
  • Duplicates will not be imported because the Date and Node ID from the source site is used to track the articles imported.
    • This is only true after the first import. The first time, initial import, will have duplicates we will need to remove.
  • The import will run on cron and can be manually triggered on the cron page or by running cron from the admin menu.