Download the PHP package fresh-advance/sitemap without Composer
On this page you can find all versions of the php package fresh-advance/sitemap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fresh-advance/sitemap
More information about fresh-advance/sitemap
Files in fresh-advance/sitemap
Informations about the package sitemap
Sitemap module for OXID eShop
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
- Configurable sitemap directory
What to expect in next versions
- Sitemap access without modifying the .htaccess maybe
- Multilanguage support
- Multishop support
- Configurable step size for update run
Version compatibility
- v1.0.x is compatible with OXID Shop compilation 7.0 and up
Branch compatibility
- Branch b-7.1.x is compatible with OXID Shop compilation 7.1.0 and up
- 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
Also consider adding the line to .htaccess file:
Module usage
Note: directory for sitemap should exist and have enough rights for php to modify its content.
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:
Cron
Example command for the cron for every day automatic regeneration. Make sure you change the path to your shop and the log path. Also, docker is used in this example, please double-check it by your needs.
Development installation
To be able running the tests and other preconfigured quality tools, please install the module as a root package.
The next section shows how to install the module as a root package by using the Fresh Advance Development Base.
In case of different environment usage, please adjust by your own needs.
Development installation on Fresh Advance Development Base
The installation instructions below are shown for the current Fresh Advance Development Base for shop 7.0. Make sure your system meets the requirements of the Development Base.
-
Ensure all docker containers are down to avoid port conflicts
-
Clone the SDK for the new project
-
Clone the repository to the source directory
- Run the recipe to setup the development environment
You should be able to access the shop with http://localhost.local and the admin panel with http://localhost.local/admin (credentials: [email protected] / admin)
Running the tests and quality tools
Check the "scripts" section in the composer.json file for the available commands. Those commands can be executed
by connecting to the php container and running the command from there, example:
Commands can be also triggered directly on the container with docker compose, example:
License
The module is not free to use. Please make sure you checked the License before using the module.