e-trainiaDocs
Setup GuideCMS

How to Generate Sitemap

Site Map Management

The Site Map section in e-trainia allows you to generate, download, manage, and publish XML sitemaps for your website. A sitemap helps search engines discover and understand your website by providing information about the pages available on it.

Navigate to Site Settings → CMS → Site Map from the main sidebar.


Generate Sitemap

Use the Generate Sitemap feature to create an XML sitemap for your website. Once generated, the sitemap appears in the sitemap list, where you can download it, publish it, and check its status.

Storage Limit

Only the latest 5 generated sitemap files are stored and available for download. When a new sitemap is generated, older files beyond this limit are automatically deleted. However, their records remain in the list with the status Removed. The currently published sitemap is never deleted.

Generate a Sitemap

Follow these steps to generate a new sitemap.

Click Generate Sitemap

Click the Generate Sitemap button in the top-right corner of the page.

Confirm Sitemap Generation

A confirmation dialog appears before the sitemap is generated.

Click Confirm to continue or Cancel to stop the process.

Sitemap Successfully Generated

After confirmation, the system generates the XML sitemap and adds a new record to the sitemap list.

The newly generated sitemap displays the following details:

FieldInitial Value
File StatusAvailable
Publish Status-
ActionsDownload and Publish

Understand the Sitemap List

The sitemap list displays all generated sitemap records and provides options to manage them.

Search and Filter Options

  • Search: Enter a sitemap file name to find a specific generated sitemap.
  • Filter: Use the filter option to display only the records that match your requirements.
  • Column Sorting: Use the sorting icons in the table headers to arrange the records based on the available column values.

Sitemap List Columns

ColumnDescription
ActionDisplays the available actions for each sitemap, such as Download, Publish, Get URL, or Copy, depending on its status.
File NameDisplays the name of the generated XML sitemap file.
LocalesDisplays the language locales included in the sitemap, such as en and ar.
SizeDisplays the size of the generated XML file.
File StatusShows whether the sitemap file is available in storage or has been removed.
Publish StatusShows whether the sitemap is currently published.

Download a Sitemap

You can download an available sitemap to view its XML content or save a copy to your device.

Select Download

Find the sitemap you want to download and click the Download icon in the Action column.

Open the Downloaded XML File

After downloading, open the .xml file in a web browser or an XML-compatible editor.

The sitemap appears as a structured XML document containing your website URLs and their corresponding modification details.

View Sitemap XML

When you open a downloaded sitemap XML file in a browser, it appears as a structured document containing individual URL entries.

The browser may display the following message at the top:

This XML file does not appear to have any style information associated with it. The document tree is shown below.

This is normal browser behaviour. It means that the XML file does not have a stylesheet to control how its content is displayed. It does not indicate an error or a problem with the sitemap.

The XML content is still valid as long as the document is properly generated and structured.

Understanding the XML Elements

A sitemap XML file contains structured elements that describe the pages included in your website.

XML ElementDescription
<urlset>The root element that contains all sitemap URL entries.
<url>Represents an individual webpage included in the sitemap.
<loc>Contains the complete URL of the webpage.
<lastmod>Indicates the last modification date of the webpage, when available.

Note

The XML content is designed to be read as structured data by browsers and search engines. It does not require a visual page design or stylesheet to function as a sitemap.

Publish a Sitemap

Publishing makes the selected generated sitemap the active sitemap for your website.

Select Publish

Find the sitemap you want to publish and click the Publish icon in the Action column.

Confirm Publishing

A confirmation dialog appears. Review the action and click Confirm to publish the selected sitemap.

Verify the Publish Status

After successful publishing, the selected sitemap's Publish Status changes from - to Published.

Copy the Published Sitemap URL

Once the sitemap is published, the Get URL action becomes available.

Click the Get URL icon to copy the public sitemap URL.

Successfully Published

The selected sitemap is now published, and its public URL is available through the Get URL action.

Sitemap File Status and Actions

Sitemap records can have different statuses depending on whether the generated file is still stored and whether it has been published.

Sitemap StateFile StatusPublish StatusAvailable Actions
Newly generatedAvailable-Download, Publish
PublishedAvailablePublishedDownload, Get URL
Older generated fileRemoved-No file actions

Important

The available actions for a sitemap depend on its current file and publish status. A removed sitemap remains visible only as a record and cannot be downloaded or published.

Sitemap Storage Rules

e-trainia keeps a limited number of generated sitemap files to manage storage efficiently.

  • Only the latest 5 generated sitemap files are kept for download.
  • When a new sitemap is generated, older files beyond the storage limit are automatically deleted.
  • Deleted sitemap records remain visible in the list with the Removed status.
  • Removed files cannot be downloaded or published.
  • The currently published sitemap is never deleted, even when it is older than the latest 5 generated files.

Frequently Asked Questions

Last updated on