PHP code example of 0test / evocms-sitemap

1. Go to this page and download the library: Download 0test/evocms-sitemap library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

0test / evocms-sitemap example snippets


return [
	'exclude' => 'sitemap_exclude',		// имя параметра TV типа checkbox для "Исключить из карты сайта"
	'frequency'=> 'sitemap_changefreq', // имя параметра TV типа dropdown для "Частота обновления"
	'frequency_default' => 'dayly',		// частота обновления по-умолчанию
	'priority'=> 'sitemap_priority',	// имя параметра TV типа dropdown для "Приоритет в карте сайта"
	'priority_default' => '0.5',		// приоритет по-умолчанию
	'exclude_templates' => [0,4],		// ID шаблонов, которые нужно исключить из карты сайта.
];

php artisan package:install

php artisan vendor:publish --provider="EvolutionCMS\SitemapXml\SitemapXmlServiceProvider"