kowal.info

Google Sitemap

Composer kowal/module-sitemap · Version 0.1.8

Product page

Google Sitemap — kowal.co

Description

Generates XML sitemaps from store view profiles and links equivalent pages across languages.

For whom

For administrators publishing separate catalog and content sitemaps for multiple domains or languages.

Features

  • Select URL sources and exclusions per profile.
  • Group language alternatives with hreflang.
  • Preview generation, publish and inspect profile run history.

Installation

From the Magento root, with Composer access to the Kowal package, run

composer require kowal/module-sitemap
bin/magento module:enable Kowal_Sitemap
bin/magento setup:upgrade
bin/magento cache:clean

Configuration

  1. Under Modules → Sitemap, create a profile, select its store view and choose an unused filename.
  2. Select URL sources and exclusions. For language alternatives, assign the same hreflang group and distinct language codes, then enable alternatives for the source.
  3. Preview the profile with a command such as bin/magento kowal:sitemap:generate --id=1 --dry-run --format=json. Replace 1 with your profile ID.

Requirements / notes

Requirements include PHP matching ^8.1, XMLReader, XMLWriter, PDO SQLite and kowal/base ^1.1.9. When migrating, choose a filename separate from the current generator’s output.

FAQ

Why are two translated CMS pages missing their alternate links?

CMS pages have separate IDs. Assign both pages the same relation key in their respective profiles, for example cms:12=about-us and cms:37=about-us.

Verify the installation

bin/magento module:status Kowal_Sitemap

After a successful dry run, generate the profile without --dry-run. Open the public XML index and its listed parts. Check URL domains and reciprocal language links for a known pair of pages.

Components included in Google Sitemap