enjoyscms/sitemap

Installs: 546

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:enjoyscms-module

6.1.0 2024-01-18 10:16 UTC

This package is auto-updated.

Last update: 2024-04-18 10:52:48 UTC


README

Commands

vendor/bin/sitemap generate
vendor/bin/sitemap status

Example yaml configuration

enjoyscms/sitemap:
    baseUrl: &baseUrl "http://localhost"
    filename: /sitemap.xml
    stylesheet:
        - *baseUrl
        - /stylesheet.xsl
    collectors:
        - \EnjoysCMS\Module\Sitemap\ExampleCollector

All parameters of configuration

baseUrl: 'set baseUrl in /config.yml'
filename: /sitemap.xml
maxUrls: 50000 #Maximum allowed number of URLs in a single file.
useGzip: false #Whether to gzip the resulting files or not
useIndent: true #if XML should be indented
maxBytes: 10485760 #Maximum allowed number of bytes in a single file. default: 10485760
bufferSize: 10 #Number of URLs to be kept in memory before writing it to file
stylesheet: null
collectors: []