Sitemap Plugin for Strapi v5
npm install strapi-5-sitemap-plugin---
/api/strapi-5-sitemap-plugin/sitemap.xml
`$3
- Automatically includes Collection Types with support for:
- Language codes
- Dynamic patterns (e.g., /[slug])
- lastmod (last modification date)
- changefreq (change frequency for search engines)
- priority (page priority)$3
- Add custom URLs to your sitemap with:
- Slug-based patterns
- Individual configurations for priority, change frequency, and lastmod.---
Installation
$3
`bash
npm install strapi-5-sitemap-plugin
`---
$3
1. Go to Settings:
2. Select Roles unter Users & Permissions.
3. Select Public
4. Search for Strapi-5-sitemap-plugin
5. Select getSitemap
6. Save your changes.---
Configuration
The plugin offers a configuration UI accessible from the Strapi Admin panel, where you can:- Select which Collection Types should be included in the sitemap.
- Define patterns and attributes for language-specific or global sitemaps.
- Add custom URLs with specific metadata.
---
Usage
$3
Once installed and configured, your sitemap will be available at:
`
/api/strapi-5-sitemap-plugin/sitemap.xml
`$3
1. Go to Settings
2. Select Configuration under Sitemap
3. Set your Base URL and hit Save.$3
1. In the same Settings area, navigate to the Collection Types section.
2. Select the Collection Types you want to include.
3. Configure the pattern, language code, and other metadata as required.
4. Changes will be saved automatically$3
1. In the same Settings area, navigate to the Custom Links section.
2. Add your URLs with slugs and configure the priority, frequency, and last modification date.
3. Changes will be saved automatically---
Example Sitemap Output
`xml
https://example.com/your-collection-type-slug
0.8
daily
2025-01-15T10:00:00Z
https://example.com/your-custom-page
0.5
monthly
``Do you need a custom Strapi plugin or a specific feature for your project?
DigitalMoonrise is specialized in Strapi plugin development and tailored solutions to fit your needs.
š§ Feel free to contact me via my website: DigitalMoonrise, your digital agency for Websites, Online Shops and Configurator with Next.js and Strapi
---
---