patch to add Google News Sitemap support

Created on 16 September 2011, over 13 years ago
Updated 8 March 2023, almost 2 years ago

I created a patch to allow Views Bonus Pack to export a Google News Sitemap. This provides some flexibility over the Google News sitemap module because this patch uses the Labels from the fields in Views as the attribute names, similar to this ICS file format patch. As a result, this patch provides a way of supporting the optional tags, such as <access>, <genres>, <keywords>, and/or <stock_tickers>.

A few tips for using this method to generate the feed:

  • Set Items to display to 1000
  • For the <publication_date> attribute, use the following Custom format: Y-m-d\TH:i:s+00:00
  • The last (ie, bottom-most) field designated in the view will be used as the <loc> attribute.
  • Add a sort criteria of Node: Post date set to Descending
  • Be sure to add a filter with Node: Published set to Yes
  • Add a filter with Node: Post date set to Is greater than or equal to…An offset… of -2 days

Or import the attached example view as a starting point.

Feature request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇺🇸United States Matt V.

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024