Publish an XML Site Map
In b2evolution v6+, XML Sitemaps are generated automatically and can be accessed by adding
?tempskin=_sitemap to the URL of your collection.
- This feature is only active if enabled here: Sitemaps Panel.
- This feature uses the
_sitemapskin from the skins folder, even if that skin is not installed.
- You can create a custom skin with a different name if you want to customize your sitemap or add some more. In that case, use a param like
_sitemap skin displays public posts with Item Type usages
intro-all, but doesn’t display
intro-main because they have same URL as collection homepage, also it doesn’t display
content-block because they have no permanent URL.
Additionally, the sitemap starts by listing the homepage URL like this:
<url> <loc>http://your-site.com/coll-urlname/</loc> <lastmod>2019-07-11T13:08:04Z</lastmod> <priority>1</priority> <changefreq>daily</changefreq> </url>
loc- collection homepage URL,
lastmod- date of last touched content(any category, any post or any comment) of the collection,
priority- 1 is top priority, max priority for posts is 0.9,
changefreq- frequency of changing.
changefreq depend on post age:
- less 8 days:
- less 30 days:
- less 90 days:
- less 365 days:
- older posts:
OLD Stub files
b2evolution v6+ no longer ships with the sitemap stub files from previous versions. They are no longer needed.
You can download them from this page if you really need them.
Just change the extension from
.php and place the desired file into your b2evolution root folder.
sitemap_a.php if you want a sitemap for a single blog or with
sitemap_blogs.php if you want a sitemap for your whole site (all blogs).
Note that these files are actually simple stub files that display a blog with a specific XML skin. They basically do nothing more than the direct URL above.