serendipity event google NEWS sitemap

Creating and modifying plugins.
Post Reply
cybernetica
Posts: 4
Joined: Tue May 11, 2010 8:48 pm

serendipity event google NEWS sitemap

Post by cybernetica »

I made a quicky plugin to manage the new format of google news maps.

I used serendipity_event_google_sitemap.zip and modify code very quickly.

I hope it'll be useful for someboy else! :wink:

I haven't clean code and haven't reviewed credits and info files yet ,( sorry, i've no time!

Here it is: serendipity event google NEWS sitemap

bye all :mrgreen:

carlo [italy]
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: serendipity event google NEWS sitemap

Post by garvinhicking »

Hi!

Thanks a lot for contributing! Do I understand properly, that the important change in your new plugin is to use "n:" instead of "news:", and that you limited the amount of entries to 500, instead of showing all entries?

If it's really mostly the namespace change, we could simply modify the original plugin to avoid having duplicate plugins. Do you have a URL on where this URI namespace change is documented, and why that was done - so we can decide whether to completely change the plugin to the new format, or only make it an option?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
cybernetica
Posts: 4
Joined: Tue May 11, 2010 8:48 pm

Re: serendipity event google NEWS sitemap

Post by cybernetica »

here u are:

http://www.google.it/support/news_pub/b ... swer=74288

max num of entry is 500 in my plugin. Google giva a maximum of 1000 entry... for me is best a minor number of entry in the time, who submit 1000 news in a week?

However the other very important thing is to create a new map, different from the usual sitemap.

The new resulting sitemap must be submitted here:
http://www.google.com/support/news_pub/ ... st_content

regards

carlo
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: serendipity event google NEWS sitemap

Post by garvinhicking »

Hi!

ah, I just checked. The plugin does indeed use xmlns:news and so a "news:..." XML schema is valid; a change to "n:" is not really required.
However the other very important thing is to create a new map, different from the usual sitemap.
I can't easily spot the difference in the code, can you tell me what sturcture is different?

About the limit of 1000 news: Many people use the sitemap not only as a news item list, but as a full newslist. So hard-coded limiting the entries inside the plugin would make things worse for such people, and I believe the limit of google news is only potential, and not enforced...

Regards,
GArvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
cybernetica
Posts: 4
Joined: Tue May 11, 2010 8:48 pm

Re: serendipity event google NEWS sitemap

Post by cybernetica »

at http://www.google.it/support/news_pub/b ... swer=74288 google wrote:


# A News Sitemap can contain no more than 1,000 URLs. If you want to include more, you can break these URLs into multiple Sitemaps, and use a Sitemap index file to manage them. Use the XML format provided in the Sitemap protocol. Your Sitemap index file shouldn't list more than 50,000 Sitemaps. These limits help ensure that your web server isn't overloaded by serving large files to Google News.

Once you've created your Sitemap, upload it to the highest-level directory that contains your news articles. Please see this page for further instructions on submitting your Sitemap.


:|

carlo
cybernetica
Posts: 4
Joined: Tue May 11, 2010 8:48 pm

Re: serendipity event google NEWS sitemap

Post by cybernetica »

sorry for english, i mean we need at least two sitemap, one for news and the other for all the submission.

i use both plugin, one for the entire site and the other only for the last news.

at the end i have two zipped xml in my root sites!

:wink:

regards


carlo
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: serendipity event google NEWS sitemap

Post by garvinhicking »

Hi!

Thanks for the limit about 1000 entries. I guess we need to figure out a way to create split sitemaps then in this case...
cybernetica wrote:sorry for english, i mean we need at least two sitemap, one for news and the other for all the submission.
Google Sitemaps and News Sitemaps can be combined into one, this should work!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply