WireSitemapXML::setPriorityByTemplates() method

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

NameType(s)Description
priorityByTemplatearray

Array of [ 'template-name' => 0.5 ]

Return value

self


$sitemap methods and properties

API reference based on ProcessWire core version 3.0.244

“Yesterday I sent the client a short documentation for their ProcessWire-powered website. Today all features already used with no questions. #cmsdoneright—Marc Hinse, Web designer/developer