[Solar-talk] new sitemap class
Rodrigo Moraes
rodrigo.moraes at gmail.com
Wed Jan 2 17:01:47 CST 2008
On Jan 2, 2008 8:36 PM, Clay Loveless wrote:
> 1. In my discussions with people at various search engines (Microsoft
> Live Search and Ask.com), "Google Sitemap" is now an open protocol
> supported by pretty much everyone. See http://www.sitemaps.org/
Yeah, I've noticed that but haven't thought not to add 'Google' to the
name, maybe because I only submitted it to Google before. :) But
indeed, I should rename it, is that what you mean? I would agree.
> 2. Any particular reason why you chose "setPage()" instead of
> "addPage()"? addPage() seems more intuitive at first glance.
It *was* addPage() when I started it, but... it is also used to
*update* an entry. Since the <loc> value can be considered the entry
"id", when you call this...
$sitemap->setPage('http://www.example.com', '2008-01-02', 'daily', '0.9');
It'll add a new entry *if* 'http://www.example.com' was not added
before, or update the 'http://www.example.com' entry if it is present.
So, it is not just "add", but also 'update', thus the method is
setPage(). Makes sense? Perhaps we could find a better name?
> 3. A configurable list of known search engines that support sitemap
> pings, and a ping() method would be icing on the cake. :)
Hmmm, good idea! :) If configured it could ping automatically, or you
could ping() when all your sitemap files are saved. I have just made a
sitemapindex linking to a hundred sitemap files, and I'd only ping
after all of them were saved, so in this case I'd call ping() in the
end, and not configure it to ping automatically.
thanks for your comments. :)
-- rodrigo
More information about the Solar-talk
mailing list