Set priority by multiple templates at once
Priority 1.0 is highest, 0.1 is lowest, 0.5 is default (when not specified) Specify -1.0 to disallow the template from being included in the sitemap.
Example
$sitemap->setPriorityByTemplates([
'home' => '1.0',
'basic-page' => '0.5',
'blog-post' => '0.7',
]);
Usage
$self = $sitemap->setPriorityByTemplates(array $priorityByTemplate);
Arguments
Name | Type(s) | Description |
---|---|---|
priorityByTemplate | array | Array of [ 'template-name' => 0.5 ] |
Return value
self
$sitemap methods and properties
API reference based on ProcessWire core version 3.0.236