b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Manuals Home
  • Latest Updates
 
  1. b2evolution CMS User Manual
  2. Advanced Topics
  3. How to...
  4. Publish an XML Site Map

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.

Example: https://your-site.com/your-collection-name/?tempskin=_sitemap .

Notes:

  • This feature is only active if enabled here: Sitemaps Panel.
  • This feature uses the _sitemap skin 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 ?tempskin=_my-sitemap

The _sitemap skin displays public posts with Item Type usages post, page, intro-cat, intro-tag, intro-sub, intro-all, but doesn’t display intro-front and intro-main because they have same URL as collection homepage, also it doesn’t display special and 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.

For posts priority and changefreq depend on post age:

  • less 8 days: priority - 0.9, changefreq - hourly,
  • less 30 days: priority - 0.8, changefreq - daily,
  • less 90 days: priority - 0.7, changefreq - daily,
  • less 365 days: priority - 0.6, changefreq - weekly,
  • older posts: priority - 0.5, changefreq - monthly.

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 .txt to .php and place the desired file into your b2evolution root folder.

Start with 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.

Attachments:

  • sitemap_a.txt (743 B.)
  • sitemap_blogs.txt (894 B.)
Created by fplanque • Last edit by fplanque on 2024-07-04 22:19 • •

No feedback yet

On this page

  • OLD Stub files

Search the Manual

Content Hierarchy

  • b2evolution CMS User Manual
  • User's Guide
  • Installation / Upgrade
  • Front-office Reference
  • Back-office Reference
  • Developer Reference
  • Operations Reference
  • Advanced Topics
    • Using Desktop Blogging Tools
    • Using Blogging Apps
    • Blogging by email
    • Using the APIs
    • Contributing
    • Translations (i18n/l10n)
    • Monetizing
    • How to...
      • How to create your own flag / locale
      • How to post by MMS
      • Make a Backup
      • How to use UTF-8
      • Use RSS
      • How to set up Google Analytics
      • How to compare backups
      • Publish an XML Site Map
      • Show images in my RSS when option "Post excerpts" is selected
      • Include an image rollover in a post
      • FTP 101: How to upload and manage files on your web server
    • Podcasting
  • Glossary
  • Archives
Community CMS

This online manual is powered by b2evolution CMS – A complete engine for your website.

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque