Just made a job to generate Google News Sitemap
Permalink 2 users found helpful
Ok~.
If you are looking for concrete5 to be news site, and want to syndicate to Google News, there are some specification you need to meet.
You need to have unique URL with at least three digit of numeric unique number embedded in URL UNLESS you create google news sitemap.
http://www.google.com/support/news_pub/bin/answer.py?answer=74288...
So I modified the "generate_sitemap.xml" to support Google News Sitemap format 0.9.
The attached zip file is "generate_sitemap_news.php".
- modified XML format for Google News
- add "exclude_sitemap_newsxml" page attribute. And you want to select the pages that are NOT articles.
- For some reasons, sitemap.xml still returns the deleted page, so I've added the condition if CollectionName is empty, it will skip
- Exclude the home (cID=1) from the sitemap
concrete5 is now one step closer to become a powerful news site.
- Unzip the attached file
- It'll create "sitemap_news.xml" on server root. Make sure that the file is writable
- Create "exclude_sitemap_newsxml" page attribute and check the pages you don't want to be indexed
- Go to System & Maintenance in dashboard and install the job
- Run the job
- Now the sitemap_news.xml is created
Feedback is welcome.
----------
Other References
----------
Google News for Publlishers
http://www.google.com/support/news_pub/?hl=en...
Technical Requirements
http://www.google.com/support/news_pub/bin/topic.py?topic=11665...
News Sitemaps
http://www.google.com/support/news_pub/bin/topic.py?topic=11666...
If you are looking for concrete5 to be news site, and want to syndicate to Google News, there are some specification you need to meet.
You need to have unique URL with at least three digit of numeric unique number embedded in URL UNLESS you create google news sitemap.
http://www.google.com/support/news_pub/bin/answer.py?answer=74288...
So I modified the "generate_sitemap.xml" to support Google News Sitemap format 0.9.
The attached zip file is "generate_sitemap_news.php".
- modified XML format for Google News
- add "exclude_sitemap_newsxml" page attribute. And you want to select the pages that are NOT articles.
- For some reasons, sitemap.xml still returns the deleted page, so I've added the condition if CollectionName is empty, it will skip
- Exclude the home (cID=1) from the sitemap
concrete5 is now one step closer to become a powerful news site.
- Unzip the attached file
- It'll create "sitemap_news.xml" on server root. Make sure that the file is writable
- Create "exclude_sitemap_newsxml" page attribute and check the pages you don't want to be indexed
- Go to System & Maintenance in dashboard and install the job
- Run the job
- Now the sitemap_news.xml is created
Feedback is welcome.
----------
Other References
----------
Google News for Publlishers
http://www.google.com/support/news_pub/?hl=en...
Technical Requirements
http://www.google.com/support/news_pub/bin/topic.py?topic=11665...
News Sitemaps
http://www.google.com/support/news_pub/bin/topic.py?topic=11666...
Opps, I found an error of this Google News Sitemap.
I didn't use htmlspecialchars() for page title.
I already replaced the zip file in the main thread.
I changed on line 105, and added the htmlspecialchars().
I didn't use htmlspecialchars() for page title.
I already replaced the zip file in the main thread.
I changed on line 105, and added the htmlspecialchars().
make it into a package :)
Google News hasn't registered my site yet :(
So I haven't really checked if this is really working....
If they do, I'll make it into the package.
So I haven't really checked if this is really working....
If they do, I'll make it into the package.
That's a quite interesting addon! :)