BoldMinded Docs
  • Overview
  • Advanced Categories
    • Docs
      • Installation
      • Requirements
      • Setup & Configuration
        • Hidden Config Options
        • Multi-Site Manager
      • Template Tags
      • FAQs
  • Ansel
    • Docs
      • Installation
      • Upgrading
      • Requirements
      • Settings
      • Usage
        • Channel:Form
      • Troubleshooting
      • Template Tags
    • FAQs
  • Bloqs
    • Docs
      • Why Bloqs?
      • Features
        • Add Bloq Menu
        • Nesting
        • Cloning
        • Drafts
        • Bloq Usage
        • Deprecated Bloqs
        • Caching
        • Profiling
        • Bloq Components
        • Bloq Groups
      • Installation
      • Requirements & Compatibility
      • Setup & Configuration
        • Hidden Config Options
      • Creating Bloqs
      • Template Tags
        • Twig
        • Examples
      • Context Variables
      • Add-on Developers
    • FAQs
  • Carson
    • Docs
      • Installation
      • Requirements
      • Fields
        • Omni
          • Hidden Config
        • Assistant
        • SEO
      • Troubleshooting
  • Custom System Messages
    • Docs
      • Installation
      • Requirements
      • Variables
      • Template Tags
  • DataGrab
    • Docs
      • Installation & Upgrading
      • Requirements
      • Troubleshooting
      • Configuring Imports
      • Running Imports
      • Automatic Imports
        • Importing with cron
        • Importing with cron (Deprecated)
      • Endpoints
      • Configuration Options
        • Config File Options
        • Increasing PHP memory limit
      • Import Types
        • CSV
          • Importing into Grid or Matrix field
        • JSON
          • Example file
        • WordPress
        • XML
          • Example file
        • Creating your own import type
      • Assigning Authors
      • Field Types
        • Assets
        • Ansel
        • Bloqs
        • Calendar
        • Channel Images
        • Date
        • File
        • File Grid
        • Fluid
        • Grid
        • Low Events
        • Relationships
        • Simple Grids & Tables
        • Tag & Tagger
        • Matrix (Deprecated)
        • Creating your own fieldtype
      • Publisher
      • Version 5.0
      • Version 6.0
    • FAQs
  • Feature Flags
    • Docs
      • Installation & Upgrading
      • Requirements
      • Configuration
      • Template Tags
      • A/B Testing
    • FAQs
  • Fluidity
    • Docs
      • Installation & Upgrading
      • Requirements
      • Configuration
      • Demos
    • FAQs
  • Logit
    • Docs
      • Installation
      • Requirements
      • Configuration
    • FAQs
  • Publisher
    • Docs
      • Installation
      • Requirements
      • Issues & Tips
      • Languages
      • Template Tags
        • Forms
        • Email Notification Templates
        • Channel:Form
        • Twig
      • URL Translations
      • Auto Translations
      • Diffs
      • Drafts
      • Categories
      • Phrases
      • Persistence
      • Performance
      • Add-ons
        • First Party
        • Third Party
      • Hidden Config
      • Extending Publisher
    • FAQs
  • Reading Time PRo
    • Docs
      • Installation
      • Requirements
      • Configuration
      • Template Tags
  • Reel
    • Docs
      • Installation
      • Requirements
      • Settings
      • Field Tags
    • FAQs
  • Simple Grids & Tables
    • Docs
      • Installation
      • Requirements
      • Template Tags
      • CSV File Imports
      • Field Settings
      • GraphQL
      • Advanced Configuration (deprecated)
    • FAQs
  • Sitemap
    • Docs
      • Installation
      • Requirements
      • Configuration & Usage
    • FAQs
  • Snaptcha
    • Docs
      • Installation
      • Requirements
      • Configuration
      • Template Tags
      • Developers
    • FAQs
  • Speedy
    • Docs
      • Installation & Updating
      • Requirements
      • Configuration
      • Template Tags
      • Static Caching
        • Real World Example
      • Frontedit Support
      • Control Panel
      • Migrating from CE Cache
      • Diagnostics
      • CLI Commands
      • Reverse Proxy Purging
    • FAQs
  • Trek (unreleased)
    • Docs
      • Configuration
    • FAQs
  • Queue
    • Docs
Powered by GitBook
On this page
  • Template Tags
  • Notifying Search Engines
  • Troubleshooting

Was this helpful?

  1. Sitemap
  2. Docs

Configuration & Usage

Last updated 3 months ago

Was this helpful?

First, create a new template that will contain the sitemap tag:.

The template can be anywhere, but usually a new sitemap.group is created, and the {exp:sitemap:get}tag is placed in the indexfile. Note that the type is set to XML, not HTML. Regardless of where you locate the template you may need to define a route override. In the example above, visiting yoursite.com/sitemap will render the sitemap, however, it does not have the .xmlextension, which is required by Google. You can create an template override by going to the Access tab when editing a template in the control panel. You will want to enter sitemap.xmlinto the Template route override field.

Adding a template route override will make the template accessible at yoursite.com/sitemap, and yoursite.com/sitemap.xml. If duplicate content is a concern you may want to use an htaccess rewrite rule instead.

RewriteEngine On
RewriteRule ^sitemap$ sitemap.xml [L,R=301]

For each channel you can choose whether to include or exclude it from the sitemap, as well as define its url structure, change frequency and priority. The url structure supports the following tags which work the same as the associated channel entry tags:

{url_title}
{page_uri}
{page_url}
{entry_id}
{weblog_id}
{cat_id}
{cat_name}
{cat_url_title}
{entry_date}
{entry_date format="%Y/%m/%d"}

If an entry is assigned to multiple categories then only the first category will be used in parsing.

The change frequency should indicate frequently the page is likely to change. This value provides general information to search engines but does not correlate exactly to how often they crawl the page.

The priority should indicate the priority of this channel’s entries relative to other channels on your site.

In addition to including URLs to channel entries you can also manually add individual urls. This allows you to add any pages on your site that do not have an associated channel entry.

Clicking Update Locations will not save any changes in the Channels table, and vice-versa, clicking Update Channels will not save any changes made in the Locations table. These two settings are independent of each other and this should be kept in mind when making updates.

Template Tags

Your sitemap template should only contain the following template tag. Ensure that there are no blank lines in your template as this can cause issues.

{exp:sitemap:get}

If your sitemaps are very large then you can define the start index and limit of the number of entries shown (Google’s limit is 50,000).

{exp:sitemap:get start="0" limit="10000"}

Notifying Search Engines

Older versions of Sitemap would automatically send an update to these endpoints when an entry was saved. Yahoo, Google, and Bing have all deprecated or completely disabled their sitemap submission end-points. For this reason Sitemap no longer supports this feature and it has been removed from the UI in current releases.

Troubleshooting

Google requires that you manually submit your sitemap location to them in order to allow the Sitemap Module to automatically ping them. You should submit the full url of your sitemap template. It only has to be submitted once and can be done from .

If any errors encountered when submitting a sitemap then you can use an XMLsitemap validator such as which will report the exact error and line number.

Google Webmaster Tools
this one