simple_sitemap_arbitrary_links
21 sites
No security coverage
Need to add arbitrary URLs to your XML sitemap? The Simple XML sitemap arbitrary links module makes it easy! It provides a simple interface to manage arbitrary links, perfect for SEO without coding.
Features
The Simple XML sitemap arbitrary links module enhances Drupal’s Simple XML Sitemap module by allowing you to:
- Add Arbitrary Links: Include URLs not tied to Drupal entities (e.g., external pages, custom paths).
- User-Friendly Interface: Manage links via a table with fields for URL, priority, change frequency, last modified date, and language.
- AJAX Support: Add new links dynamically without page reloads.
- Unlike core sitemap tools, it supports custom URLs with full control over sitemap attributes. Use this module when you need to boost SEO by including non-entity URLs (e.g., marketing landing pages) or multilingual sitemap entries. It’s ideal for site admins who want flexibility without custom development.
Post-Installation
- Go to `/admin/config/search/simplesitemap/custom-arbitrary-links` (Configuration > Search and metadata > Simple XML Sitemap > Custom Arbitrary Links).
- You’ll see a table listing existing custom links (if any).
- Click “Add new link” to insert a blank entry, then edit fields like URL, priority, etc.
- Keep in mind that you can use different links formats: link, /link, example.com/link. They will be formatted automatically to example.com/link
- Save the form to update the database. Check “Regenerate all sitemaps” to refresh `sitemap.xml`.
- To remove link from database just press Remove button.
No new content types or text formats are added—just visit the config page to start managing links. Ensure the Simple XML Sitemap module is enabled and configured first.
Add proper permissions to the desired role with "Administer custom sitemap links" permission.
Additional Requirements
- Simple XML Sitemap This module depends on the `simple_sitemap` module (version 4.x recommended) to integrate custom links into the generated sitemap. Install it via Composer: `composer require 'drupal/simple_sitemap'`. No external libraries or APIs are required.
Recommended modules/libraries
- Pathauto: Enhances URL management if you’re linking to Drupal-generated paths.
- Redirect: Useful for managing redirects alongside custom sitemap URLs.
Similar projects
- Simple XML Sitemap (core functionality): Adds entity-based sitemap generation but lacks a UI for arbitrary links.
- XML Sitemap (legacy): An older module with broader features but less modern integration.