Skip to content

Fresh-Advance/Sitemap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e4f64bc · May 19, 2024
May 19, 2024
May 14, 2024
Mar 1, 2024
Mar 17, 2024
May 14, 2024
Mar 16, 2024
Oct 8, 2023
Oct 8, 2023
May 14, 2024
Oct 8, 2023
May 14, 2024
May 14, 2024
May 14, 2024
Dec 31, 2023

Repository files navigation

Sitemap module for OXID eShop

Development Latest Version PHP Version

Quality Gate Status Coverage Technical Debt

In development

The idea

There is a table (fa_sitemap) which will contain the list of all sitemap urls. Urls are updated and added during the "fa:sitemap:update" commands. The sitemap files are generated by "fa:sitemap:generate" command.

Features

  • Selectors implemented for:
    • Active categories
    • Active products and its variants
    • Active content pages from 'User information' folder
    • Main page of the shop
  • Removal of the urls by removal or deactivation of the related objects

Compatibility

  • Branch b-7.0.x is compatible with OXID Shop compilation 7.0.0-rc.2 and up

Installation

Module is available on packagist. Install it via composer and activate the module

composer require fresh-advance/sitemap:^v1.0.0
vendor/bin/oe-console oe:module:activate fa_sitemap

Also consider adding the line to .htaccess file:

RewriteRule ^sitemap.xml$    sitemap/sitemap.xml   [NC,L]

Module usage

Note: directory for sitemap should exist and have enough rights for php to modify its content.

./vendor/bin/oe-console fa:sitemap:updateAll
./vendor/bin/oe-console fa:sitemap:generate

After the "generate" command, the sitemap index and sitemap pages will be generated in "source/sitemap" directory.

Note: Also its possible to update some concrete type of objects IF needed by some reason:

./vendor/bin/oe-console fa:sitemap:update general
./vendor/bin/oe-console fa:sitemap:update content
./vendor/bin/oe-console fa:sitemap:update category
./vendor/bin/oe-console fa:sitemap:update product

What to expect in next versions

  • Sitemap access without modifying the .htaccess maybe
  • Configurable sitemap directory
  • Multilanguage support
  • Multishop support
  • Configurable step size for update run

License

The module is not free to use. Please make sure you checked the License before using the module.