PHPackages                             rainlab/sitemap-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. rainlab/sitemap-plugin

ActiveOctober-plugin

rainlab/sitemap-plugin
======================

Sitemap plugin for October CMS

v1.2.8(1y ago)2277.8k↓28.5%26[1 issues](https://github.com/rainlab/sitemap-plugin/issues)1MITPHPPHP &gt;=5.5.9

Since May 18Pushed 1y ago8 watchersCompare

[ Source](https://github.com/rainlab/sitemap-plugin)[ Packagist](https://packagist.org/packages/rainlab/sitemap-plugin)[ Docs](https://octobercms.com/plugin/rainlab-sitemap)[ RSS](/packages/rainlab-sitemap-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (14)Used By (1)

RainLab Sitemap is no longer under active development
=====================================================

[](#rainlab-sitemap-is-no-longer-under-active-development)

Please note that the RainLab Sitemap plugin is no longer under active development. It has been superseded by a new form widget called [Page Finder](https://docs.octobercms.com/3.x/element/form/widget-pagefinder.html), which offers flexible support for defining sitemaps, including multisite support.

- [Take me to the Upgrade Guide](./UPGRADE.md)

Sitemap generator plugin
========================

[](#sitemap-generator-plugin)

This plugin will a generate `sitemap.xml` file in October CMS based on desired CMS pages and others.

Viewing the sitemap
-------------------

[](#viewing-the-sitemap)

Once this plugin is installed and the sitemap has been configured. The sitemap can be viewed by accessing the file relative to the website base path. For example, if the website is hosted at  it can be viewed by opening this URL:

```
https://octobercms.com/sitemap.xml

```

Managing a sitemap definition
-----------------------------

[](#managing-a-sitemap-definition)

The sitemap is managed by selecting Sitemap from the Settings area of the back-end. There is a single sitemap definition for each theme and it will be created automatically.

A sitemap definition can contain multiple items and each item has a number of properties. There are common properties for all item types, and some properties depend on the item type. The common item properties are **Priority** and **Change frequency**. The Priority defines the priority of this item relative to other items in the sitemap. The Change frequency defines how frequently the page is likely to change.

#### Standard item types

[](#standard-item-types)

The available item types depend on the installed plugins, but there are three basic item types that are supported out of the box.

###### URL {.subheader}

[](#url-subheader)

Items of this type are links to a specific fixed URL. That could be an URL of an or internal page. Items of this type don't have any other properties - just the title and URL.

###### Static page {.subheader}

[](#static-page-subheader)

Items of this type refer to static pages. The static page should be selected in the **Reference** drop-down list described below.

###### All static pages {.subheader}

[](#all-static-pages-subheader)

Items of this type expand to create links to all static pages defined in the theme.

#### Custom item types

[](#custom-item-types)

Other plugins can supply new item types. For example, the [Blog plugin](https://octobercms.com/plugin/rainlab-blog) by [RainLab](https://octobercms.com/author/RainLab) supplies two more types:

###### Blog category {.subheader}

[](#blog-category-subheader)

An item of this type represents a link to a specific blog category. The category should be selected in the **Reference** drop-down. This type also requires selecting a **CMS page** that outputs a blog category.

###### All blog categories {.subheader}

[](#all-blog-categories-subheader)

An item of this time expands into multiple items representing all blog existing categories. This type also requires selecting a **CMS page**.

#### Definition item properties

[](#definition-item-properties)

Depending on the selected item time you might need to provide other properties of the item. The available properties are described below.

###### Reference {.subheader}

[](#reference-subheader)

A drop-down list of objects the item should refer to. The list content depends on the item type. For the **Static page** item type the list displays all static pages defined in the system. For the **Blog category** item type the list displays a list of blog categories.

###### Allow nested items {.subheader}

[](#allow-nested-items-subheader)

This checkbox is available only for item types that suppose nested objects. For example, static pages are hierarchical, and this property is available for the **Static page** item type. On the other hand, blog categories are not hierarchical, and the checkbox is hidden.

###### CMS Page {.subheader}

[](#cms-page-subheader)

This drop-down is available for item types that require a special CMS page to refer to. For example, the **Blog category** item type requires a CMS page that hosts the `blogPosts` component. The CMS Page drop-down for this item type will only display pages that include this component.

---

The Sitemap plugin works *out of the box* and does not require any direct development to operate.

##### Registering new sitemap definition item types

[](#registering-new-sitemap-definition-item-types)

The Sitemap plugin shares the same events for registering item types as the [Pages plugin](https://octobercms.com/plugin/rainlab-pages). See the documentation provided by this plugin for more information.

A small addition is required when resolving items, via the following event:

- `pages.menuitem.resolveItem` event handler "resolves" a menu item information and returns the actual item URL, title, an indicator whether the item is currently active, and subitems, if any.

##### Resolving items

[](#resolving-items)

When resolving an item, each item should return an extra key in the array called `mtime`. This should be a Date object (see `Carbon\Carbon`) or a timestamp value compatible with PHP's `date()` function and represent the last time the link was modified.

Expected result format:

```
Array (
    [url] => https://example.com/blog/category/another-category
    [mtime] => Carbon::now(),
    [items] => Array (
        [0] => Array (
            [url] => https://example.com/blog/category/another-category
            [mtime] => Carbon::now(),
        )

        [1] => Array (
            [url] => https://example.com/blog/category/news
            [mtime] => Carbon::now(),
        )
    )
)

```

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community30

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~180 days

Total

12

Last Release

578d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/106532?v=4)[october](/maintainers/october)[@october](https://github.com/october)

---

Top Contributors

[![daftspunk](https://avatars.githubusercontent.com/u/1392869?v=4)](https://github.com/daftspunk "daftspunk (57 commits)")[![gergo85](https://avatars.githubusercontent.com/u/2959112?v=4)](https://github.com/gergo85 "gergo85 (21 commits)")[![samgeorges](https://avatars.githubusercontent.com/u/4927493?v=4)](https://github.com/samgeorges "samgeorges (10 commits)")[![octoberapp](https://avatars.githubusercontent.com/u/6543374?v=4)](https://github.com/octoberapp "octoberapp (9 commits)")[![zek](https://avatars.githubusercontent.com/u/3463291?v=4)](https://github.com/zek "zek (8 commits)")[![Samuell1](https://avatars.githubusercontent.com/u/3110002?v=4)](https://github.com/Samuell1 "Samuell1 (3 commits)")[![mohsin](https://avatars.githubusercontent.com/u/1699753?v=4)](https://github.com/mohsin "mohsin (2 commits)")[![vojtasvoboda](https://avatars.githubusercontent.com/u/374917?v=4)](https://github.com/vojtasvoboda "vojtasvoboda (2 commits)")[![anik1ng](https://avatars.githubusercontent.com/u/505388?v=4)](https://github.com/anik1ng "anik1ng (2 commits)")[![acasar](https://avatars.githubusercontent.com/u/6329543?v=4)](https://github.com/acasar "acasar (2 commits)")[![mjauvin](https://avatars.githubusercontent.com/u/2013630?v=4)](https://github.com/mjauvin "mjauvin (1 commits)")[![Mr118](https://avatars.githubusercontent.com/u/9792509?v=4)](https://github.com/Mr118 "Mr118 (1 commits)")[![raank](https://avatars.githubusercontent.com/u/5004866?v=4)](https://github.com/raank "raank (1 commits)")[![ribsousa](https://avatars.githubusercontent.com/u/2750974?v=4)](https://github.com/ribsousa "ribsousa (1 commits)")[![TheServat](https://avatars.githubusercontent.com/u/12908537?v=4)](https://github.com/TheServat "TheServat (1 commits)")[![ZhiweiWu0425](https://avatars.githubusercontent.com/u/89636889?v=4)](https://github.com/ZhiweiWu0425 "ZhiweiWu0425 (1 commits)")[![BlazOrazem](https://avatars.githubusercontent.com/u/5699173?v=4)](https://github.com/BlazOrazem "BlazOrazem (1 commits)")[![diraulo](https://avatars.githubusercontent.com/u/4028374?v=4)](https://github.com/diraulo "diraulo (1 commits)")[![emzet](https://avatars.githubusercontent.com/u/5151119?v=4)](https://github.com/emzet "emzet (1 commits)")[![jh2odo](https://avatars.githubusercontent.com/u/7497387?v=4)](https://github.com/jh2odo "jh2odo (1 commits)")

---

Tags

Sitemapoctoberoctobercms

### Embed Badge

![Health badge](/badges/rainlab-sitemap-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/rainlab-sitemap-plugin/health.svg)](https://phpackages.com/packages/rainlab-sitemap-plugin)
```

###  Alternatives

[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[rainlab/builder-plugin

Builder plugin for October CMS

17147.2k1](/packages/rainlab-builder-plugin)[rainlab/translate-plugin

Translate plugin for October CMS

12666.5k9](/packages/rainlab-translate-plugin)[rainlab/pages-plugin

Pages plugin for October CMS

12252.4k4](/packages/rainlab-pages-plugin)[rainlab/user-plugin

User plugin for October CMS

11954.3k13](/packages/rainlab-user-plugin)[janvince/smallcontactform

Simple but flexible multi language contact form builder with custom fields, validation and passive antispam

307.4k](/packages/janvince-smallcontactform)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
