This plugin should work with every saved entry; of course it will not update the sitemap if a draft entry is saved only.
On a sidenote, I've just committed the plugin as event_google_sitemap, thank you Boris! Do you have or want a CVS account to maintain your plugin? Your code looks well thought of, so I'd love if you can maintain your script there. Like for example it is not yet compatible with Serendipity's 0.9 changes in the Permalink generation.
For example:
Code: Select all
$url = serendipity_rewriteURL(PATH_CATEGORIES . '/' . serendipity_makePermalink(PERM_CATEGORIES, array('id' => $category['id'], 'title' => $category['name'])));
needs to be changed to
Code: Select all
$url = serendipity_makePermalink(PERM_CATEGORIES, array('id' => $category['id'], 'title' => $category['name']), 'category');
thanks a lot for your contribution!
Regards,
Garvin