cebe / luya-module-sitemap
sitemap.xml module for luya CMS
Installs: 5 266
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 5
Forks: 6
Open Issues: 1
Type:luya-module
Requires
- luyadev/luya-core: ^1.0 | ^2.0
- luyadev/luya-module-cms: ^1.0 | ^2.0 | ^3.0 | ^4.0 | ^5.0
- samdark/sitemap: ^2.0
Requires (Dev)
- cebe/indent: *
- friendsofphp/php-cs-fixer: ~2.13.1
- luyadev/luya-testsuite: ^1.0
This package is auto-updated.
Last update: 2024-10-07 16:31:03 UTC
README
LUYA sitemap.xml Module
The LUYA sitemap.xml module provides sitemap.xml support for SEO.
Currently it only generates sitemap entries for pages created by the CMS module.
Installation
For the installation of modules Composer is required.
composer require cebe/luya-module-sitemap
Configuration
Add the frontend module of the sitemap module to your configuration modules section:
return [ 'modules' => [ // ... 'sitemap' => [ 'class' => cebe\luya\sitemap\Module::class, // available configuration options: // include hidden pages in sitemap.xml, default=false //'withHidden' => true, // encode urls in sitemap.xml, default=true //'encodeUrls' => true, ], // ... ], ];
Please note that the module name sitemap is required and should not be changed!
Development & Testing
In order to run the unit tests install sqlite
sudo apt-get install php-sqlite3
and run the tests
./vendor/bin/phpunit tests/
Support
Professional support, consulting as well as software development services are available:
https://www.cebe.cc/en/contact
Development of this library is sponsored by cebe.:cloud: "Your Professional Deployment Platform".