collective.googlenews

by Jean-Michel FRANCOIS last modified May 11, 2012 04:31 PM

Make easy to add your Plone site to Google News.

Project Description

collective.googlenews

Introduction

Google News service has some technical requirements. This add-on solve the only issues Plone have regarding these constraints. Let's Plone be Google News ready.

Technical requirements can be found at http://www.google.com/support/news_pub/bin/topic.py?hl=en&topic=11665

Article URLs

URL need to display a three-digit number. This add-on override the url normalizer to add a unique id.

SiteMap

This add-on add a @@googlenews-sitemap.xml view for topic content type. This view add some checks before loading items:

  • no more than 1000 items returned
  • items must have been published in the last two days
  • items are ordered on the effective date (reversed)

So you don't need to add criteria for these, but types should be set to News Item to be sure you are publishing news.

How to publish my website into Google News ?

You need to have a topic instance in your website. By default in Plone /news/aggregator is the one. In the process you can provide the sitemap to help google to get the last news by providing the url example.com/news/aggregator/@@googlenews-sitemap.xml

Installation

To enable this product in a buildout-based installation:

  1. Edit your buildout.cfg and add collective.googlenews to the list of eggs to install

    [buildout]
    ...
    eggs =
        collective.googlenews
    

After updating the configuration you need to run ''bin/buildout'', which will take care of updating your system.

Go to the 'Site Setup' page in a Plone site and click on the 'Add-ons' link.

Check the box next to collective.googlenews and click the 'Activate' button.

Note: You may have to empty your browser cache and save your resource registries in order to see the effects of the product installation.

Contributors

  • Jean-Michel FRANCOIS
  • Héctor Velarde
  • Gonzalo Almeida

Changelog

1.0rc1 (2012-05-11)

  • Tested Plone 4.2 compatibility. [hvelarde]
  • Added support for Dexterity content types (fixes #2). [flecox]
  • Added Spanish and Brazilian Portuguese translations. [hvelarde]
  • Added some real tests to fix some stuff. [hvelarde]
  • Updated package distribution files. [hvelarde]

1.0b2 (2011-04-11)

  • Check random digit doesn't starts with 199 or 200.

1.0b1 (2011-04-08)

  • Initial release.

Self-Certification

[X] Internationalized

[X] Unit tests

[X] End-user documentation

[ ] Internal documentation (documentation, interfaces, etc.)

[X] Existed and maintained for at least 6 months

[X] Installs and uninstalls cleanly

[X] Code structure follows best practice

Current Release

No stable release available yet.

All Releases

Version Released Description Compatibility Licenses Status
1.0rc1 May 11, 2012 Support for Dexterity-based content types and Plone 4.2 compatibility. More about this release…
Plone 4.1
GPL release-candidate
1.0b2 Check random digit doesn't starts with 199 or 200 More about this release…
Plone 4
GPL beta
1.0b1 initial release More about this release…
Plone 4
GPL pre-release

Comments (2)

hvelarde Apr 13, 2011 06:05 PM
I've read what Google News site says, "The URL for each article must contain a unique number consisting of at least three digits", an I can tell you that's not true. I used to work in a newspaper and our news were indexed by Google News without following this weird rule.
hvelarde Mar 08, 2012 08:09 PM
ok, let's face it... we will need to use it :-p